Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

java.lang error

Status
Not open for further replies.

DTSMAN

Technical User
Mar 24, 2003
1,310
US
I have files that I created back when I took a Java class but now they don't work. I run them from a dos prompt. Javac compiles it just fine and creates the .class file, but when I run 'c:\java filename' I get the following error.
exception in thread "main" java.lang.noclassDefFoundError: filename
I googled this and got a ton of hits, and they all point to my class path. I have that set in the environment variables as:
classpath=c:\programfiles\java\jdk1.5.0_07\bin

I am running XPHome SP2.

Bo

Kentucky phone support-
"Mash the Kentrol key and hit scape."
 
I looked at that thread and it kind of pointed me the same way. It is the environment variable that is not working. I can run the file if I put it in the bin folder of the java folder. Kind of weird it use to work from anywhere and now it doesn't..I'll keep tinkering with it till I get, and post back if I find a definite answer someone else could possibly use.

Bo

Kentucky phone support-
"Mash the Kentrol key and hit scape."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top