|
|
Re: How to lunch Eclipse programmatically (from Java app.) [message #148645 is a reply to message #148385] |
Thu, 23 October 2003 17:49 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: John_Arthorne.oti.com_
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
>
|
|
|
Re: How to lunch Eclipse programmatically (from Java app.) [message #148968 is a reply to message #148645] |
Fri, 24 October 2003 07:36 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: _mcbear.mail.ru
Hi, John
Thanks a lot. It was that I need. After I posted my question I found that
class I should instanciate, but I didn't know in which jar it is placed.
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
> >
|
|
|
Re: How to lunch Eclipse programmatically (from Java app.) [message #148989 is a reply to message #148645] |
Fri, 24 October 2003 09:23 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: _mcbear.mail.ru
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
> >
|
|
|
Re: How to lunch Eclipse programmatically (from Java app.) [message #149148 is a reply to message #148989] |
Fri, 24 October 2003 17:09 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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.04848 seconds