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 Installing java and putting it in the Path variable. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Installing java and putting it in the Path variable." Watch "Installing java and putting it in the Path variable." New topic
Author

Installing java and putting it in the Path variable.

Scott Pike
Greenhorn

Joined: Jan 17, 2007
Posts: 12
I read the instructions and installed java, then I tried to add the java binto the path , but when I tried to use the program to test my file, it didn't recognize the javac command as anything. I'm a total beginer at java and don't really know how to add the path to the java program. Please help.
Nathan Leniz
Ranch Hand

Joined: Nov 26, 2006
Posts: 132
Hi there, welcome to Java Ranch!

There are lots of other posts up regarding installing Java and configuring your path. I did a search and this one looks pretty good.

If you have other problems, post where your java folders are located on your machine and also it may help to post your path variable. Feel free to ask more questions as you need, that's what this place is all about.

Nate
[ January 28, 2007: Message edited by: Nathan Leniz ]

The very existence of flamethrowers proves that at some time, some where, some place, someone once said to themselves "I'd really like to set those people on fire over there, but I just can't get close enough".
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Welcome to JavaRanch!

Please tell us the full path of where you installed Java, and copy and paste your full PATH variable here. Also tell us what operating system you're using.


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Scott Pike
Greenhorn

Joined: Jan 17, 2007
Posts: 12
I installed my java in the my C:\Program Files\Java\jdk1.5.0_10\bin
As for the Path. I'm not sure if I found the right one when I tried to put it there. it was in the environment variables.
here it is: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;%JAVA_HOME%\bin;C:\Program Files\QuickTime\QTSystem\
This might be from the last time I tried to install java for my class. :roll:
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

Try adding C:\Program Files\Java\jdk1.5.0_10\bin to the end of your existing PATH. Be sure to separate this new entry with a semicolon, but no spaces. Your new PATH should look like this...

%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\ATI Technologies\ATI.ACE\;C:\Program Files\Common Files\Roxio Shared\DLLShared\;%JAVA_HOME%\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Java\jdk1.5.0_10\bin

After setting this, reboot.
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2491
    
    8

Originally posted by Scott Pike:
...Shared\DLLShared\;%JAVA_HOME%\bin;C:\...


It's the %JAVA_HOME% setting that is giving you problems.

If the PATH variable is set before the JAVA_HOME variable, it will never be translated to your java installation,
even if your JAVA_HOME variable is set correctly.

Replace it with the actual location of your java bin directory.

Regards, Jan


OCUP UML fundamental and ITIL foundation
youtube channel
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Installing java and putting it in the Path variable.
 
Similar Threads
i m begginer in java
Sorry, but i just dont get how to set the PATH variable :sheepish:
OOP1 Classpath issue
Cannot Install jwsdp
Can't start the server-----please help!