View Full Version : Powershell on Vista
souljaa
17-04-08, 04:08 PM
:salams
Is anyone familiar with this?
Im tryna compile a Java file with this but it comes up with this...
The term 'javac' is not recognized as a cmdlet, function, operable program, or script file. Verify the term and try again
I've set the PATH variable but it still doesn't work. Any suggestions? :help:
Shaolin's-Finest
17-04-08, 04:28 PM
Are you sure you didn't miss out the colon before and after the directory ? This is how mine is set:
C:\Program Files (x86)\Java\jdk1.6.0_05\bin;
Set in Enviroment variables. Check the path dir to make sure the directory actually exists. Then open up cmd and type in javac -version.
souljaa
17-04-08, 04:33 PM
It won't work unless im doing something else wrong?
C:\Program Files\Java\jdk1.6.0_05\bin
^ That's the path im using.
If i want to compile in cmd, what would the full command be? Assuming the file is called abc.java and it's located on the desktop.
Shaolin's-Finest
17-04-08, 05:49 PM
Does the path have a ";" at the end of it ?
If you want to compile in cmd then navigate to the directory of the java file and type javac filename.java
First, have you verified the path in powershell? ($env:path)
First, have you verified the path in powershell? ($env:path)
Sorry, the silly smiley was inserted in place of colon p. What I meant was:
$env:path
of course.
vBulletin® v3.7.4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.