Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to lunch Eclipse programmatically (from Java app.)
How to lunch Eclipse programmatically (from Java app.) [message #148385] Thu, 23 October 2003 12:55 Go to next message
Eclipse UserFriend
Originally posted by: _mcbear.mail.ru

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 #148399 is a reply to message #148385] Thu, 23 October 2003 13:37 Go to previous messageGo to next message
Darin Wright is currently offline Darin WrightFriend
Messages: 454
Registered: July 2009
Senior Member
You should programmaticlly use a launch configuration to launch Eclipse -
specifically a "runtime workbench" launch configuration. See these articles
for tips on using launch configs programmatically.

http://www.eclipse.org/articles/Article-Java-launch/launchin g-java.html
http://www.eclipse.org/articles/Article-Launch-Framework/lau nch.html

Darin

"mcBear" <_mcbear@mail.ru> wrote in message news:bn8j3v$a73$1@eclipse.org...
> 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 #148645 is a reply to message #148385] Thu, 23 October 2003 17:49 Go to previous messageGo to next message
Eclipse UserFriend
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 messageGo to next message
Eclipse UserFriend
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 messageGo to next message
Eclipse UserFriend
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
Eclipse UserFriend
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
>>>
>>
>
>
Previous Topic:Adding Squiggle lines to text
Next Topic:Question about Feature Updates
Goto Forum:
  


Current Time: Fri Dec 27 01:35:37 GMT 2024

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

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

Back to the top