hi.....i really need help with my coding...i already compile the coding but the problem is after the compilation is successful and when i want to run it the following command is given"Exception in thread "main" java.lang.NoClassDefFoundError: JTwainDemoCode"can anyone tell me what is wrong with ...
Comments (31) | Promote | Bookmark
help with assignmentMon, 24 Sep 2007 00:43:00 GMTi need to do a project for the october 3rd week, i have to creat a word search puzzle in java and i didnt have idea of how to creaty many things i would be very thankful if any of you here can help me to do ithere are the instructions:WordSearchPuzzleThe class WordSearchPuzzle implements a ...
Comments (27) | Promote | Bookmark
ECLIPSE does NOT pass Arrays in DebugSat, 22 Sep 2007 22:18:00 GMTThere is a big BUG in ECLIPSE. Eclipse does not pass arrays in debug mode.I had to use System.out.println() to figure out why it is taking me so long to get that figure out, debug in ECLIPSE just does not do what it supposed to do!!!...
Comments (22) | Promote | Bookmark
How to parse system date to return Date & in yyyy-MM-dd format?Wed, 14 Nov 2007 16:58:00 GMTDateFormat dateFormat = new SimpleDateFormat ("yyyy-MM-dd"); java.util.Date date = new java.util.Date (); String dateStr = dateFormat.format (date); try{ Date date2 = dateFormat.parse (dateStr); }catch(ParseException pe){ pe.printStackTrace(); Actually, After parsing the date from string, again ...
Comments (13) | Promote | Bookmark
Generate XML from treeThu, 15 Nov 2007 00:35:00 GMTI am trying to generate XML from a JTree. Does anyone know how I would go about it? I have been looking on google for examples but I can't find anything that would help....
Comments (12) | Promote | Bookmark
want hepl in sending mail vai java codeThu, 15 Nov 2007 11:02:00 GMTHiI want to write code for sending email from java apllication.I done that, it works fine onle i send mail within my smtp server i.e. with in my comapny id's but it throws following excpetion when i give from id other than my comapny idException in thread "main" javax.mail.SendFailedException: ...
Comments (9) | Promote | Bookmark
BufferedReader - reading text files in chunksMon, 24 Sep 2007 06:23:00 GMTCurrently I am using the following to read in a file, 1 line at a timeBufferedReader reader = new BufferedReader(new FileReader(inFile));String line = null;// While there are lines to read from the filewhile ((line=reader.readLine()) != null) { System.out.println(line);}reader.close();Is it ...
Comments (9) | Promote | Bookmark
WSDL2Java command error problemWed, 14 Nov 2007 13:32:00 GMTMy classpath is below:C:\Program Files\Documentum\dctm.jar;C:\Documentum\config;C:\bea\jdk142_05\lib;C:\Program Files\Documentum\dctm.jar;C:\Program Files\Documentum\Shared;C:\Program ...
Comments (7) | Promote | Bookmark
Problem going over a Set in java 5.0Sun, 23 Sep 2007 16:15:00 GMTHi Guys!I'm "translating" working code in NIO to the tiger version, and i'm having trouble with going over a Set returned from select(). Runing the following code fails on iter.remove() and i get a java.lang.UnsupportedOperationException. Couldn't find an example that work.for ...
Comments (6) | Promote | Bookmark
CTRL + CThu, 15 Nov 2007 11:52:00 GMTI am using hibernate and an HSQL database. Everything goes merrily along until I want to end the program. The only documentation I can find on starting up and shutting down the connection tells me to use CTRL + C (Windows command line); how can I send that command to Windows via Java?It is an ...
Comments (5) | Promote | Bookmark
ListEventListenerSat, 22 Sep 2007 00:51:00 GMTHi,I'm having a problem with the ListEventListener. What I'm doing is presenting a table of data received from a Vector to a user. I've made the first column a boolean, object, which turns that column into a checkbox automatically. I want the user to select which rows they'd like to delete ...
Comments (5) | Promote | Bookmark
New Session problemSun, 23 Sep 2007 13:44:00 GMTHi all,I want the sample code given below to be executed only for once at the time when new session is being created. But control is not going inside " if " when I access this site/web application for the first time i.e I am a new user . Can anyone of you rectify the code or tell me the ...
Comments (5) | Promote | Bookmark
calling of finalize() for garbage collectionThu, 15 Nov 2007 00:41:00 GMTGarbage collector will call the 揻inalize()?only once for an object. If any exception thrown while executing the finalize() that causes not to complete the execution of this method.If this is the case, will the JVM assure that finalize() be called once again on this object....
Comments (5) | Promote | Bookmark
Who's calling me?Sun, 23 Sep 2007 00:15:00 GMTHi Friends,I have two classes A and B. I have an instance of B in A and I am calling a method of B using that instance. Is there anyway to find out in class B, that the call has come from class A ?Thanks,Achayan...
Comments (4) | Promote | Bookmark
Encyrption ProblemMon, 24 Sep 2007 03:06:00 GMTI typed the simplle following program for encyptionimport java.util.*;public class Enc {public static void main (String [] args){Scanner keyboard=new Scanner(System.in);int key;String ...
Comments (4) | Promote | Bookmark
Servlets & XMLHTTPSun, 23 Sep 2007 06:32:00 GMTHey,I'm looking at setting up a quick example of sending a HTTP request to a servlet using XMLHTTP. To start I am just going to send a peice of text to the screen in my response instead of XML. I'll then use javsscript to mess around woith that piece of text.Anyway, my problem is that I am ...
Comments (4) | Promote | Bookmark
Is the certification exam too easy?Sun, 23 Sep 2007 05:07:00 GMTI got certified with the 310-035 exam this week and I must say I am a little surprised how easy the exam was compared to the mock exams I was studying with for the past week and a half. I don't know if I should be proud or not because I thought this was going to be tough. I have to admit, If ...
Comments (3) | Promote | Bookmark
This might be a dumb question ...Tue, 25 Sep 2007 06:13:00 GMTI knew that subject line would get the hits.. unfortunately ther may be some elements of truth to it.I am developing applications for which I would like to add a print button to be able to print its GUI screen to a networked printer. I guess I should start by learning whats involved with ...
Comments (3) | Promote | Bookmark
JFrame look & feelMon, 24 Sep 2007 07:06:00 GMTHi everybody,I'm a beginner in working with Java Look and Feel. I want to customize a frame's title bar, border and buttons. For example I want to put some other icons for the close, minimize and maximize button, change the height and color of the titlebar, and put some other border to the ...
Comments (2) | Promote | Bookmark
JTextAreaWed, 14 Nov 2007 17:29:00 GMTHello all,I have a jframe which has a jtextarea...i put details in this textarea from a string array.Now i am placing data such that two consecutive array elements are in same row then next two on next line and so on...Length of this string array is random ie decd by user i/p.....I want to ...
Comments (2) | Promote | Bookmark
Open PDF from java appMon, 24 Sep 2007 09:32:00 GMTHow can I create a link in a java standalone application to open a pdf file? (with Acrobat)thanks...
Comments (2) | Promote | Bookmark
IS there SEEK() in FileInputStream Class?Sun, 23 Sep 2007 12:46:00 GMTHi allI am reading a binary file with FileInputStream class which I toldis faster than RandomAccessFile class when it comes toreading in chunks of data at a time.In my program I need to reset or go to the beginning of the file I am reading inand read it in again. As far as know there is no such ...
Comments (2) | Promote | Bookmark
Changing Colors of individual characters using TextAttributesSat, 22 Sep 2007 19:12:00 GMTI'm trying to modify a line of text by changing the color of individual characters. Here is an example of what I'm trying to do:example text line:00000000000000000000000100000001 00000001111111110001000000000100 00000000000000000000000000000000 00000001000000000000000000000000The line above ...
Comments (2) | Promote | Bookmark
Security Alert during J2EE installationMon, 24 Sep 2007 00:04:00 GMTHello,i'm mid way through installing my java jdk and my virus software has stalled it with a "high risk" security alert regarding the javaw.exe file. The error says "attempting to connect through a port commonly used by a remote access Trojan horse. The attempt was blocked.can anybody tell me ...
Comments (2) | Promote | Bookmark
how to remove last char in a string by spaceSun, 23 Sep 2007 02:56:00 GMTI have to implement backspace application(remove a last char in a string , when we pressed a button).for ex: I enter the no1234 instead of 1236So when i press a button on the JWindow... it should display123so that i can enter 6 now.I tried to display the string "123 " instead over "1234" but it ...
Comments (2) | Promote | Bookmark
J2EE library pathSat, 22 Sep 2007 22:14:00 GMTwe can use method System.GetProperty() or similar to get J2SE library path.is there a Java method which can get J2EE library path?thx...
Comments (1) | Promote | Bookmark
metadata questionSun, 23 Sep 2007 18:59:00 GMTHi all, currently I am trying to write a program that displays the metadata (creation time, last modified time & etc) of a file. I've looked thru the APIs and I can't find something that allows me to do it. Please help! Thanks in advance!RegardsJane...
Comments (1) | Promote | Bookmark
socket with graphicsWed, 14 Nov 2007 13:52:00 GMThi folk i have project to create client server program with multiuser i know how to deal with threading server by bassing messages but what about if all client will share the same board ( applet with graphics ) how can i deal with that ?...
Comments (1) | Promote | Bookmark
java.lang.NoClassDefFoundErrorThu, 15 Nov 2007 10:21:00 GMTHi All,I got the "java.lang.NoClassDefFoundError" error. Which s the root cause of that error.Thanks....
Comments (1) | Promote | Bookmark
Exception in thread "main" java.langWed, 14 Nov 2007 19:33:00 GMThi,I have java app which is called cutter.jar , I wanna run it using run.bat file which contain this line: java -classpath .;cutter.jar Cutterwhen I run --> run.bat I get this error message: java -classpath cutter.jar CutterException in thread "main" java.lang.ExceptionInInitializerErrorat ...
we can use method System.GetProperty() or similar to get J2SE library path.is there a Java method which can get J2EE library path?thx...
Hi all, currently I am trying to write a program that displays the metadata (creation time, last modified time & etc) of a file. I've looked thru the APIs and I can't find something that allows me to do it. Please help! Thanks in advance!RegardsJane...
hi folk i have project to create client server program with multiuser i know how to deal with threading server by bassing messages but what about if all client will share the same board ( applet with graphics ) how can i deal with that ?...
Hi All,I got the "java.lang.NoClassDefFoundError" error. Which s the root cause of that error.Thanks....
hi,I have java app which is called cutter.jar , I wanna run it using run.bat file which contain this line: java -classpath .;cutter.jar Cutterwhen I run --> run.bat I get this error message: java -classpath cutter.jar CutterException in thread "main" java.lang.ExceptionInInitializerErrorat ...
Hello all,I have a jframe which has a jtextarea...i put details in this textarea from a string array.Now i am placing data such that two consecutive array elements are in same row then next two on next line and so on...Length of this string array is random ie decd by user i/p.....I want to ...
How can I create a link in a java standalone application to open a pdf file? (with Acrobat)thanks...
Hi allI am reading a binary file with FileInputStream class which I toldis faster than RandomAccessFile class when it comes toreading in chunks of data at a time.In my program I need to reset or go to the beginning of the file I am reading inand read it in again. As far as know there is no such ...
I'm trying to modify a line of text by changing the color of individual characters. Here is an example of what I'm trying to do:example text line:00000000000000000000000100000001 00000001111111110001000000000100 00000000000000000000000000000000 00000001000000000000000000000000The line above ...
Hello,i'm mid way through installing my java jdk and my virus software has stalled it with a "high risk" security alert regarding the javaw.exe file. The error says "attempting to connect through a port commonly used by a remote access Trojan horse. The attempt was blocked.can anybody tell me ...