pointing to a new version of java [message #22121] |
Tue, 01 February 2005 08:47  |
Eclipse User |
|
|
|
Originally posted by: ewanski.cox.net
Hi,
I want to access the Scanner class which is in Java 5 but I recieve this
error:
java.lang.Error: Unresolved compilation problem:
Scanner cannot be resolved or is not a type
I downloaded and installed JDK 5.0 from here:
http://java.sun.com/j2se/1.5.0/download.jsp
I'm on XP. I tried to fix it by diving into: Control Panel, System,
Advanced, Environment Variables. I have a PATH (under User variables) and
a Path variable (under System variables) which I changed because someone
suggested I do that.
My new PATH variable is:
C:\Program Files\SSH Communications Security\SSH Secure Shell;C:\Program
Files\Java\jdk1.5.0_01\bin
My new Path variable is:
System variables:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbe m;C:\Program
Files\Common Files\Adaptec Shared\System;C:\Program
Files\Java\jdk1.5.0_01\lib;C:\Program Files\Common
Files\OpSession\Shared;C:\Program Files\Common Files\OpSession\Viewer
Shared
Does anyone know why I can't access Java 5?
Thank you.
|
|
|
Re: pointing to a new version of java [message #22164 is a reply to message #22121] |
Tue, 01 February 2005 09:16  |
Eclipse User |
|
|
|
Originally posted by: myersj.gmail.com
e1ski,
Go to Window->Preferences->Java->Installed JREs and add your newly
installed JRE. Make sure the resulting JRE is checked so that it is
used by default. Also, be aware that the new language features in 1.5
won't be supported in Eclipse 3.0.1, you must try 3.1 M4 to start using
them.
- Jeff
e1ski wrote:
> Hi,
> I want to access the Scanner class which is in Java 5 but I recieve this
> error:
>
> java.lang.Error: Unresolved compilation problem: Scanner cannot be
> resolved or is not a type
>
>
> I downloaded and installed JDK 5.0 from here:
> http://java.sun.com/j2se/1.5.0/download.jsp
>
> I'm on XP. I tried to fix it by diving into: Control Panel, System,
> Advanced, Environment Variables. I have a PATH (under User variables)
> and a Path variable (under System variables) which I changed because
> someone suggested I do that.
>
> My new PATH variable is:
> C:\Program Files\SSH Communications Security\SSH Secure Shell;C:\Program
> Files\Java\jdk1.5.0_01\bin
>
> My new Path variable is:
> System variables:
> %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbe m;C:\Program
> Files\Common Files\Adaptec Shared\System;C:\Program
> Files\Java\jdk1.5.0_01\lib;C:\Program Files\Common
> Files\OpSession\Shared;C:\Program Files\Common Files\OpSession\Viewer
> Shared
>
> Does anyone know why I can't access Java 5?
> Thank you.
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.38093 seconds