Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Run RCP App compiled w/ Java 1.5 on targets with Java 1.4
Run RCP App compiled w/ Java 1.5 on targets with Java 1.4 [message #453062] Fri, 21 July 2006 00:35 Go to next message
Bill Blalock is currently offline Bill BlalockFriend
Messages: 119
Registered: July 2009
Location: Alabama
Senior Member
This is Eclipse 3.2 on Windows XP.

I am developing my first RCP. The target machines JVM is Java 1.4.2.08.
The SDK on my PC is Java 1.5.0.7.

Does anyone have a list of steps for building an RCP application under
Java 1.5 so that it will run with a 1.4 JVM?

Using the Export Wizard I am able to export the application. It runs on
my PC but gets a major.minor version error when attempting to load the
Application class on the target PCs.

- In the launcher configuration I specified 1.4.
- In the preferences for the project I overrode the workbench preferences
and specified Java 1.4 for the project.
- In the build path I choose the Java 1.4 classes.

Can anyone tell me what I have done wrong here?

Is there a list of steps for creating RCPs with Eclipse 3.2 which run on
older JVM? On the Export Wizard of Eclipse 3.1 there was a selection of
what JVM to compile for.

Thanks
BillB
Re: Run RCP App compiled w/ Java 1.5 on targets with Java 1.4 [message #453066 is a reply to message #453062] Fri, 21 July 2006 04:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lamont_gilbert.rigidsoftware.com

Bill Blalock wrote:

>
> This is Eclipse 3.2 on Windows XP.
>
> I am developing my first RCP. The target machines JVM is Java 1.4.2.08.
> The SDK on my PC is Java 1.5.0.7.
>
> Does anyone have a list of steps for building an RCP application under
> Java 1.5 so that it will run with a 1.4 JVM?
>
> Using the Export Wizard I am able to export the application. It runs on
> my PC but gets a major.minor version error when attempting to load the
> Application class on the target PCs.
>
> - In the launcher configuration I specified 1.4.
> - In the preferences for the project I overrode the workbench preferences
> and specified Java 1.4 for the project.
> - In the build path I choose the Java 1.4 classes.
>
> Can anyone tell me what I have done wrong here?
>
> Is there a list of steps for creating RCPs with Eclipse 3.2 which run on
> older JVM? On the Export Wizard of Eclipse 3.1 there was a selection of
> what JVM to compile for.
>
> Thanks
> BillB


Download the 1.4 SDK and compile against it. That is the easiest way.
Otherwise, you have to know which objects/methods are new for 1.5. The
compiler setting will make sure the code format is compatible, but you have
to do your part to ensure the runtime environments are compatible by using
the proper SDK.

--
Respectfully,

CL Gilbert
"Verily, verily, I say unto you, He that entereth not by the door() into the
sheepfold{}, but climbeth up some other *way, the same is a thief and a
robber."
Re: Run RCP App compiled w/ Java 1.5 on targets with Java 1.4 [message #453083 is a reply to message #453066] Fri, 21 July 2006 11:03 Go to previous messageGo to next message
Bill Blalock is currently offline Bill BlalockFriend
Messages: 119
Registered: July 2009
Location: Alabama
Senior Member
CL [dnoyeb] Gilbert wrote:

> Bill Blalock wrote:

>>
>> This is Eclipse 3.2 on Windows XP.
>>
>> I am developing my first RCP. The target machines JVM is Java 1.4.2.08.
>> The SDK on my PC is Java 1.5.0.7.
>>
>> Does anyone have a list of steps for building an RCP application under
>> Java 1.5 so that it will run with a 1.4 JVM?
>>
>> Using the Export Wizard I am able to export the application. It runs on
>> my PC but gets a major.minor version error when attempting to load the
>> Application class on the target PCs.
>>
>> - In the launcher configuration I specified 1.4.
>> - In the preferences for the project I overrode the workbench preferences
>> and specified Java 1.4 for the project.
>> - In the build path I choose the Java 1.4 classes.
>>
>> Can anyone tell me what I have done wrong here?
>>
>> Is there a list of steps for creating RCPs with Eclipse 3.2 which run on
>> older JVM? On the Export Wizard of Eclipse 3.1 there was a selection of
>> what JVM to compile for.
>>
>> Thanks
>> BillB


> Download the 1.4 SDK and compile against it. That is the easiest way.
> Otherwise, you have to know which objects/methods are new for 1.5. The
> compiler setting will make sure the code format is compatible, but you have
> to do your part to ensure the runtime environments are compatible by using
> the proper SDK.

Thanks CL but I believe I have done this.

Both 1.4 and 1.5 SDKs are installed on the development machine. I have
done everything I can think of to tell Eclipse 3.2 to use 1.4 for this
project on the project level preferences.

Can someone list the steps to take for Eclipse 3.2 to build / export an
RCP application so the exported classes will run under 1.4.

Thanks
Bill B
Re: Run RCP App compiled w/ Java 1.5 on targets with Java 1.4 [message #453107 is a reply to message #453083] Fri, 21 July 2006 15:32 Go to previous messageGo to next message
Neil Bartlett is currently offline Neil BartlettFriend
Messages: 93
Registered: July 2009
Member
Try setting the javacTarget (and optionally javacSource) properties in the
build.properties file for your bundle.

This is documented in the Eclipse help system under the path "Plug-in
Development Environment Guide > Tasks > Advanced PDE Build topics >
Controlling compilation environment".

Kind regards,
Neil
Re: Run RCP App compiled w/ Java 1.5 on targets with Java 1.4 [message #453112 is a reply to message #453107] Fri, 21 July 2006 18:55 Go to previous message
Bill Blalock is currently offline Bill BlalockFriend
Messages: 119
Registered: July 2009
Location: Alabama
Senior Member
Neil:

Thank you for pointing me to the correct documentation!

Bill Blalock
Previous Topic:Depolying RCP using java Web Start
Next Topic:Problem With Editors
Goto Forum:
  


Current Time: Sat Dec 21 15:09:25 GMT 2024

Powered by FUDForum. Page generated in 0.03087 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top