• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Path Variable  RSS feed

 
Christine Coleman
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have BlueJ installed on my computer and it does the job of compiling the java source code written in it. If I want to write and compile source code outside of BlueJ do I still need to download the Java SDK and set the PATH variable, even though I am apparently able to do it in BlueJ? Thank you.
 
Stephan van Hulst
Saloon Keeper
Posts: 7969
143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Christine, welcome to CodeRanch!

I'm not sure what the question is. Are you confused with *why* you need the JDK and a PATH variable, or do you want to know what the reason is to work without BlueJ?
 
Campbell Ritchie
Marshal
Posts: 56527
172
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome again

When you get fed up of BlueJ, which in my case was very soon after trying it, yes, you will need a PATH and a JDK. The fact that BlueJ works at all means you might already have them correctly installed and set. Try this at the command line (Windows®):-
echo %PATH%
or this at a shell (Linux.Unix.Mac):-
echo $PATH
Try both of these (any OS):-
java -version
javac -version

See whether you get useful output from all those instructions.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!