Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Small problem when running 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
tirantloblanc
Apprentice
Apprentice


Joined: 22 Oct 2002
Posts: 179
Location: Barcelona, ES

PostPosted: Mon Feb 17, 2003 8:47 am    Post subject: Small problem when running java programs Reply with quote

I have installed the JDK from Blackdown.
I can compile java programs perfectly, but when i try tu run some of them, i get an error:
example:

$ javac HelloWorld.java
$ java HelloWorld.class
Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorld/class
Back to top
View user's profile Send private message
abhishek
Retired Dev
Retired Dev


Joined: 28 Jun 2002
Posts: 393
Location: Los Angeles, CA

PostPosted: Mon Feb 17, 2003 9:58 am    Post subject: Reply with quote

See what happens when you run
Code:
java HelloWorld
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