Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » JET Editor in Kepler(How to install JET editor in Kepler)
JET Editor in Kepler [message #1067442] Mon, 08 July 2013 17:55 Go to next message
Franck De Bruijn is currently offline Franck De BruijnFriend
Messages: 7
Registered: July 2013
Junior Member
Hi,

I'm giving the new Kepler release a go. I have always used the JET editor in my previous Eclipse installation (Indigo).

However, I do not manage to succeed the installation. Is JET editor still supported?

I tried the following:

1) Downloaded the All-In-One-Update-Site from http://www.eclipse.org/modeling/m2t/downloads/?project=jet

2) Unzipped the file

3) Eclipse > Help > Install New Software

4) Added the local directory as site

5) Checked all items to be installed

6) Normal continuation in the wizard

7) First a message 'Cannot perform installation (some files are missing)'

8 ) Accept the solution

9) Then the following error appeared:

An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
An error occurred copying file E:\temp\m2t\plugins\org.eclipse.jet_1.1.1.v201101311015.jar.
E:\temp\m2t\plugins\org.eclipse.jet_1.1.1.v201101311015.jar (The system cannot find the file specified)
An error occurred copying file E:\temp\m2t\plugins\org.eclipse.jet.capabilities_1.0.0.v200906120900.jar.
E:\temp\m2t\plugins\org.eclipse.jet.capabilities_1.0.0.v200906120900.jar (The system cannot find the file specified)
An error occurred copying file E:\temp\m2t\plugins\org.eclipse.jet.core_1.2.1.v201101271243.jar.
E:\temp\m2t\plugins\org.eclipse.jet.core_1.2.1.v201101271243.jar (The system cannot find the file specified)
An error occurred copying file E:\temp\m2t\plugins\org.eclipse.jet.doc_1.1.0.v201003251524.jar.
E:\temp\m2t\plugins\org.eclipse.jet.doc_1.1.0.v201003251524.jar (The system cannot find the file specified)
An error occurred copying file E:\temp\m2t\plugins\org.eclipse.jet.editor_1.1.0.v201002261043.jar.
E:\temp\m2t\plugins\org.eclipse.jet.editor_1.1.0.v201002261043.jar (The system cannot find the file specified)
An error occurred copying file E:\temp\m2t\plugins\org.eclipse.jet.source_1.1.1.v201101271243.jar.
E:\temp\m2t\plugins\org.eclipse.jet.source_1.1.1.v201101271243.jar (The system cannot find the file specified)
An error occurred copying file E:\temp\m2t\plugins\org.eclipse.jet.ui_1.0.0.v200906120900.jar.
E:\temp\m2t\plugins\org.eclipse.jet.ui_1.0.0.v200906120900.jar (The system cannot find the file specified)


It turns out that all the files are in *.jar.pack.gz format are. Googled some. Found this wiki-entry: http://wiki.eclipse.org/Pack200. Followed the instructions there. Managed to unpack the real jars. Retried installation.

Then I get a checksum error.

Any help is appreciated!

