File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Path problem?" Watch "Path problem?" New topic
Author

Path problem?

zira ramli
Greenhorn

Joined: Feb 24, 2013
Posts: 2
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.






[Thumbnail for Capture.PNG]

Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36478
    
  16
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: 185

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 | www.TechAspire.blogspot.in
Campbell Ritchie
Sheriff

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

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
Bartender

Joined: Oct 02, 2003
Posts: 10911
    
  12

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: 13869
    
  10

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 7 API documentation
Scala Notes - My blog about Scala
Doug Slavens
Greenhorn

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?
 
jQuery in Action, 2nd edition
 
subject: Path problem?
 
Similar Threads
how to set java env variables
Where do I enter environment parms ?
jboss: 'run' is not recognized as an internal or external command
Trouble with Maven installation on Win 7 - broken Path system variable?
Javac