aspose file tools
The moose likes Beginning Java and the fly likes Also new to Java Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Also new to Java" Watch "Also new to Java" New topic
Author

Also new to Java

Per Blindheim
Greenhorn

Joined: Jul 17, 2005
Posts: 1
I have just installed version J2SE Development Kit 5.0 Update 4, but I am unable to get things right. I'm running XP Professional SR2 and have appended my install dir to the path. I have double-checked the PATH many times and it is the correct one. I am absolutely a very, very green rookie.

According to "Head First Java", I shall use "% javac" in the command prompt but I alternatively get two errors, one: "error cannot read XXX.java" and two:'%' is not recognized as an internal or external command, operable or batch file.
Using just "javac" does not help either.

What am I doing wrong.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 26496
    
  78

Per,
Welcome to JavaRanch!

I think "%" is the prompt. Normally, you just type in "javac."

The "error cannot read XXX.java" sounds like you are finding javac. You can verify this by typing "javac -help". If this comes back with a list of options, java is installed fine. Then you can check if your java file exists and is in the same directory. If "javac -help" gives you an error message, you can try moving the install directory to the beginnng of the PATH.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9033
    
  10
Originally posted by Per Blindheim:
I ... have appended my install dir to the path. I have double-checked the PATH many times and it is the correct one.

You should append (install dir)/bin to the path. You may need to move it to the front of the path.
[ July 17, 2005: Message edited by: Marilyn de Queiroz ]

JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Also new to Java
 
Similar Threads
packages doubt
javac
Compiling Trouble
Trouble installing JDK 7
Need guidance on how to get Javac compile to execute