JRE not compatible with workspace .class file compatibility [message #256470] |
Thu, 15 May 2008 20:40 |
Eclipse User |
|
|
|
Originally posted by: alfredo.ramos.networksolutions.com
I am loading up a project into Eclipse. I use jre1.5.0_09 - I don't have
any other JREs installed on my laptop. I can run the project fine from
command line, but when I try to run it from Eclipse by doing Run As->Open
Run Dialog and filling out the info... It says:
[JRE]: JRE not compatible with workspace .class file compatibility: 1.6
The odd part is that this works fine when run from command line. Any hint?
Thank you
|
|
|
Re: JRE not compatible with workspace .class file compatibility [message #256475 is a reply to message #256470] |
Thu, 15 May 2008 21:42 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Alfredo,
If you look in Window->Preferences->Java->Installed JREs, is the one
you're expecting actually there? Were these .class files produced by
Eclipse? In Eclipse you'd want to set our source compatibility in the
preferences to be 1.5...
Alfredo wrote:
> I am loading up a project into Eclipse. I use jre1.5.0_09 - I don't
> have any other JREs installed on my laptop. I can run the project fine
> from command line, but when I try to run it from Eclipse by doing Run
> As->Open Run Dialog and filling out the info... It says:
>
> [JRE]: JRE not compatible with workspace .class file compatibility: 1.6
>
> The odd part is that this works fine when run from command line. Any
> hint?
>
> Thank you
>
|
|
|
|
Re: JRE not compatible with workspace .class file compatibility [message #257704 is a reply to message #256470] |
Thu, 05 June 2008 18:15 |
Eclipse User |
|
|
|
Originally posted by: jaywalkersys.kkkkkk.com
Hi!
Go to Window > Preferences > Java > Compiler and change the "Compiler
compliance level" to 5.0 and try again...
Maybe your project workspace had been sailing over the Java 1.6 seas
before you started working, even in another station...
Good luck and be happy!
Silvio
|
|
|
|
Powered by
FUDForum. Page generated in 0.09208 seconds