|
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 |
Eclipse User |
|
|
|
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."
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03695 seconds