peranha Posted September 20, 2008 Share Posted September 20, 2008 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] Quote Link to comment https://forums.phpfreaks.com/topic/125115-solved-setting-environmental-variables-windows-vista/ Share on other sites More sharing options...
wildteen88 Posted September 20, 2008 Share Posted September 20, 2008 You should add the Java Bin folder to the PATH (System Variable) instead. Ensure you restart Vista after changes. Quote Link to comment https://forums.phpfreaks.com/topic/125115-solved-setting-environmental-variables-windows-vista/#findComment-646624 Share on other sites More sharing options...
Daniel0 Posted September 20, 2008 Share Posted September 20, 2008 Ensure you restart Vista after changes. Not necessary, just open a new console. The old ones will still have the old PATH loaded. Quote Link to comment https://forums.phpfreaks.com/topic/125115-solved-setting-environmental-variables-windows-vista/#findComment-646626 Share on other sites More sharing options...
peranha Posted September 20, 2008 Author Share Posted September 20, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/125115-solved-setting-environmental-variables-windows-vista/#findComment-646636 Share on other sites More sharing options...
Daniel0 Posted September 20, 2008 Share Posted September 20, 2008 What does your PATH variable look like? Oh yeah, and use the system variables. Not the user ones. Quote Link to comment https://forums.phpfreaks.com/topic/125115-solved-setting-environmental-variables-windows-vista/#findComment-646638 Share on other sites More sharing options...
peranha Posted September 20, 2008 Author Share Posted September 20, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/125115-solved-setting-environmental-variables-windows-vista/#findComment-646642 Share on other sites More sharing options...
Daniel0 Posted September 20, 2008 Share Posted September 20, 2008 Hmm... I don't know then. JDK works fine for me on Vista when its bin folder is in PATH. Quote Link to comment https://forums.phpfreaks.com/topic/125115-solved-setting-environmental-variables-windows-vista/#findComment-646645 Share on other sites More sharing options...
peranha Posted September 20, 2008 Author Share Posted September 20, 2008 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] Quote Link to comment https://forums.phpfreaks.com/topic/125115-solved-setting-environmental-variables-windows-vista/#findComment-646649 Share on other sites More sharing options...
peranha Posted September 21, 2008 Author Share Posted September 21, 2008 Not sure, I really have Vista. It started to work now after 6+ hours of working on it. Thanks for the help. Quote Link to comment https://forums.phpfreaks.com/topic/125115-solved-setting-environmental-variables-windows-vista/#findComment-646792 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.