• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java version problem

 
Ranch Hand
Posts: 233
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 2412
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 288
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you also have 1.4, try and uninstall it.
 
Let nothing stop you! Not even this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic