|Re: Exporting RCP, compilation errors [message #887849 is a reply to message #886568]
||Sun, 17 June 2012 08:36
|| Libor Jelinek
Registered: January 2012
Location: Prague, Czech Rep.
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
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.
On 06/15/2012 09:34 AM, Ana H wrote:
> 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?
Powered by FUDForum
. Page generated in 0.01783 seconds