Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » How to start Equinox standalone framework with command prompt console(JDT)
How to start Equinox standalone framework with command prompt console [message #544034] Thu, 01 July 2010 12:26 Go to next message
Rustam  is currently offline Rustam Friend
Messages: 20
Registered: January 2010
Junior Member
Hi,

Could you please give a hint me. I'm starting Equinox framework programmability but command console is not appear...
I use code like that:

            IVMInstall vmInstall = JavaRuntime.getDefaultVMInstall();
            IVMRunner vmRunner = vmInstall.getVMRunner(ILaunchManager.RUN_MODE);
            if (vmRunner != null) {
                  String[] classPath = {
                              "C:/Eclipse/3.5/plugins/org.eclipse.osgi_3.5.1.R35x_v20090827.jar",
                  };

                        VMRunnerConfiguration vmConfig = new VMRunnerConfiguration(
                                 "org.eclipse.core.runtime.adaptor.EclipseStarter", classPath);
//                                  "org.eclipse.equinox.launcher.Main", classPath);
                        String[] args = {
                              "-jar",
                              "C:/Eclipse/3.5/plugins/org.eclipse.osgi_3.5.1.R35x_v20090827.jar",
                              "-console",
                              "10233",
                              "-consoleLog",
                              "-Declipse.ignoreApp=true",
                              "-Dosgi.noShutdown=true"
                        };

                        vmConfig.setProgramArguments(args);

//                      Hashtable<String, String> m1 = new Hashtable<String, String>();

//                      m1.put( IJavaLaunchConfigurationConstants.ATTR_JAVA_COMMAND, "java.exe");

//                      vmConfig.setVMSpecificAttributesMap((Map<String, String>) m1);
                    

                        ILaunch launch = new Launch(null, ILaunchManager.RUN_MODE, null);
//                      org.eclipse.debug.core.DebugPlugin.newProcess(launch, null, "My");
                        vmRunner.run(vmConfig, launch, null);
            }


JavaVM is started but without command prompt window...

Thanks for any answers.

[Updated on: Thu, 01 July 2010 12:28]

Report message to a moderator

Re: How to start Equinox standalone framework with command prompt console [message #544303 is a reply to message #544034] Fri, 02 July 2010 09:40 Go to previous message
Rustam  is currently offline Rustam Friend
Messages: 20
Registered: January 2010
Junior Member
all clear Smile

Need to do like that:
IStreamProxy sp = launch.getProcess()[0].getStreamProxy();
IStreamMonitor sm = sp.getOutputStreamMonitor();
sm.addListener( new StreamListener );


Previous Topic:Classloader issues - not visible from class loader
Next Topic:Issue with loading of org.eclipse.ant.optional.junit fragment
Goto Forum:
  


Current Time: Thu Apr 18 20:58:19 GMT 2024

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

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

Back to the top