Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Exporting RCP, compilation errors
Exporting RCP, compilation errors [message #886568] Fri, 15 June 2012 07:34 Go to next message
Ana H is currently offline Ana HFriend
Messages: 7
Registered: February 2012
Junior Member
Hi!


I'm trying to export my RCP application.
In my workspace everything compiles fine, there are no errors, and when I start my app as an Eclipse application it all works. But when I export a RCP product using Eclipse export wizard I get a lot of compilation errors mostly related to Java version, e.g.:
Syntax error, parameterized types are only available if source level is 1.5

All of my plugin projects have jdk 1.6 set in a build path, and Bundle-RequiredExecutionEnvironment: JavaSE-1.6 in Manifest.
On a product Launching tab I have set Execution environment to JavaSE-1.6.
Am I missing something? Where do I tell which Java version to use for exported Eclipse RCP?

Another question, my plugins are dependent on some other plugins. At the moment I have them as jars which then get packed inside my plugin jar. I know that packing a jar inside another jar is not recommended, I want to tell export wizard to export these jars as plugins. But I didn't find a way to do this because these are just jars inside my workspace and are not installed inside Eclipse. Any suggestions?


Thanks!
Re: Exporting RCP, compilation errors [message #887849 is a reply to message #886568] Sun, 17 June 2012 08:36 Go to previous messageGo to next message
Libor Jelinek is currently offline Libor JelinekFriend
Messages: 143
Registered: January 2012
Location: Prague, Czech Rep.
Senior Member

Maybe Eclipse launcher (a native piece of code bootstrapping Java
RCP-based app) is choosing bad Java version.

Place System.out.println(System.getProperty("java.version")) or
something like this to class implementing IApplication or some plug-in
activator.

There are at least to ways how to advise Eclipse launcher which JRE
should use. Either place JRE as subfolder of RCP app, or specify JRE in
yourapp.ini (look on eclipse.ini in your Eclipse IDE). Unfortunately I
don't remember exact parameter for launcher ini by heart, but it's easy
to find it in online help.

Ad question #2: Please re-post it as separate question to keep forum
organized. But to your question: for quite long time (I don't remember
Eclipse version), it's nothing wrong with bundling JARs as JARs (not
unpacked). It may be only a little bit slower...

I recommend you to package one third-party JAR (or JARs comprising a
library) as one plug-in.

Libor


On 06/15/2012 09:34 AM, Ana H wrote:
> Hi!
>
>
> I'm trying to export my RCP application.
> In my workspace everything compiles fine, there are no errors, and when
> I start my app as an Eclipse application it all works. But when I export
> a RCP product using Eclipse export wizard I get a lot of compilation
> errors mostly related to Java version, e.g.:
> Syntax error, parameterized types are only available if source level is 1.5
> All of my plugin projects have jdk 1.6 set in a build path, and
> Bundle-RequiredExecutionEnvironment: JavaSE-1.6 in Manifest.
> On a product Launching tab I have set Execution environment to JavaSE-1.6.
> Am I missing something? Where do I tell which Java version to use for
> exported Eclipse RCP?
>
> Another question, my plugins are dependent on some other plugins. At the
> moment I have them as jars which then get packed inside my plugin jar. I
> know that packing a jar inside another jar is not recommended, I want to
> tell export wizard to export these jars as plugins. But I didn't find a
> way to do this because these are just jars inside my workspace and are
> not installed inside Eclipse. Any suggestions?
>
>
> Thanks!
Re: Exporting RCP, compilation errors [message #889905 is a reply to message #887849] Wed, 20 June 2012 08:14 Go to previous message
Ana H is currently offline Ana HFriend
Messages: 7
Registered: February 2012
Junior Member
Thanks!
I found a Jave JRE1.5 referenced from one of my plugin projects, now it works.
I'll start my second question in a new thread.
Previous Topic:[commands] Unwanted deactivations of menus
Next Topic:Using third-party jars bundled inside another plugin.
Goto Forum:
  


Current Time: Thu May 09 16:06:07 GMT 2024

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

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

Back to the top