• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Path problem?

 
zira ramli
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have set in environment variable as :
C:\Perl\site\bin;C:\Perl\bin;c:\Program Files (x86)\Intel\iCLS Client\;c:\Program Files\Intel\iCLS Client\;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;c:\Program Files (x86)\Hewlett-Packard\HP ProtectTools Security Manager\Bin\;C:\strawberry\c\bin;C:\strawberry\perl\site\bin;%JAVA_HOME%\bin

but, when i tried compile my java the error (attached) still come out. please help.



Capture.PNG
[Thumbnail for Capture.PNG]
error
 
Campbell Ritchie
Sheriff
Pie
Posts: 50189
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which environment variable is that? Why does it have so many components in? Does %JAVA_HOME% and with \?
 
Rajdeep Biswas
Ranch Hand
Posts: 224
1
Eclipse IDE Java Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
javac.exe file could not be located so there is a flaw in the path or your Java installation directory, if at all.
Whats does echo %JAVA_HOME% prints?
And when you type javac alone and hit enter, do all the command options come up on your console.
 
Campbell Ritchie
Sheriff
Pie
Posts: 50189
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for the spelling error; I meant to say does %JAVA_HOME% end with \?
Please post the text of the whole of your PATH.
 
upendra karki
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
after checking echo %JAVA_HOME%
i get a message %JAVA_HOME%
what should i do next?
 
fred rosenberger
lowercase baba
Bartender
Posts: 12196
35
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have a JDK installed? if so, go into it and fine where the "javac.exe" file is. from that directory, try running it to make sure it works.

If not, try re-installing. If so, make sure that that path is in your PATH directory.

You do not actually need a JAVA_HOME variable, which it looks like you don't.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15482
43
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In your screenshot, I see the following command:

cd /d ô"C:\MetoceanStation\web"?

Why is there a ô and a ? in that command? That does not look correct.
 
Doug Slavens
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Agree with Campbell above - more information would be helpful. If you type the command:

java -version

and see output like

java version "1.7.0_40"
Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
Java HotSpot(TM) Client VM (build 24.0-b56, mixed mode, sharing)

the java install is probably correct.

Can you also type the command set and post that output to see your environment?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic