File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Path environment variable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Path environment variable" Watch "Path environment variable" New topic

Path environment variable

Carol Murphy
village idiot

Joined: Mar 15, 2001
Posts: 1202
Is there a way to view the path variable in its entirety in Windows Vista? I just added the jdk\bin to my path variable, but I was unable to see the whole Path, because it is displayed in a single line text field, and it's a lot longer than that. I want to look at the whole string to see what else is there, but I don't want to do it from the edit function because I'm afraid my cat will try to help and erase it or something. Can I access the Path variable from somewhere else where I can see the whole thing at once?
Aj Prieto
Ranch Hand

Joined: Sep 28, 2012
Posts: 75

In the cmd line, enter

Da mihi sis bubulae frustum assae, solana tuberosa in modo Gallico fricta ac quassum lactatum coagulatum crassum.
Carol Murphy
village idiot

Joined: Mar 15, 2001
Posts: 1202
Answered my own question! The DOS command SET did the trick. On a side note, I added the jdk to the end of the path, but there is a C:\Program Files\Common Files\Microsoft Shared\Windows Live variable that comes after the jdk. Is that normal or.....?
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15045

What other directories in the PATH shouldn't matter, as long as the JDK's bin directory is also in the path. Directories in the PATH are separated by semi-colons on Windows.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
I agree. Here's the link:
subject: Path environment variable
jQuery in Action, 3rd edition