aspose file tools
The moose likes Beginning Java and the fly likes Path problem? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Path problem?" Watch "Path problem?" New topic

Path problem?

zira ramli

Joined: Feb 24, 2013
Posts: 2

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.

[Thumbnail for Capture.PNG]

Campbell Ritchie

Joined: Oct 13, 2005
Posts: 40495
Which environment variable is that? Why does it have so many components in? Does %JAVA_HOME% and with \?
Rajdeep Biswas
Ranch Hand

Joined: Mar 26, 2012
Posts: 187

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.

The biggest gamble will be to ask a question whose answer you know in that it will challenge your theory |
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 40495
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

Joined: Sep 28, 2013
Posts: 1
after checking echo %JAVA_HOME%
i get a message %JAVA_HOME%
what should i do next?
fred rosenberger
lowercase baba

Joined: Oct 02, 2003
Posts: 11574

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.

There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14493

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.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Doug Slavens

Joined: Sep 10, 2013
Posts: 11
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?
I agree. Here's the link:
subject: Path problem?