aspose file tools*
The moose likes Beginning Java and the fly likes Path in Windows xp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Path in Windows xp" Watch "Path in Windows xp" New topic
Author

Path in Windows xp

gordon wilcox
Greenhorn

Joined: Feb 02, 2006
Posts: 5
i have just updated my environment variables pat,classpath,derby_install so that i can experiment with derby the apache sql java database.

now i cant run even the simplest java class - hello world get the error message

Exception in thread "main" java.lang.NoClassDefFoundError -MyFirstApp

I can only assume i have upset one of my environment variables can anyone help

from a complete java novice
Jeff Albertson
Ranch Hand

Joined: Sep 16, 2005
Posts: 1780
For ease of use you may want your CLASSPATH environment variable to include . (period), to include the current directory. Alternately, you can enter:

>java -cp . YourClass

If you are using Ant or an IDE, this wouldn't be a problem.


There is no emoticon for what I am feeling!
gordon wilcox
Greenhorn

Joined: Feb 02, 2006
Posts: 5
Originally posted by Jeff Albertson:
For ease of use you may want your CLASSPATH environment variable to include . (period), to include the current directory. Alternately, you can enter:

>java -cp . YourClass

If you are using Ant or an IDE, this wouldn't be a problem.
gordon wilcox
Greenhorn

Joined: Feb 02, 2006
Posts: 5
Thanks that solved my problem with the classpath

they say 'ignorance is bliss' but it dont feel that way
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Path in Windows xp