Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I can't compile a program...

Status
Not open for further replies.

mackey333

Technical User
May 10, 2001
563
US
I cannot compile a java program. 3rd party editors say "could not initialize java vm" and when I try to do a javac in a comand prompt, it says "'javac' is not a known command, exe, or batch file". I have uninstalled/redownloaded/installed the sdk package at least 5 times and it still will not work. I am using windows xp, is there some setting I need to change in this gay os...does microsoft not allow you to use sun's sdk? (do i have to download the microsoft java kit or some bs like that?). I need to be able to compile a program somehow so I can complete my assignments so any help is appreciated. -Greg :-Q

flaga.gif
 
ok, I can now compile in dos with javac, but when I try to run the class file I get "exception in thread 'main': java.lang.NoClassDefFoundError" -Greg :-Q

flaga.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top