• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

What to put in the path varible.

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Never Mind, figured out my problem.
 
reply
    Bookmark Topic Watch Topic
  • New Topic