Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot run JAVA programs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
MartinB
Apprentice
Apprentice


Joined: 12 Feb 2003
Posts: 222
Location: Apeldoorn, Netherlands

PostPosted: Mon Feb 24, 2003 1:52 pm    Post subject: Cannot run JAVA programs Reply with quote

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
View user's profile Send private message
sibbe
n00b
n00b


Joined: 31 Jan 2003
Posts: 35
Location: Helsinki, Finland

PostPosted: Mon Feb 24, 2003 1:56 pm    Post subject: Reply with quote

try java program instead of java program.class :)
_________________
jyrki muukkonen
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
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