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 Help - new to Java and can't get my compiler to work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Help - new to Java and can Watch "Help - new to Java and can New topic
Author

Help - new to Java and can't get my compiler to work

Brian Pelowski
Greenhorn

Joined: Sep 29, 2010
Posts: 10
Help - new to Java and can't get my compiler to work - set my path to program files\java\jre6\bin and typed % javac - but nothing - don't know much - but that is what head first Java seemed to say to do?
Al Fraelich
Greenhorn

Joined: May 25, 2009
Posts: 20
program files\java\jre6\bin


The JRE doesn't have the files you need. You need to point your path to the \bin of the "JDK".
probably something like this.. " C:\Program Files\Java\jdk1.6.0_21\bin "
If you haven't installed it, you can get it from sun, if you have, just change your path to that bin and you should be good.

Let us know if that doesn't work.

Al
Brian Pelowski
Greenhorn

Joined: Sep 29, 2010
Posts: 10
Hmmm - I installed the jdk and jre - but I do not have a directory with jdk??
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

I installed the jdk and jre - but I do not have a directory with jdk??

Where exactly did you install it ? Please give the full path.


[My Blog]
All roads lead to JavaRanch
Brian Pelowski
Greenhorn

Joined: Sep 29, 2010
Posts: 10
Forget it found it!! Thanks!!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Help - new to Java and can't get my compiler to work