Thanks in advance,
Kind regards,
Franck
Re: JET Editor in Kepler [message #1067459 is a reply to message #1067442] Mon, 08 July 2013 19:38 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7679
Registered: July 2009
Senior Member
Hi

"An error occurred copying file " makes me suspect that your download
failed in some way. Try and again and check the md5sum.

However, the most recent build was in 2011, so I am afraid that you may
be out of luck for Kepler.

Those of use who are enthusiasts for models are not so enthuisiastic
about JET that has been overtaken by more recent tools such as Xtend or
Acceleo.

Regards

Ed Willink

On 08/07/2013 20:06, Franck De Bruijn wrote:
> Hi,
>
> I'm giving the new Kepler release a go. I have always used the JET
> editor in my previous Eclipse installation (Indigo).
>
> However, I do not manage to succeed the installation. Is JET editor
> still supported?
>
> I tried the following:
>
> 1) Downloaded the All-In-One-Update-Site from
> http://www.eclipse.org/modeling/m2t/downloads/?project=jet
>
> 2) Unzipped the file
>
> 3) Eclipse > Help > Install New Software
>
> 4) Added the local directory as site
>
> 5) Checked all items to be installed
>
> 6) Normal continuation in the wizard
>
> 7) First a message 'Cannot perform installation (some files are missing)'
>
> 8 ) Accept the solution
>
> 9) Then the following error appeared:
>
> An error occurred while collecting items to be installed
> session context was:(profile=epp.package.jee,
> phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
> action=).
> An error occurred copying file
> E:\temp\m2t\plugins\org.eclipse.jet_1.1.1.v201101311015.jar.
> E:\temp\m2t\plugins\org.eclipse.jet_1.1.1.v201101311015.jar (The
> system cannot find the file specified)
> An error occurred copying file
> E:\temp\m2t\plugins\org.eclipse.jet.capabilities_1.0.0.v200906120900.jar.
> E:\temp\m2t\plugins\org.eclipse.jet.capabilities_1.0.0.v200906120900.jar
> (The system cannot find the file specified)
> An error occurred copying file
> E:\temp\m2t\plugins\org.eclipse.jet.core_1.2.1.v201101271243.jar.
> E:\temp\m2t\plugins\org.eclipse.jet.core_1.2.1.v201101271243.jar (The
> system cannot find the file specified)
> An error occurred copying file
> E:\temp\m2t\plugins\org.eclipse.jet.doc_1.1.0.v201003251524.jar.
> E:\temp\m2t\plugins\org.eclipse.jet.doc_1.1.0.v201003251524.jar (The
> system cannot find the file specified)
> An error occurred copying file
> E:\temp\m2t\plugins\org.eclipse.jet.editor_1.1.0.v201002261043.jar.
> E:\temp\m2t\plugins\org.eclipse.jet.editor_1.1.0.v201002261043.jar
> (The system cannot find the file specified)
> An error occurred copying file
> E:\temp\m2t\plugins\org.eclipse.jet.source_1.1.1.v201101271243.jar.
> E:\temp\m2t\plugins\org.eclipse.jet.source_1.1.1.v201101271243.jar
> (The system cannot find the file specified)
> An error occurred copying file
> E:\temp\m2t\plugins\org.eclipse.jet.ui_1.0.0.v200906120900.jar.
> E:\temp\m2t\plugins\org.eclipse.jet.ui_1.0.0.v200906120900.jar (The
> system cannot find the file specified)
>
> It turns out that all the files are in *.jar.pack.gz format are.
> Googled some. Found this wiki-entry: http://wiki.eclipse.org/Pack200.
> Followed the instructions there. Managed to unpack the real jars.
> Retried installation.
>
> Then I get a checksum error.
>
> Any help is appreciated!
>
> Thanks in advance,
> Kind regards,
> Franck
Re: JET Editor in Kepler [message #1067461 is a reply to message #1067442] Mon, 08 July 2013 19:54 Go to previous messageGo to next message
Paul Elder is currently offline Paul ElderFriend
Messages: 849
Registered: July 2009
Senior Member
Franck:

You can get JET to install into Kepler, but you need to be running a Java 6 JRE during the install. Java 7 has problems with nested JARs (which, unfortunately, JET contains).

So, if possible, find your eclipse.ini, point it to a Java 6 JRE, restart, install JET, shutdown, switch back to the Java 7 JRE, and restart.

Paul
Re: JET Editor in Kepler [message #1067818 is a reply to message #1067461] Wed, 10 July 2013 17:09 Go to previous messageGo to next message
Franck De Bruijn is currently offline Franck De BruijnFriend
Messages: 7
Registered: July 2013
Junior Member
Hi Paul/Ed,

Thanks for your time. Greatly appreciated.

I tried Paul's directive, but had no luck. More or less same error.

I then tried to install the M2T plugins from the original Helios update repository. After hours of download, also no success here.

I googled some further and found a thread on StackOverflow (easiest-way-to-upgrade-eclipse-3-7-to-4-2-juno - I am not allowed to paste links, apparently). Here I got the tip to use the File -> Import -> Installation -> From existing Installation.

I tested this on a fresh install of Kepler and this works like a charm. No special JVM startup configuration (default JRE 7 used).

I heavily rely on JET for our own code generation tool. We have around 100 templates based on JET, so I really try to prevent to rewrite those to another templating engine.

At the time (must be 3/4 years ago) I used Velocity as templating engine. For performance reasons JET engine turned out to be much faster (I think 10-fold or so) which really helps if you generate 1000s of files. What I like about JET engine is that the templates are converted to JAVA-classes and that from the JET-templates you have access to all kinds of JAVA-helper classes. The JET editor does a reasonable job for letting you know if you make compile-time errors.

@Ed: I am curious to know if you know why JET has lost popularity (if it ever gained any, I don't know ...) compared to Xtend and Acceleo?

Thanks for listening,
Kind regards,
Franck
Re: JET Editor in Kepler [message #1067884 is a reply to message #1067818] Thu, 11 July 2013 05:47 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7679
Registered: July 2009
Senior Member
Hi

Modeling people like to use models, e.g. *.ecore (or *.uml) files.
Model-aware tools tend to support more compact, more relevant and more
strongly type checked expressions.

JET has no understanding of models so it is all rather obscure encoded Java.

Acceleo gives you the MOFM2T standard, with OCL expressions, but it is
currently interpreted so you would find the performance disappointing in
comparison to JET.

Xtend incorporating the capabilities of Xpand gives you a
powerful/confusing beyond-Java world. The templates are much more
readable, debuggable and may approach the performance of JET.

Regards

Ed Willink


On 10/07/2013 18:09, Franck De Bruijn wrote:
> Hi Paul/Ed,
>
> Thanks for your time. Greatly appreciated.
>
> I tried Paul's directive, but had no luck. More or less same error.
>
> I then tried to install the M2T plugins from the original Helios
> update repository. After hours of download, also no success here.
>
> I googled some further and found a thread on StackOverflow
> (easiest-way-to-upgrade-eclipse-3-7-to-4-2-juno - I am not allowed to
> paste links, apparently). Here I got the tip to use the File -> Import
> -> Installation -> From existing Installation.
>
> I tested this on a fresh install of Kepler and this works like a
> charm. No special JVM startup configuration (default JRE 7 used).
>
> I heavily rely on JET for our own code generation tool. We have around
> 100 templates based on JET, so I really try to prevent to rewrite
> those to another templating engine.
>
> At the time (must be 3/4 years ago) I used Velocity as templating
> engine. For performance reasons JET engine turned out to be much
> faster (I think 10-fold or so) which really helps if you generate
> 1000s of files. What I like about JET engine is that the templates are
> converted to JAVA-classes and that from the JET-templates you have
> access to all kinds of JAVA-helper classes. The JET editor does a
> reasonable job for letting you know if you make compile-time errors.
>
> @Ed: I am curious to know if you know why JET has lost popularity (if
> it ever gained any, I don't know ...) compared to Xtend and Acceleo?
>
> Thanks for listening,
> Kind regards,
> Franck
Re: JET Editor in Kepler [message #1067970 is a reply to message #1067884] Thu, 11 July 2013 13:37 Go to previous messageGo to next message
Franck De Bruijn is currently offline Franck De BruijnFriend
Messages: 7
Registered: July 2013
Junior Member
Thanks Ed for the reply.

Xtend definitely looks promising. I'll keep it in mind.

Since I have a workable solution at the moment, we will for the moment stick to JET: I will probably not get the internal organisation convinced that we need to rework all our templates (of which a few are really complex).

Kind regards,
Franck
Re: JET Editor in Kepler [message #1069707 is a reply to message #1067970] Tue, 16 July 2013 12:37 Go to previous message
Ralph Gerbig is currently offline Ralph GerbigFriend
Messages: 702
Registered: November 2009
Senior Member
Hi Ed,

it is not so easy to switch to a technology like Acceleo or Xtend in case that the technology you want to extend does not use these. I for example use the template extension capabilities of EMF and will need to stick to Jet until EMF migrates away from that.

Ralph
Previous Topic:Trying to install acceleo Ecore to Python module
Next Topic:use Generated file in memory directly
Goto Forum:
  


Current Time: Fri Nov 08 21:51:52 GMT 2024

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

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

Back to the top