Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java version problem

 
Gabriel White
Ranch Hand
Posts: 233
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2409
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you're getting those errors, then the JRE wasn't setup correctly. I would install the JDK again.
 
Gabriel White
Ranch Hand
Posts: 233
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Hmmmm

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
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author
Ranch Hand
Posts: 288
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you also have 1.4, try and uninstall it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic