Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Does mwe2 require Java 1.7?
Does mwe2 require Java 1.7? [message #1404604] Mon, 04 August 2014 08:38 Go to next message
Eclipse UserFriend
An attempt to run my headless build using Java 1.6 fails with:

java.lang.NoClassDefFoundError: org/eclipse/emf/mwe2/launch/runtime/Mwe2Launcher


Running the exact same build with a Java 1.7 works OK. Has mwe2 dropped support for < 1.7? If so, does that apply to xtext in general?
Re: Does mwe2 require Java 1.7? [message #1404628 is a reply to message #1404604] Mon, 04 August 2014 10:51 Go to previous messageGo to next message
Eclipse UserFriend
The BREE is still set to J2SE-1.5 nothing was changed.
Are there any other error log messages? Like e.g. "bundle *.mwe2.launch could not be resolved" or loaded?
Re: Does mwe2 require Java 1.7? [message #1404634 is a reply to message #1404628] Mon, 04 August 2014 11:14 Go to previous messageGo to next message
Eclipse UserFriend
No other errors/warnings. And I can switch back and forth between 1.6 and 1.7. It always fails with 1.6 and it always succeeds with 1.7.

I noticed that the IDE requires 1.7 now. Could it be that the OSGi runtime filters the classpath based on dependencies that has that requirement somehow? Another thing that I've encountered in the past is that I've been using a 1.7 target inadvertently and hence ended up with illegal bytecodes in the class files.
Re: Does mwe2 require Java 1.7? [message #1404641 is a reply to message #1404634] Mon, 04 August 2014 11:40 Go to previous messageGo to next message
Eclipse UserFriend
Luna should be still 1.6 (at least the core part)
http://build.eclipse.org/simrel/luna/reporeports/reports/breedata.txt

Are you able to connect to the running osgi container using osgi console? And run some diagnostics to determinate Loaded/Active bundles.
Re: Does mwe2 require Java 1.7? [message #1404642 is a reply to message #1404641] Mon, 04 August 2014 11:42 Go to previous messageGo to next message
Eclipse UserFriend
I'll try the OSGi console tomorrow and report back.
Re: Does mwe2 require Java 1.7? [message #1404671 is a reply to message #1404642] Mon, 04 August 2014 18:16 Go to previous messageGo to next message
Eclipse UserFriend
I made some more tests and discovered that this somehow is related to my use of the JRockit JVM. Using jrockit-jdk1.6.0_45 produces the error but using Oracle's jdk1.6.0_45 does not. I'll let it rest there. Doesn't seem meaningful to spend time figuring out subtle class-loading differences in two jdk's that are no longer supported.
Re: Does mwe2 require Java 1.7? [message #1404692 is a reply to message #1404671] Tue, 05 August 2014 02:48 Go to previous messageGo to next message
Eclipse UserFriend
hi, we are using jrockit-jdk1.6.0_45 in my current project as well. it works fine (using fornax plugin)
Re: Does mwe2 require Java 1.7? [message #1404716 is a reply to message #1404692] Tue, 05 August 2014 05:07 Go to previous message
Eclipse UserFriend
I didn't intend to put blame on Jrockit. I'm just concluding that it does something different in my particular scenario. Might well be that JRockit is less forgiving.
Previous Topic:Problem with import warning in xtext grammar
Next Topic:Xtend installation without Xtext
Goto Forum:
  


Current Time: Tue Jul 08 09:50:20 EDT 2025

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

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

Back to the top