Urgent help with Java needed

Ultima

Platinum Member
Oct 16, 1999
2,893
0
0
I need help on compiling this source I have. I wrote most of it at school, but I didn't have time to finish and so I downloaded the Java SDK to my computer at home. My program won't compile though! I get crap about my javabook package not existing (the subdirectory is there) and not being able to resolve some class I had defined in other file. WTF is this crap? It all worked fine with the Java at school, which is 1.1 I think.

Hope someone out there knows the answer...
 

Levi

Member
Nov 26, 2001
30
0
0
I take it that those other classes that is called upon in your file IS in the same directory...?
Have you set the path after installing the Runtime enviroment?
 

Ultima

Platinum Member
Oct 16, 1999
2,893
0
0


<< I take it that those other classes that is called upon in your file IS in the same directory...?
Have you set the path after installing the Runtime enviroment?
>>



set the path? what do you mean? I set the path to the /bin directory if that's what you mean. Yeah, those other classes and packages are in the same directory. The whole thing worked on the computers at school off my floppy, no idea whats causing it to not work over here :(
 

Ultima

Platinum Member
Oct 16, 1999
2,893
0
0


<<

<< I take it that those other classes that is called upon in your file IS in the same directory...?
Have you set the path after installing the Runtime enviroment?
>>



set the path? what do you mean? I set the path to the /bin directory if that's what you mean. Yeah, those other classes and packages are in the same directory. The whole thing worked on the computers at school off my floppy, no idea whats causing it to not work over here :(
>>



Hey I just fixed the compile errors (-classpath .), but still getting a runtime exception error (Exception in thread "main" java.lang.NoClassDefFoundError: KevAssignment5/java) which is BS cause everything's there. Thanks for the path tip though :)
 

Ultima

Platinum Member
Oct 16, 1999
2,893
0
0


<< give us the exact output. >>



D:\temp>java -classpath . KevAssignment5.class
Exception in thread "main" java.lang.NoClassDefFoundError: KevAssignment5/class


and

D:\temp>jview /cp . KevAssignment5.class
java.lang.NoSuchMethodError: java/lang/Double: method parseDouble(Ljava/lang/Str
ing;)D not found
at KevAssignment5.main
 

Martin

Lifer
Jan 15, 2000
29,178
1
81
why dont you save yourself some trouble and get a nice Java IDE that will compile it for you, and also offer some neat features?


JCreator is what I like to use. Small, fast and non-bloated.
 

Ultima

Platinum Member
Oct 16, 1999
2,893
0
0


<< why dont you save yourself some trouble and get a nice Java IDE that will compile it for you, and also offer some neat features?


JCreator is what I like to use. Small, fast and non-bloated.
>>



Yeah, I guess I'll try that and see if it works :)
 

Ultima

Platinum Member
Oct 16, 1999
2,893
0
0


<<

<< why dont you save yourself some trouble and get a nice Java IDE that will compile it for you, and also offer some neat features?


JCreator is what I like to use. Small, fast and non-bloated.
>>



Yeah, I guess I'll try that and see if it works :)
>>



Hey, it actually works now. Thanks!