File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Java version problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Java version problem" Watch "Java version problem" New topic

Java version problem

Gabriel White
Ranch Hand

Joined: Mar 02, 2003
Posts: 233
Hey all, just wanted to ask a quick question. I am having problems using the scanner class under java.util library. I do a java - version in a dos prompt and it shows the following:

I have the latest JRE 1.5.06 and the latest JDK installed. I have added the bin directories to my path and I still get this message. I don't know if this has anything to do with my not having the ability to use the scanner class, but I am guessing so.

Thanks in advance.
Keith Lynn
Ranch Hand

Joined: Feb 07, 2005
Posts: 2398
If you're getting those errors, then the JRE wasn't setup correctly. I would install the JDK again.
Gabriel White
Ranch Hand

Joined: Mar 02, 2003
Posts: 233
I just did. Still nothing. Now I can see that since I am using Jbuilder it has 1.4 installed and I also have 1.5 installed. I have pointed the JDK folder to the new 1.5 JDK folder in Jbuilder and the 1.4 still shows up.


I'll try reinstalling Jbuilder with 1.5 installed unless it uses 1.4 by default.
[ March 29, 2006: Message edited by: Gabriel White ]
Joanne Neal

Joined: Aug 05, 2005
Posts: 3742
Open the properties page for your JBuilder project.
Click the Paths branch in the tree on the left. This will show you what JDK is being used. Click on the ... button if you need to change it.
Once you have changed it, click on the Build/Java branch of the tree on the left. Set the Language Features and Target VM to the required versions.

ak pillai
Ranch Hand

Joined: Feb 11, 2006
Posts: 288
If you also have 1.4, try and uninstall it.

java j2ee job interview questions with answers | Learn the core concepts and the key areas
I agree. Here's the link:
subject: Java version problem
It's not a secret anymore!