Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Does mwe2 require Java 1.7?
Does mwe2 require Java 1.7? [message #1404604] Mon, 04 August 2014 12:38 Go to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
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 14:51 Go to previous messageGo to next message
Dennis Huebner is currently offline Dennis HuebnerFriend
Messages: 257
Registered: July 2009
Senior Member

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?



+Dennis Huebner

Get professional support from the Xtext committers at www.typefox.io
Re: Does mwe2 require Java 1.7? [message #1404634 is a reply to message #1404628] Mon, 04 August 2014 15:14 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
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 15:40 Go to previous messageGo to next message
Dennis Huebner is currently offline Dennis HuebnerFriend
Messages: 257
Registered: July 2009
Senior Member

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.



+Dennis Huebner

Get professional support from the Xtext committers at www.typefox.io
Re: Does mwe2 require Java 1.7? [message #1404642 is a reply to message #1404641] Mon, 04 August 2014 15:42 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
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 22:16 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
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 06:48 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13280
Registered: July 2009
Senior Member
hi, we are using jrockit-jdk1.6.0_45 in my current project as well. it works fine (using fornax plugin)

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Does mwe2 require Java 1.7? [message #1404716 is a reply to message #1404692] Tue, 05 August 2014 09:07 Go to previous message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
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: Mon Dec 16 10:09:01 GMT 2019

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

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

Back to the top