Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] run Atl transfomation by program with eclipse 3.3
[ATL] run Atl transfomation by program with eclipse 3.3 [message #45898] Wed, 13 June 2007 05:21 Go to next message
Anne Robert is currently offline Anne Robert
Messages: 14
Registered: July 2009
Junior Member
Hi,

When I run an ATL transformation with a Main program, I have the following
exception:

-
java.lang.RuntimeException: java.lang.NoClassDefFoundError:
org/eclipse/core/runtime/CoreExceptionjava.lang.RuntimeExcep tion:
java.lang.NoClassDefFoundError: org/eclipse/core/runtime/CoreException
at ujf.verimag.bip.transfo.Main.getDefaultHandler(Main.java:76)
at ujf.verimag.bip.transfo.Main.addInputModel(Main.java:201)
at ujf.verimag.bip.transfo.Main.parseArgs(Main.java:157)
at ujf.verimag.bip.transfo.Main.main(Main.java:86)
Caused by: java.lang.NoClassDefFoundError:
org/eclipse/core/runtime/CoreException
at ujf.verimag.bip.transfo.Main.getDefaultHandler(Main.java:70)
... 3 more
Usage: <this program> --trans <transformation url> [--in <id>=<model>
<id>=<metamodel> <MDR|EMF>] [--out <id>=<model> <id>=<metamodel>
<MDR|EMF>] [--lib <id>=<library url>] --next --trans ...

This Main works with Eclipse 3.1, and when I look in the
org.eclipse.core.runtime_3.3.100.v20070319.jar and
org.eclipse.core.runtime.compatibility_3.1.100.v20070319.jar
I dont find the CoreException class.
Do I need to import other library for this class?

Thanks for your help,

Anne.
Re: [ATL] run Atl transfomation by program with eclipse 3.3 [message #45999 is a reply to message #45898] Wed, 13 June 2007 07:40 Go to previous messageGo to next message
Dennis Wagelaar is currently offline Dennis Wagelaar
Messages: 147
Registered: July 2009
Senior Member
Anne Robert schreef:
> Hi,

Hi Anne,

>
> When I run an ATL transformation with a Main program, I have the
> following exception:
>
> -
> java.lang.RuntimeException: java.lang.NoClassDefFoundError:
> org/eclipse/core/runtime/CoreExceptionjava.lang.RuntimeExcep tion:
> java.lang.NoClassDefFoundError: org/eclipse/core/runtime/CoreException
> at ujf.verimag.bip.transfo.Main.getDefaultHandler(Main.java:76)
> at ujf.verimag.bip.transfo.Main.addInputModel(Main.java:201)
> at ujf.verimag.bip.transfo.Main.parseArgs(Main.java:157)
> at ujf.verimag.bip.transfo.Main.main(Main.java:86)
> Caused by: java.lang.NoClassDefFoundError:
> org/eclipse/core/runtime/CoreException
> at ujf.verimag.bip.transfo.Main.getDefaultHandler(Main.java:70)
> ... 3 more
> Usage: <this program> --trans <transformation url> [--in <id>=<model>
> <id>=<metamodel> <MDR|EMF>] [--out <id>=<model> <id>=<metamodel>
> <MDR|EMF>] [--lib <id>=<library url>] --next --trans ...
>
> This Main works with Eclipse 3.1, and when I look in the
> org.eclipse.core.runtime_3.3.100.v20070319.jar and
> org.eclipse.core.runtime.compatibility_3.1.100.v20070319.jar
> I dont find the CoreException class.
> Do I need to import other library for this class?

You guessed it ;-). CoreException has been moved to Equinox Common
(org.eclipse.equinox.common_*.jar) since Eclipse 3.2. Check out the
following Ant script that attempts to gather all jar dependencies:

http://ssel.vub.ac.be/viewcvs/viewcvs.py/UML1CaseStudies/uml 1cs-atlcommandline/lib/copydep.build.xml?view=markup

>
> Thanks for your help,
>
> Anne.
>

You're welcome ;-)
Dennis
Re: [ATL] run Atl transfomation by program with eclipse 3.3 [message #46028 is a reply to message #45898] Wed, 13 June 2007 09:18 Go to previous message
Anne Robert is currently offline Anne Robert
Messages: 14
Registered: July 2009
Junior Member
Thank you, it works fine now.
Regards,
Anne.
Previous Topic:[ATL] One more problem in running Main.java written by Dennis
Next Topic:[ATL] execution different between "plugin" and standalone
Goto Forum:
  


Current Time: Fri Aug 01 22:38:59 EDT 2014

Powered by FUDForum. Page generated in 0.04495 seconds