|
|
|
|
|
Re: How to lunch Eclipse programmatically (from Java app.) [message #149148 is a reply to message #148989] |
Fri, 24 October 2003 13:09  |
Eclipse User |
|
|
|
Originally posted by: John_Arthorne.oti.com_
Try launching from within a debugger to see what's happening. Perhaps
an exception is being thrown.
-
mcBear wrote:
> Hi, John again
>
> I have got a new trouble. I created class:
>
> -- cut --
> import org.eclipse.core.launcher.Main;
>
> class qqq {
>
> public static void main( String[] argv ) {
> Main.main( "-os linux -ws gtk" );
> }
> }
> -- end cut --
>
> after then I compiled it I tried to run it using command:
>
> java -classpath "<eclipse>/org.eclipse.platform/startup.jar:." qqq
>
> I got nothing. Eclipse doesn't start. What am I doing wrong?! Could you
> correct me, please? If you can
>
> Regards
>
> McBear
>
> John Arthorne wrote:
>
>
>>Not sure if you're asking how to programatically launch eclipse from
>>within eclipse, or from a shell script or other application. The entry
>>point is org.eclipse.core.launcher.Main in startup.jar. Use the same
>>parameters that you would pass to the eclipse executable (of course -vm
>>parameter is not needed). If it is the first invocation on a given
>>-data location, it will exit after completing the install and you will
>>have to launch a second time.
>>--
>
>
>>mcBear wrote:
>>
>>>Hi, all
>>>
>>>Dummy question but could you help me please. Which Main class method I
>>>should invoke and with which params?
>>>
>>>Regards
>>>
>>>McBear
>>>
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03606 seconds