Jump to content

[SOLVED] Setting environmental variables windows Vista


Recommended Posts

Anybody know if vista has a bug on setting variables, I installed the java JDK, and I set the variables, but they do not take affect.  when ever I type in javac myfile.java, I get the `javac` is not a recognized internal or external command   Error message.

 

Here is a screen shot of the variables, looks like it should work to me.

 

EDIT:

 

If I put the whole path to the javac.exe file, it will work fine.  But I cannot run java.exe I get

 

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

 

[attachment deleted by admin]

Ensure you restart Vista after changes.

 

Not necessary, just open a new console. The old ones will still have the old PATH loaded.

 

Yeah I tried a new window, but that didnt work, Reset the computer, and still not luck.  I set the path in the Path variable as well, Still no luck.

C:\Perl\site\bin;C:\Perl\bin;C:\Program Files\PHP\;%GTK_BASEPATH%\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\9.0\DLLShared\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Java\jdk1.6.0_07\bin\

 

The path to the javac.exe is

C:\Program Files\Java\jdk1.6.0_07\bin

Yeah, I dont know I can create the class file by typing in the whole path to the javac file, so I am not too upset with that, but I cannot run the java.exe file to execute it.  I keep getting this.

 

 

 

[attachment deleted by admin]

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.