[ATL]pb with starter guide example - antlr/TokenStream [message #97606] |
Fri, 09 January 2009 20:27  |
Eclipse User |
|
|
|
Originally posted by: xavier.seneque.gmail.com
Hi everyone,
I'm interested in trying out the ATL tools and so I've started with the
Starter Guide!
I have installed Eclipse 3.1 + emf 2.1.0 + ADT 20051102 + antlr-2.7.5 +
mdr-standalone (all binaries) as explained in the Installation Guide.
I have created the km3 files as in the Starter Guide, and when I do the
"Inject KM3 to Ecore metamodel" I get the following error:
antlr/TokenStream
java.lang.NoClassDefFoundError: antlr/TokenStream
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at
org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.d efineClass(DefaultClassLoader.java:370)
at
....
So it look likes it can't find the TokenStream from the antlr package,
but I do have the antlr.jar file in the
plugins\org.atl.eclipse.engine_1.0.7\lib directory, as specified by the
Installation guide.
I tried adding manually all the antlr + mdr jars to the build path
(preferences: Java/BuildPath/UserLibraries in which I have added the
jars) and I get a different error:
An internal error occurred during: "KM3 to Ecore".
java.lang.NoClassDefFoundError: antlr/TokenStream
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
.....
The error name is different, but it seems to come from the same place.
I have seen a thread related to this issue from Vincent Hilaire, but the
problem came from being on a mac. I'm on a PC with Windows XP, and java
1.6.0_07
Any idea why this does not work?
Should I get a more recent bundle? ( are their any incompatibilities
between some adt/emf versions and eclipse versions?)
Thanks in advance!
Xavier Seneque
|
|
|
Re: [ATL]pb with starter guide example - antlr/TokenStream [message #97621 is a reply to message #97606] |
Mon, 12 January 2009 05:28  |
Eclipse User |
|
|
|
Hello,
The 20051102 bundle is out of date, as the Starter's guide. We are going
to update it soon, apologizes for wasting your time...
The main change in which will appear in the future starter's guide is
about KM3: as it is not part of the ATL project, the KM3->ecore actions
are no more available, so you will have to directly define the ecore files.
Here is a link to the download page, which provides the latest ATL version :
http://www.eclipse.org/modeling/m2m/downloads/index.php?proj ect=atl
And here is a page about ATL basic examples:
http://www.eclipse.org/m2m/atl/basicExamples_Patterns/
Best Regards,
William
Xavier Seneque a écrit :
> Hi everyone,
>
> I'm interested in trying out the ATL tools and so I've started with the
> Starter Guide!
>
> I have installed Eclipse 3.1 + emf 2.1.0 + ADT 20051102 + antlr-2.7.5 +
> mdr-standalone (all binaries) as explained in the Installation Guide.
>
> I have created the km3 files as in the Starter Guide, and when I do the
> "Inject KM3 to Ecore metamodel" I get the following error:
> antlr/TokenStream
>
> java.lang.NoClassDefFoundError: antlr/TokenStream
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> at
> org.eclipse.osgi.framework.adaptor.core.DefaultClassLoader.d efineClass(DefaultClassLoader.java:370)
>
> at
> ...
>
> So it look likes it can't find the TokenStream from the antlr package,
> but I do have the antlr.jar file in the
> plugins\org.atl.eclipse.engine_1.0.7\lib directory, as specified by the
> Installation guide.
>
> I tried adding manually all the antlr + mdr jars to the build path
> (preferences: Java/BuildPath/UserLibraries in which I have added the
> jars) and I get a different error:
> An internal error occurred during: "KM3 to Ecore".
>
> java.lang.NoClassDefFoundError: antlr/TokenStream
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> ....
>
> The error name is different, but it seems to come from the same place.
>
> I have seen a thread related to this issue from Vincent Hilaire, but the
> problem came from being on a mac. I'm on a PC with Windows XP, and java
> 1.6.0_07
>
> Any idea why this does not work?
> Should I get a more recent bundle? ( are their any incompatibilities
> between some adt/emf versions and eclipse versions?)
>
> Thanks in advance!
> Xavier Seneque
|
|
|
Powered by
FUDForum. Page generated in 0.04890 seconds