Home » Modeling » EMF » EMF Standalone Main Application
| EMF Standalone Main Application [message #423907] |
Thu, 09 October 2008 10:05  |
Eclipse User |
|
|
|
Hi
I use my EMF Model which based on a XML-Schemata in a RCP and in a
Plug-in which can be run in command line as stand-alone application.
The Plug-in xyz.jar starts fine. But if i try to load my XML-File
i get a excption that the class
org/eclipse/emf/ecore/resource/resourceSet was not found.
Do i have to set a classpath ?
Here my manifest file:
Manifest-Version: 1.0
Main-Class: build.main.BuildMain
Bundle-ManifestVersion: 2
Bundle-Name: Build Plug-in
Bundle-SymbolicName: build
Bundle-Version: 2.1.8
Bundle-Activator: build.BuildPlugin
Bundle-Vendor: Manager
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
build.plugin.monitor,
plugin.model,
org.eclipse.emf.common,
org.eclipse.emf.ecore.xmi
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Bundle-ActivationPolicy: lazy
Export-Package: build.main
Bundle-ClassPath: src/libs/javaAPI.jar,
src/libs/jdom.jar,
src/libs/xerces.jar,
.
|
|
|
| Re: EMF Standalone Main Application [message #423912 is a reply to message #423907] |
Thu, 09 October 2008 11:02   |
Eclipse User |
|
|
|
An RCP application normally should be started as a proper Eclipse
application, not just by setting up the classpath. Maybe you need
org.eclipse.emf.ecore in the list below?
exquisitus wrote:
> Hi
>
> I use my EMF Model which based on a XML-Schemata in a RCP and in a
> Plug-in which can be run in command line as stand-alone application.
>
> The Plug-in xyz.jar starts fine. But if i try to load my XML-File
> i get a excption that the class
> org/eclipse/emf/ecore/resource/resourceSet was not found.
> Do i have to set a classpath ?
>
> Here my manifest file:
> Manifest-Version: 1.0
> Main-Class: build.main.BuildMain
> Bundle-ManifestVersion: 2
> Bundle-Name: Build Plug-in
> Bundle-SymbolicName: build
> Bundle-Version: 2.1.8
> Bundle-Activator: build.BuildPlugin
> Bundle-Vendor: Manager
> Require-Bundle: org.eclipse.ui,
> org.eclipse.core.runtime,
> build.plugin.monitor,
> plugin.model,
> org.eclipse.emf.common,
> org.eclipse.emf.ecore.xmi
> Bundle-RequiredExecutionEnvironment: J2SE-1.5
> Bundle-ActivationPolicy: lazy
> Export-Package: build.main
> Bundle-ClassPath: src/libs/javaAPI.jar,
> src/libs/jdom.jar,
> src/libs/xerces.jar,
> .
>
|
|
|
| Re: EMF Standalone Main Application [message #423983 is a reply to message #423912] |
Mon, 13 October 2008 09:18   |
Eclipse User |
|
|
|
sorry didnt explain it correct i got three Plug-in
1. plugin.rcp
2. plugin.model
3. plugin.commandline
In my RCP plugin all works fine i can load, edit the Model. My
commandline plugin has a classic Java Main Application.
I want to load in the commandline plugin a XML-File and use therefor
i use my generated EMf model plugin.
So what do i have to enter in the MANIFEST.MF to run this?
Thanks
Ed Merks schrieb:
> An RCP application normally should be started as a proper Eclipse
> application, not just by setting up the classpath. Maybe you need
> org.eclipse.emf.ecore in the list below?
>
>
> exquisitus wrote:
>> Hi
>>
>> I use my EMF Model which based on a XML-Schemata in a RCP and in a
>> Plug-in which can be run in command line as stand-alone application.
>>
>> The Plug-in xyz.jar starts fine. But if i try to load my XML-File
>> i get a excption that the class
>> org/eclipse/emf/ecore/resource/resourceSet was not found.
>> Do i have to set a classpath ?
>>
>> Here my manifest file:
>> Manifest-Version: 1.0
>> Main-Class: build.main.BuildMain
>> Bundle-ManifestVersion: 2
>> Bundle-Name: Build Plug-in
>> Bundle-SymbolicName: build
>> Bundle-Version: 2.1.8
>> Bundle-Activator: build.BuildPlugin
>> Bundle-Vendor: Manager
>> Require-Bundle: org.eclipse.ui,
>> org.eclipse.core.runtime,
>> build.plugin.monitor,
>> plugin.model,
>> org.eclipse.emf.common,
>> org.eclipse.emf.ecore.xmi
>> Bundle-RequiredExecutionEnvironment: J2SE-1.5
>> Bundle-ActivationPolicy: lazy
>> Export-Package: build.main
>> Bundle-ClassPath: src/libs/javaAPI.jar,
>> src/libs/jdom.jar,
>> src/libs/xerces.jar,
>> .
>>
|
|
|
| Re: EMF Standalone Main Application [message #423985 is a reply to message #423983] |
Mon, 13 October 2008 11:11   |
Eclipse User |
|
|
|
You can look at the dependencies listed within each plugin when viewed
in the package explorer. You'll need those. You might also need
registrations that others happen because of plugin.xml processing.
exquisitus wrote:
> sorry didnt explain it correct i got three Plug-in
>
> 1. plugin.rcp
> 2. plugin.model
> 3. plugin.commandline
>
> In my RCP plugin all works fine i can load, edit the Model. My
> commandline plugin has a classic Java Main Application.
> I want to load in the commandline plugin a XML-File and use therefor
> i use my generated EMf model plugin.
>
> So what do i have to enter in the MANIFEST.MF to run this?
>
> Thanks
>
> Ed Merks schrieb:
>> An RCP application normally should be started as a proper Eclipse
>> application, not just by setting up the classpath. Maybe you need
>> org.eclipse.emf.ecore in the list below?
>>
>>
>> exquisitus wrote:
>>> Hi
>>>
>>> I use my EMF Model which based on a XML-Schemata in a RCP and in a
>>> Plug-in which can be run in command line as stand-alone application.
>>>
>>> The Plug-in xyz.jar starts fine. But if i try to load my XML-File
>>> i get a excption that the class
>>> org/eclipse/emf/ecore/resource/resourceSet was not found.
>>> Do i have to set a classpath ?
>>>
>>> Here my manifest file:
>>> Manifest-Version: 1.0
>>> Main-Class: build.main.BuildMain
>>> Bundle-ManifestVersion: 2
>>> Bundle-Name: Build Plug-in
>>> Bundle-SymbolicName: build
>>> Bundle-Version: 2.1.8
>>> Bundle-Activator: build.BuildPlugin
>>> Bundle-Vendor: Manager
>>> Require-Bundle: org.eclipse.ui,
>>> org.eclipse.core.runtime,
>>> build.plugin.monitor,
>>> plugin.model,
>>> org.eclipse.emf.common,
>>> org.eclipse.emf.ecore.xmi
>>> Bundle-RequiredExecutionEnvironment: J2SE-1.5
>>> Bundle-ActivationPolicy: lazy
>>> Export-Package: build.main
>>> Bundle-ClassPath: src/libs/javaAPI.jar,
>>> src/libs/jdom.jar,
>>> src/libs/xerces.jar,
>>> .
>>>
|
|
|
| Re: EMF Standalone Main Application [message #424049 is a reply to message #423985] |
Wed, 15 October 2008 05:35   |
Eclipse User |
|
|
|
I do not realy knwo what you mean with
you might also need registrations that others happen because of
plugin.xml processing.
To start my command line i put the following jar in a dirctory
org.eclipse.core.runtime,
build.plugin.monitor,
plugin.model,
org.eclipse.emf.common,
org.eclipse.emf.ecore.xmi
then i start the commandline plugin like this
java -jar plugin.model-jar load C:/testfile.xml
then i become the exception
Ed Merks schrieb:
> You can look at the dependencies listed within each plugin when viewed
> in the package explorer. You'll need those. You might also need
> registrations that others happen because of plugin.xml processing.
>
>
> exquisitus wrote:
>> sorry didnt explain it correct i got three Plug-in
>>
>> 1. plugin.rcp
>> 2. plugin.model
>> 3. plugin.commandline
>>
>> In my RCP plugin all works fine i can load, edit the Model. My
>> commandline plugin has a classic Java Main Application.
>> I want to load in the commandline plugin a XML-File and use therefor
>> i use my generated EMf model plugin.
>>
>> So what do i have to enter in the MANIFEST.MF to run this?
>>
>> Thanks
>>
>> Ed Merks schrieb:
>>> An RCP application normally should be started as a proper Eclipse
>>> application, not just by setting up the classpath. Maybe you need
>>> org.eclipse.emf.ecore in the list below?
>>>
>>>
>>> exquisitus wrote:
>>>> Hi
>>>>
>>>> I use my EMF Model which based on a XML-Schemata in a RCP and in a
>>>> Plug-in which can be run in command line as stand-alone application.
>>>>
>>>> The Plug-in xyz.jar starts fine. But if i try to load my XML-File
>>>> i get a excption that the class
>>>> org/eclipse/emf/ecore/resource/resourceSet was not found.
>>>> Do i have to set a classpath ?
>>>>
>>>> Here my manifest file:
>>>> Manifest-Version: 1.0
>>>> Main-Class: build.main.BuildMain
>>>> Bundle-ManifestVersion: 2
>>>> Bundle-Name: Build Plug-in
>>>> Bundle-SymbolicName: build
>>>> Bundle-Version: 2.1.8
>>>> Bundle-Activator: build.BuildPlugin
>>>> Bundle-Vendor: Manager
>>>> Require-Bundle: org.eclipse.ui,
>>>> org.eclipse.core.runtime,
>>>> build.plugin.monitor,
>>>> plugin.model,
>>>> org.eclipse.emf.common,
>>>> org.eclipse.emf.ecore.xmi
>>>> Bundle-RequiredExecutionEnvironment: J2SE-1.5
>>>> Bundle-ActivationPolicy: lazy
>>>> Export-Package: build.main
>>>> Bundle-ClassPath: src/libs/javaAPI.jar,
>>>> src/libs/jdom.jar,
>>>> src/libs/xerces.jar,
>>>> .
>>>>
|
|
|
| Re: EMF Standalone Main Application [message #424086 is a reply to message #424049] |
Wed, 15 October 2008 20:14  |
Eclipse User |
|
|
|
Comments below.
exquisitus wrote:
> I do not realy knwo what you mean with
>
> you might also need registrations that others happen because of
> plugin.xml processing.
You really need to read about Eclipse extension points...
>
> To start my command line i put the following jar in a dirctory
>
> org.eclipse.core.runtime,
> build.plugin.monitor,
> plugin.model,
> org.eclipse.emf.common,
> org.eclipse.emf.ecore.xmi
Where is org.eclipse.emf.ecore?
>
> then i start the commandline plugin like this
>
> java -jar plugin.model-jar load C:/testfile.xml
>
> then i become the exception
I should guess the exception?
If you invoke "Generate Test Code" and run the generated XyzExample.java
in the *.tests project as a standalone Java application, that should run
properly. Maybe that will be a good starting point...
>
>
> Ed Merks schrieb:
>> You can look at the dependencies listed within each plugin when
>> viewed in the package explorer. You'll need those. You might also
>> need registrations that others happen because of plugin.xml processing.
>>
>>
>> exquisitus wrote:
>>> sorry didnt explain it correct i got three Plug-in
>>>
>>> 1. plugin.rcp
>>> 2. plugin.model
>>> 3. plugin.commandline
>>>
>>> In my RCP plugin all works fine i can load, edit the Model. My
>>> commandline plugin has a classic Java Main Application.
>>> I want to load in the commandline plugin a XML-File and use therefor
>>> i use my generated EMf model plugin.
>>>
>>> So what do i have to enter in the MANIFEST.MF to run this?
>>>
>>> Thanks
>>>
>>> Ed Merks schrieb:
>>>> An RCP application normally should be started as a proper Eclipse
>>>> application, not just by setting up the classpath. Maybe you need
>>>> org.eclipse.emf.ecore in the list below?
>>>>
>>>>
>>>> exquisitus wrote:
>>>>> Hi
>>>>>
>>>>> I use my EMF Model which based on a XML-Schemata in a RCP and in a
>>>>> Plug-in which can be run in command line as stand-alone application.
>>>>>
>>>>> The Plug-in xyz.jar starts fine. But if i try to load my XML-File
>>>>> i get a excption that the class
>>>>> org/eclipse/emf/ecore/resource/resourceSet was not found.
>>>>> Do i have to set a classpath ?
>>>>>
>>>>> Here my manifest file:
>>>>> Manifest-Version: 1.0
>>>>> Main-Class: build.main.BuildMain
>>>>> Bundle-ManifestVersion: 2
>>>>> Bundle-Name: Build Plug-in
>>>>> Bundle-SymbolicName: build
>>>>> Bundle-Version: 2.1.8
>>>>> Bundle-Activator: build.BuildPlugin
>>>>> Bundle-Vendor: Manager
>>>>> Require-Bundle: org.eclipse.ui,
>>>>> org.eclipse.core.runtime,
>>>>> build.plugin.monitor,
>>>>> plugin.model,
>>>>> org.eclipse.emf.common,
>>>>> org.eclipse.emf.ecore.xmi
>>>>> Bundle-RequiredExecutionEnvironment: J2SE-1.5
>>>>> Bundle-ActivationPolicy: lazy
>>>>> Export-Package: build.main
>>>>> Bundle-ClassPath: src/libs/javaAPI.jar,
>>>>> src/libs/jdom.jar,
>>>>> src/libs/xerces.jar,
>>>>> .
>>>>>
|
|
|
Goto Forum:
Current Time: Wed Nov 05 06:31:37 EST 2025
Powered by FUDForum. Page generated in 0.05059 seconds
|