File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Help... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Help..." Watch "Help..." New topic
Author

Help...

D vaibhav deshmukh
Greenhorn

Joined: Aug 03, 2007
Posts: 7
Hi friends!

I am having issue with setting up the path. I have "j2skd1.4.1_01" in my C drive.

I am trying to set the path using the following commands:

D:\>set classpath = C:\j2sdk1.4.1_01\lib;.;

D:\>set path = C:\j2sdk1.4.1_01\bin;

I have even tried making a ".bat" file in which I have written these two commands, I am able to compile fine. But, when I am trying to run, I am getting an exception stating "NoClassDefinationFoundError"

This is very annoying

Please help...
Chad Clites
Ranch Hand

Joined: Aug 16, 2005
Posts: 134
If you are able to compile just fine, then I doubt it is a classpath problem since javac and java are in the same directory. What is the specific (entire) error? It's more likely that you are not including a needed library.
[ August 12, 2007: Message edited by: Chad Clites ]
 
Consider Paul's rocket mass heater.
 
subject: Help...
 
Similar Threads
ERROR: ejbc couldn't invoke compiler
Class and or path confusion.
Fallen at the first hurdle!
runnning a java program via a batch file
Exception in thread "main" java.