This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
This definitely looks like a CLASSPATH problem. Make sure that your class directory is in your CLASSPATH env variable
Blake Minghelli<br />SCWCD<br /> <br />"I'd put a quote here but I'm a non-conformist"
Joined: Aug 08, 2002
>Blake Minghelli Yes it seems to be classpath problem but I am not sure why? I tried the program at another computer and the program worked there without changing a single line of code. My autoexac.bat file is where I declare the classpath but it seems to be prettty much identical as the other PC apart from small differences like path. Here is the path and classpath setting, can anyone spot anything I have missed?
PATH C:\WINDOWS;C:\WINDOWS\COMMAND;C:\j2sdk1.4.0_01\BIN;C:\WINDOWS\jwsdp-1_0_01\bin; SET CLASSPATH=.; SET CLASSPATH=C:\WINDOWS;C:\WINDOWS\COMMAND; SET CLASSPATH=C:\j2sdk1.4.0_01\BIN;C:\My_DL_Dap\java-ftp-dl\build; C:\My_DL_Dap\java-ftp-dl\build\ftp.jar;$CLASSPATH
Every time you do a SET CLASSPATH=BLAHBLAH you are replacing the previous BLAHBLAH with the new BLAHBLAH. So to fix it put ;%CLASSPATH% at the end of each line: SET CLASSPATH=.;%CLASSPATH% SET CLASSPATH=BLAHBLAH;%CLASSPATH% and so on. In that way you will accumulate all the classpath elements into one gigantic enormous CLASSPATH. -Barry