This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes What to put in the path varible. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "What to put in the path varible." Watch "What to put in the path varible." New topic
Author

What to put in the path varible.

Peter Munch
Greenhorn

Joined: Sep 15, 2007
Posts: 2
I'm reading the great book Head First Java at the moment to learn Java. But I got one problem, I have tried to add the location of the bin folder to the Path variable but Cygwin still won't let me find Javac. I have done this on another computer, it worked on that one. But on this one it won't work of some strange reason.
Adam Nace
Ranch Hand

Joined: Jul 17, 2006
Posts: 117
We're going to need some more context than that, if we're to know what's gone wrong. Here's what I suggest. Executed the following command:



in cygwin, and paste the results, here, and we might be able to tell you what's wrong.


In general, in cygwin, you want to put something like this into your bashrc:



Note, that is a colon ( not a semicolon ( . If you're used to working in DOS (or the Windows Command Prompt), this might surprise you.

Also, note that you might have to use the cygdirve path, from cygwin:



If you choose not to use your bashrc (or rc file for whatever shell you're using), you could do this:



Anyway, try echoing out your path, and find out what it looks like, and if it looks the way you expect it to.

- Adam
Peter Munch
Greenhorn

Joined: Sep 15, 2007
Posts: 2
Never Mind, figured out my problem.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What to put in the path varible.
 
Similar Threads
Installation Problem-Help with running compiled code in command line.
Save file to remote computer on same LAN
Is it possible to use multiple JDK's?
How to suppress warnings thrown by log4j?
Error in starting Eclipse 3.0.