Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Integrating jar into RunAs Eclipse Application
Integrating jar into RunAs Eclipse Application [message #894066] Fri, 06 July 2012 14:22 Go to next message
Jens-Uwe Moeller is currently offline Jens-Uwe MoellerFriend
Messages: 12
Registered: March 2012
Location: Hamburg
Junior Member
Hi,

I wrote a grammer and use the JvmDomainModelInferrer. Within this xtend-Code I need to use java-classes a) from different projects in my eclipse and b) from jars, that I integrated into the - lets say domainmodel-project in an own lib directory. In the development-Eclipse I added these jars to the build path. This works fine for the development phase. But when I call RunAs -> Eclipse Application on my domainmodel-project, I get an Eclipse-Instance that does not know about the jars or projects.
The model-generator complains "XText Validation and XText Reconciler Job":

!ENTRY org.eclipse.e4.ui.workbench 4 0 2012-07-06 16:09:15.312
!MESSAGE Unable to create class 'org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor' from bundle '252'
!STACK 0
org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError


My question: What are all the places, where I have to integrate classes, projects, jars, so that they are itegrated into the RunAs -> Eclipse Application?
I tried different solutions, but did not get it to work.

Thanks in advance, Jens
Re: Integrating jar into RunAs Eclipse Application [message #894096 is a reply to message #894066] Fri, 06 July 2012 15:43 Go to previous messageGo to next message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
Looks like you need to learn about Eclipse Plug-in development in
general. Here are some hints, but I guess you will have to look for
other resources on that very wide topic.

- Eclipse plug-ins are developed as Eclipse Java projects with the
plug-in nature. You can convert an existing Java project to a Plug-in
project by using a context menu action on the project.
- Plug-ins define their dependencies to other plug-ins in the MANIFEST.MF
- If you have common jars, it is likely a plug-in version exists at
Eclipse Orbit

So in short:
- convert all your helper Eclipse projects to plug-in projects
- replace dependency declaration using the project's classpath with
plug-in dependencies
- if they exist, use the plug-in wrappers for your libs from orbit



Am 06.07.12 16:22, schrieb Jens-Uwe Moeller:
> Hi,
> I wrote a grammer and use the JvmDomainModelInferrer. Within this
> xtend-Code I need to use java-classes a) from different projects in my
> eclipse and b) from jars, that I integrated into the - lets say
> domainmodel-project in an own lib directory. In the development-Eclipse
> I added these jars to the build path. This works fine for the
> development phase. But when I call RunAs -> Eclipse Application on my
> domainmodel-project, I get an Eclipse-Instance that does not know about
> the jars or projects.
> The model-generator complains "XText Validation and XText Reconciler Job":
>
>
> !ENTRY org.eclipse.e4.ui.workbench 4 0 2012-07-06 16:09:15.312
> !MESSAGE Unable to create class
> 'org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor' from
> bundle '252'
> !STACK 0
> org.eclipse.e4.core.di.InjectionException: java.lang.NoClassDefFoundError
>
>
> My question: What are all the places, where I have to integrate classes,
> projects, jars, so that they are itegrated into the RunAs -> Eclipse
> Application?
> I tried different solutions, but did not get it to work.
>
> Thanks in advance, Jens


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


---
Get professional support from the Xtext committers at www.typefox.io
Re: Integrating jar into RunAs Eclipse Application [message #894139 is a reply to message #894096] Fri, 06 July 2012 21:47 Go to previous message
Jens-Uwe Moeller is currently offline Jens-Uwe MoellerFriend
Messages: 12
Registered: March 2012
Location: Hamburg
Junior Member
Jan, thank you for the hints. I will find it out now. Jens
Previous Topic:Why terminal do not generate content assist ?
Next Topic:JDTAwareEclipseResourceFileSystemAccess2
Goto Forum:
  


Current Time: Sun Feb 23 08:39:38 GMT 2020

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

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

Back to the top