Reputation: 11
I have struggled for almost 2 days now with my java. Since I'm taking a computer science class, we will have to start without programming in an IDE. First of all I had the problem with the "javac" command which I managed to solve, everything worked after that as programs ran in the console etc. But after starting up my computer today executing didnt work! How is that possible?
Information:
I have downloaded lots of java versions, but this is what kind of files I have:
My environment variables:
My 'PATH' is in User variables for Administrator :
C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\12.0\DLLShared\;C:\Program Files (x86)\Roxio\OEM\AudioCore\;C:\Program Files (x86)\QuickTime\QTSystem;.;
While my CLASSPATH is in System variables:
.;C:\Program Files (x86)\Java\jre6\lib\ext\QTJava.zip
None of my friends in my class have the same problem as everything worked fine for them when they downloaded Java. I dont know what Ive done wrong, Ive download so many javas now (as you can see) and now this is taking all my time to fix. I'm seriously thinking about dropping this course as I wont be able to finish my first friggin task in Java-programming since I have to google all day to solve this...
Best regards.
Upvotes: 0
Views: 707
Reputation: 557
You need to add the Java\jdk1.x.x\bin folder to the PATH Variable. Otherwise it won't work. Also, make sure that you are using the Console as the User for whom you set the PATH Variable. Greets
Upvotes: 1