Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » XText: cant find main class org.eclipse.emf.mwe.core.WorkflowRunner
XText: cant find main class org.eclipse.emf.mwe.core.WorkflowRunner [message #622273] Fri, 05 March 2010 10:41 Go to next message
HansBj is currently offline HansBjFriend
Messages: 18
Registered: March 2010
Junior Member
Hi,
I'm trying to get the example of the XText "tutorial" (getting started) running, but there seem to be problems with the referenced libraries (why arent they included by the wizard??):
When I start the mwe file by "Run as MWE Workflow" I get the above error:
"cant find main class org.eclipse.emf.mwe.core.WorkflowRunner"

I already reference library
org.eclipse.emf.mwe.core_0.7.2.v200908120417.jar
which includes the WorkflowRunner.
So why is it not found?

Can anybody give me a hint?

Thanks,
HansBjörn.
Re: XText: cant find main class org.eclipse.emf.mwe.core.WorkflowRunner [message #622274 is a reply to message #622273] Fri, 05 March 2010 13:20 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Hans Björn,

as far as I know, the projects that are created by the wizard include
all necessary dependencies to compile the initially created sample grammar.
How did you install Xtext? Are there any messages in the error log or
logged to the console when you try to invoke the workflow runner?

The simplest way to get a working distro is to download it from
http://xtext.itemis.com . If you are a windows user, please be careful
to not extract the zip in a deep path because the os limits the path
lenghts silently to 255 chars and the eclipse zip contains files and
dirs with long names. This may cause very strange errors.

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 05.03.10 11:41, schrieb HansBj:
> Hi,
> I'm trying to get the example of the XText "tutorial" (getting started)
> running, but there seem to be problems with the referenced libraries
> (why arent they included by the wizard??):
> When I start the mwe file by "Run as MWE Workflow" I get the above
> error: "cant find main class org.eclipse.emf.mwe.core.WorkflowRunner"
>
> I already reference library
> org.eclipse.emf.mwe.core_0.7.2.v200908120417.jar
> which includes the WorkflowRunner.
> So why is it not found?
>
> Can anybody give me a hint?
>
> Thanks,
> HansBjörn.
Re: XText: cant find main class org.eclipse.emf.mwe.core.WorkflowRunner [message #622281 is a reply to message #622273] Mon, 08 March 2010 09:28 Go to previous messageGo to next message
HansBj is currently offline HansBjFriend
Messages: 18
Registered: March 2010
Junior Member
Hello Sebastian,

the problem has solved itself. Somehow.

I unpacked the whole SDK zip again to another place and created the XText example and now it works fine.
Not the slightest idea why it didnt work the first time.

Thanks for your help, HB.
Re: XText: cant find main class org.eclipse.emf.mwe.core.WorkflowRunner [message #622282 is a reply to message #622281] Mon, 08 March 2010 10:07 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Hi Hans Björn,

I'ld guess it has something to do with path lenghts. Furthermore, I
experienced some zip file to be wrongly extracted in a virtual machine
using the build in zip tool of windows xp.

Regards,
Sebastian
--
Need professional support for Eclipse Modeling?
Go visit: http://xtext.itemis.com

Am 08.03.10 10:28, schrieb HansBj:
> Hello Sebastian,
>
> the problem has solved itself. Somehow.
>
> I unpacked the whole SDK zip again to another place and created the
> XText example and now it works fine.
> Not the slightest idea why it didnt work the first time.
>
> Thanks for your help, HB.
Re: XText: cant find main class org.eclipse.emf.mwe.core.WorkflowRunner [message #622285 is a reply to message #622273] Mon, 08 March 2010 11:30 Go to previous messageGo to next message
HansBj is currently offline HansBjFriend
Messages: 18
Registered: March 2010
Junior Member
Hi,

this really becomes very nasty.
First thing, the example in the documentation seems to be wrong.
I try to run the generator.
In the text it says, Main.xpt should include the following line:

«EXPAND DAO::dao FOREACH this.types.typeSelect(Entity)»

But "this" does not have a method named "types"!

I presume it mus be

«EXPAND DAO::dao FOREACH
this.elements.typeSelect(Entity)»

Then the Hibernate part is missing and must be downloaded manually. Ok. But which part of hibernate?
There are lots of packages like "core", "annotation", "tools" aso.
I tried some of them (actually "HibernateDaoSupport" is needed, but in which package is it??) without success.

This is a really nasty "getting started" document!

Regards, HB.
Re: XText: cant find main class org.eclipse.emf.mwe.core.WorkflowRunner [message #622291 is a reply to message #622285] Tue, 09 March 2010 14:24 Go to previous message
HansBj is currently offline HansBjFriend
Messages: 18
Registered: March 2010
Junior Member
Hi,

I would like to apologize for my last comments on the document.
I had some hard time to get the first few steps running (see above).
But the document contains much more than the first two chapters (getting started) and explains a lot of things about XText.
Maybe not on a level a newbie like me can understand, but thats not a fault of the document. I'm looking for some more (higher level) information about EMF and will come back afterwards to this one.
regards, HB.
Previous Topic:Which elements are classified as "unmatched"
Next Topic:Which elements are classified as "unmatched"
Goto Forum:
  


Current Time: Thu Apr 25 23:34:14 GMT 2024

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

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

Back to the top