Home » Eclipse Projects » Eclipse Platform » Launching the Eclipse Platform
|
Re: Launching the Eclipse Platform [message #56605 is a reply to message #54722] |
Fri, 30 May 2003 15:39   |
Eclipse User |
|
|
|
Originally posted by: John_Arthorne.oti.com_
Actually, the absolute minimum set is (on any platform):
org.apache.xerces
org.eclipse.core.boot
org.eclipse.core.runtime
You also need startup.jar, which is not a plugin, but is found in the
repository in the org.eclipse.platform project.
Then, simply create a plugin that defines an application (using the
org.eclipse.core.runtime.applications extension point):
<extension
id="yourApplication"
point="org.eclipse.core.runtime.applications">
<application>
<run
class="com.xyz.YourApplicationClass">
</run>
</application>
</extension>
Your application will implement IPlatformRunnable, and its run() method
will be the entry point for your application. Then, launch eclipse and
specify the application to run as follows:
eclipse -application com.xyz.yourplugin.yourApplication
That's it!
--
Rowan Christmas wrote:
> So, this is an extension of the thread: "Eclipse as a project loader"
>
> What I am trying to do is use the core of Eclipse to be the launcher for
> my project. What I cannot figure out is all of the configuration needed
> to launch a project without using the Eclipse UI.
>
> My project is called "Cytoscape", and I have followed as best I can the
> instructions for how to build your own project. The included zip file
> has all of my stuff in it.
>
> In addition I have determined that the absolut minimum set of plugins
> for linux is:
>
> org.apache.xerces_4.0.7/
> org.eclipse.ant.core_2.1.0/
> org.eclipse.core.boot_2.1.0/
> org.eclipse.core.resources_2.1.0/
> org.eclipse.core.resources.linux_2.1.0/
> org.eclipse.core.runtime_2.1.0/
> org.eclipse.platform_2.1.0/
> org.eclipse.platform.linux.gtk_2.1.0/
> org.eclipse.update.core_2.1.0/
> org.eclipse.update.core.linux_2.1.0/
>
>
> So if someone who is knowledgable in making a standalone project would
> please look at my project I would be very happy.
>
> Specifically the following:
>
> cytoscape/eclipse/features/org.cytoscape/feature.xml :
> The "application" tag does not really make sense, the standard one
> is "org.eclipse.ui.workbench", but I am not sure what that references.
>
> cytoscape/eclipse/plugins/org.cytoscape/plugin.xml :
> I am unsure if I MUST use an extension point, and if so which one
> should a stand alone project use, and why.
> What should the format be for this plugin which will be the primary
> plugin.
>
>
> cytoscape/eclipse/intstall.ini & cytoscape/cytoscape
> Am I using the eclipse launcher correctly, and are my projects
> called the right thing.
>
> Thank You,
>
> Rowan Christmas
|
|
|
Re: Launching the Eclipse Platform [message #56955 is a reply to message #56605] |
Fri, 30 May 2003 18:51   |
Eclipse User |
|
|
|
John,
Thanks for your help, but this still is not quite working for me.
I have tried running org.eclipse.ant.core.AntRunner, which supposedly
also implements IPlatformRunnable. Unfortunatly when I do:
../eclipse -application org.eclipse.ant.core.AntRunner
I get:
!SESSION
------------------------------------------------------------ ----------
!ENTRY org.eclipse.core.launcher 4 0 May 30, 2003 15:34:33.795
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
at org.eclipse.core.launcher.Main.run(Main.java:747)
at org.eclipse.core.launcher.Main.main(Main.java:583)
Caused by: java.lang.IllegalArgumentException: Application not found:
org.eclipse.ant.core.AntRunner.
at
org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.java:843)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
... 7 more
------------------------------------------------------------ ---------------
I get the same error when running my sample application.
Any ideas?
--rowan
John Arthorne wrote:
> Actually, the absolute minimum set is (on any platform):
>
> org.apache.xerces
> org.eclipse.core.boot
> org.eclipse.core.runtime
>
> You also need startup.jar, which is not a plugin, but is found in the
> repository in the org.eclipse.platform project.
>
> Then, simply create a plugin that defines an application (using the
> org.eclipse.core.runtime.applications extension point):
>
> <extension
> id="yourApplication"
> point="org.eclipse.core.runtime.applications">
> <application>
> <run
> class="com.xyz.YourApplicationClass">
> </run>
> </application>
> </extension>
>
>
>
> Your application will implement IPlatformRunnable, and its run() method
> will be the entry point for your application. Then, launch eclipse and
> specify the application to run as follows:
>
> eclipse -application com.xyz.yourplugin.yourApplication
>
> That's it!
>
> --
>
>
>
> Rowan Christmas wrote:
>
>> So, this is an extension of the thread: "Eclipse as a project loader"
>>
>> What I am trying to do is use the core of Eclipse to be the launcher
>> for my project. What I cannot figure out is all of the configuration
>> needed to launch a project without using the Eclipse UI.
>>
>> My project is called "Cytoscape", and I have followed as best I can
>> the instructions for how to build your own project. The included zip
>> file has all of my stuff in it.
>>
>> In addition I have determined that the absolut minimum set of plugins
>> for linux is:
>>
>> org.apache.xerces_4.0.7/
>> org.eclipse.ant.core_2.1.0/
>> org.eclipse.core.boot_2.1.0/
>> org.eclipse.core.resources_2.1.0/
>> org.eclipse.core.resources.linux_2.1.0/
>> org.eclipse.core.runtime_2.1.0/
>> org.eclipse.platform_2.1.0/
>> org.eclipse.platform.linux.gtk_2.1.0/
>> org.eclipse.update.core_2.1.0/
>> org.eclipse.update.core.linux_2.1.0/
>>
>>
>> So if someone who is knowledgable in making a standalone project would
>> please look at my project I would be very happy.
>>
>> Specifically the following:
>>
>> cytoscape/eclipse/features/org.cytoscape/feature.xml :
>> The "application" tag does not really make sense, the standard one
>> is "org.eclipse.ui.workbench", but I am not sure what that references.
>>
>> cytoscape/eclipse/plugins/org.cytoscape/plugin.xml :
>> I am unsure if I MUST use an extension point, and if so which one
>> should a stand alone project use, and why.
>> What should the format be for this plugin which will be the
>> primary plugin.
>>
>>
>> cytoscape/eclipse/intstall.ini & cytoscape/cytoscape
>> Am I using the eclipse launcher correctly, and are my projects
>> called the right thing.
>>
>> Thank You,
>>
>> Rowan Christmas
>
>
|
|
|
Re: Launching the Eclipse Platform [message #57555 is a reply to message #56955] |
Sat, 31 May 2003 10:38   |
Eclipse User |
|
|
|
Originally posted by: darin_swanson.oti.com
I don't know about your application entry point but for AntRunner you will
need to use:
../eclipse -application org.eclipse.ant.core.antRunner
The application entry point is the id you supply in the XML extension
definition (fully qualified with the plugin id) NOT the name of the class.
HTH
Darins
"Rowan Christmas" <xmas@systemsbiology.org> wrote in message
news:bb8n9j$jf7$1@rogue.oti.com...
> John,
>
> Thanks for your help, but this still is not quite working for me.
>
> I have tried running org.eclipse.ant.core.AntRunner, which supposedly
> also implements IPlatformRunnable. Unfortunatly when I do:
>
> ./eclipse -application org.eclipse.ant.core.AntRunner
>
> I get:
>
>
> !SESSION
> ------------------------------------------------------------ ----------
> !ENTRY org.eclipse.core.launcher 4 0 May 30, 2003 15:34:33.795
> !MESSAGE Exception launching the Eclipse Platform:
> !STACK
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39
)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl
..java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
> at org.eclipse.core.launcher.Main.run(Main.java:747)
> at org.eclipse.core.launcher.Main.main(Main.java:583)
> Caused by: java.lang.IllegalArgumentException: Application not found:
> org.eclipse.ant.core.AntRunner.
> at
>
org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.jav
a:843)
> at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
> ... 7 more
>
>
> ------------------------------------------------------------ --------------
-
>
> I get the same error when running my sample application.
>
> Any ideas?
>
> --rowan
>
>
>
> John Arthorne wrote:
> > Actually, the absolute minimum set is (on any platform):
> >
> > org.apache.xerces
> > org.eclipse.core.boot
> > org.eclipse.core.runtime
> >
> > You also need startup.jar, which is not a plugin, but is found in the
> > repository in the org.eclipse.platform project.
> >
> > Then, simply create a plugin that defines an application (using the
> > org.eclipse.core.runtime.applications extension point):
> >
> > <extension
> > id="yourApplication"
> > point="org.eclipse.core.runtime.applications">
> > <application>
> > <run
> > class="com.xyz.YourApplicationClass">
> > </run>
> > </application>
> > </extension>
> >
> >
> >
> > Your application will implement IPlatformRunnable, and its run() method
> > will be the entry point for your application. Then, launch eclipse and
> > specify the application to run as follows:
> >
> > eclipse -application com.xyz.yourplugin.yourApplication
> >
> > That's it!
> >
> > --
> >
> >
> >
> > Rowan Christmas wrote:
> >
> >> So, this is an extension of the thread: "Eclipse as a project loader"
> >>
> >> What I am trying to do is use the core of Eclipse to be the launcher
> >> for my project. What I cannot figure out is all of the configuration
> >> needed to launch a project without using the Eclipse UI.
> >>
> >> My project is called "Cytoscape", and I have followed as best I can
> >> the instructions for how to build your own project. The included zip
> >> file has all of my stuff in it.
> >>
> >> In addition I have determined that the absolut minimum set of plugins
> >> for linux is:
> >>
> >> org.apache.xerces_4.0.7/
> >> org.eclipse.ant.core_2.1.0/
> >> org.eclipse.core.boot_2.1.0/
> >> org.eclipse.core.resources_2.1.0/
> >> org.eclipse.core.resources.linux_2.1.0/
> >> org.eclipse.core.runtime_2.1.0/
> >> org.eclipse.platform_2.1.0/
> >> org.eclipse.platform.linux.gtk_2.1.0/
> >> org.eclipse.update.core_2.1.0/
> >> org.eclipse.update.core.linux_2.1.0/
> >>
> >>
> >> So if someone who is knowledgable in making a standalone project would
> >> please look at my project I would be very happy.
> >>
> >> Specifically the following:
> >>
> >> cytoscape/eclipse/features/org.cytoscape/feature.xml :
> >> The "application" tag does not really make sense, the standard one
> >> is "org.eclipse.ui.workbench", but I am not sure what that references.
> >>
> >> cytoscape/eclipse/plugins/org.cytoscape/plugin.xml :
> >> I am unsure if I MUST use an extension point, and if so which one
> >> should a stand alone project use, and why.
> >> What should the format be for this plugin which will be the
> >> primary plugin.
> >>
> >>
> >> cytoscape/eclipse/intstall.ini & cytoscape/cytoscape
> >> Am I using the eclipse launcher correctly, and are my projects
> >> called the right thing.
> >>
> >> Thank You,
> >>
> >> Rowan Christmas
> >
> >
>
|
|
|
Re: Launching the Eclipse Platform [message #59420 is a reply to message #56955] |
Mon, 02 June 2003 12:39  |
Eclipse User |
|
|
|
Originally posted by: John_Arthorne.oti.com_
I guess this was just because you used the incorrect case... should be
"antRunner", instead of "AntRunner".
--
Rowan Christmas wrote:
> John,
>
> Thanks for your help, but this still is not quite working for me.
>
> I have tried running org.eclipse.ant.core.AntRunner, which supposedly
> also implements IPlatformRunnable. Unfortunatly when I do:
>
> ./eclipse -application org.eclipse.ant.core.AntRunner
>
> I get:
>
>
> !SESSION
> ------------------------------------------------------------ ----------
> !ENTRY org.eclipse.core.launcher 4 0 May 30, 2003 15:34:33.795
> !MESSAGE Exception launching the Eclipse Platform:
> !STACK
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:324)
> at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
> at org.eclipse.core.launcher.Main.run(Main.java:747)
> at org.eclipse.core.launcher.Main.main(Main.java:583)
> Caused by: java.lang.IllegalArgumentException: Application not found:
> org.eclipse.ant.core.AntRunner.
> at
> org.eclipse.core.internal.boot.InternalBootLoader.run(Intern alBootLoader.java:843)
>
> at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
> ... 7 more
>
>
> ------------------------------------------------------------ ---------------
>
> I get the same error when running my sample application.
>
> Any ideas?
>
> --rowan
>
>
>
> John Arthorne wrote:
>
>> Actually, the absolute minimum set is (on any platform):
>>
>> org.apache.xerces
>> org.eclipse.core.boot
>> org.eclipse.core.runtime
>>
>> You also need startup.jar, which is not a plugin, but is found in the
>> repository in the org.eclipse.platform project.
>>
>> Then, simply create a plugin that defines an application (using the
>> org.eclipse.core.runtime.applications extension point):
>>
>> <extension
>> id="yourApplication"
>> point="org.eclipse.core.runtime.applications">
>> <application>
>> <run
>> class="com.xyz.YourApplicationClass">
>> </run>
>> </application>
>> </extension>
>>
>>
>>
>> Your application will implement IPlatformRunnable, and its run()
>> method will be the entry point for your application. Then, launch
>> eclipse and specify the application to run as follows:
>>
>> eclipse -application com.xyz.yourplugin.yourApplication
>>
>> That's it!
>>
>> --
>>
>>
>>
>> Rowan Christmas wrote:
>>
>>> So, this is an extension of the thread: "Eclipse as a project loader"
>>>
>>> What I am trying to do is use the core of Eclipse to be the launcher
>>> for my project. What I cannot figure out is all of the configuration
>>> needed to launch a project without using the Eclipse UI.
>>>
>>> My project is called "Cytoscape", and I have followed as best I can
>>> the instructions for how to build your own project. The included zip
>>> file has all of my stuff in it.
>>>
>>> In addition I have determined that the absolut minimum set of plugins
>>> for linux is:
>>>
>>> org.apache.xerces_4.0.7/
>>> org.eclipse.ant.core_2.1.0/
>>> org.eclipse.core.boot_2.1.0/
>>> org.eclipse.core.resources_2.1.0/
>>> org.eclipse.core.resources.linux_2.1.0/
>>> org.eclipse.core.runtime_2.1.0/
>>> org.eclipse.platform_2.1.0/
>>> org.eclipse.platform.linux.gtk_2.1.0/
>>> org.eclipse.update.core_2.1.0/
>>> org.eclipse.update.core.linux_2.1.0/
>>>
>>>
>>> So if someone who is knowledgable in making a standalone project
>>> would please look at my project I would be very happy.
>>>
>>> Specifically the following:
>>>
>>> cytoscape/eclipse/features/org.cytoscape/feature.xml :
>>> The "application" tag does not really make sense, the standard
>>> one is "org.eclipse.ui.workbench", but I am not sure what that
>>> references.
>>>
>>> cytoscape/eclipse/plugins/org.cytoscape/plugin.xml :
>>> I am unsure if I MUST use an extension point, and if so which one
>>> should a stand alone project use, and why.
>>> What should the format be for this plugin which will be the
>>> primary plugin.
>>>
>>>
>>> cytoscape/eclipse/intstall.ini & cytoscape/cytoscape
>>> Am I using the eclipse launcher correctly, and are my projects
>>> called the right thing.
>>>
>>> Thank You,
>>>
>>> Rowan Christmas
>>
>>
>>
>
|
|
|
Goto Forum:
Current Time: Sat May 10 04:21:49 EDT 2025
Powered by FUDForum. Page generated in 0.07707 seconds
|