View previous topic :: View next topic |
Author |
Message |
MartinB Apprentice
Joined: 12 Feb 2003 Posts: 222 Location: Apeldoorn, Netherlands
|
Posted: Mon Feb 24, 2003 1:52 pm Post subject: Cannot run JAVA programs |
|
|
This may seem like a simple question, but I'm really struggling to find out how I'm supposed to get JAVA programs working in Gentoo. I've installed the Blackdown JRE and JDK.
I have set my $CLASSPATH to look for some additional class files that I have.
I type:
javac program.java
And I get a "program.class" file, which I guess means that there are no problems at this stage.
I then type:
java program.class
And I get an error saying:
Exception in thread "main" java.lang.NoClassDefFoundError: program/class
Does anyone have any ideas what I'm doing wrong? I'm sure that CLASSPATH is pointint correctly (It wouldn't compile when it wasn't) and I can't think of anything else to try.
Any ideas?
Cheers,
Martin _________________ Intel i7 3820 - 16GB Corsair DDR3 - GeForce GTX 660 2GB - SBLive - 13TB - Gentoo - KDE4 |
|
Back to top |
|
|
sibbe n00b
Joined: 31 Jan 2003 Posts: 35 Location: Helsinki, Finland
|
Posted: Mon Feb 24, 2003 1:56 pm Post subject: |
|
|
try java program instead of java program.class :) _________________ jyrki muukkonen |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|