Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / November 2005

Tip: Looking for answers? Try searching our database.

how to compile and run

Thread view: 
Xodiox - 17 Nov 2005 08:42 GMT
Hi all

Im working on a linux computer at work and need to be  able to compile
and run java. Since i have no idea on how all of this compiling stuff
works its is getting very enoying... Im trying to compile the code with
emacs and it compiles fine i think, but I cant get it to run the
program all i get is to see  the code i have just wrote again or it
does nothing. How or with what special linux language can i get this to
run the program and give me the window i need ?

Thanks
Xodiox - 17 Nov 2005 11:01 GMT
im moving forward slowly but now got some more/different problems. Made
some .jar files and when i try to run the main one i get this msg..

Exception in thread "main" java.lang.NoClassDefFoundError:
ClickMeApp/java

Any ideas on how to fix it?
Roedy Green - 17 Nov 2005 11:05 GMT
>NoClassDefFoundError

see http://mindprod.com/jgloss/cac.html
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Aki Laukkanen - 17 Nov 2005 11:15 GMT
> im moving forward slowly but now got some more/different problems. Made
> some .jar files and when i try to run the main one i get this msg..
[quoted text clipped - 3 lines]
>
> Any ideas on how to fix it?

The correct command line to run a program called ClickMeApp is

javac ClickMeApp.java
java ClickMeApp

You probably typed "java ClickMeApp.java", which is wrong.

P.S. *Do* try to read Java's accompanying documentation... You'll find
solutions to most such basic problems there.

Signature

-Aki Laukkanen



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.