How to make a simplified RCP application truly standalone?

This is a complete refactoring of my old question at a new level of knowledge.

Summary of Issues

My eclipse product is not working. Is any additional feature required?

Create a simplified RCP application

enter image description hereenter image description hereenter image description here

At this point, all functions of the wizard are disabled, and I press the button Finish. As a result, Eclipse creates an almost empty project with only files MANIFEST.MFand build.properties.

enter image description here

Now I am creating an application. The application is an extension to the extension point org.eclipse.core.runtime.applications, which is implemented inside the plugin org.eclipse.core.runtime. Therefore, I add this plugin as a dependency:

enter image description here

This creates a new node in Package Explorer, called Plug-in Dependencies:

enter image description here

Now I am adding a new extension to this point in my plugin:

enter image description here

id myappid myproject.Application.

plugin.xml

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
   <extension
         id="myappid"
         point="org.eclipse.core.runtime.applications">
      <application
            cardinality="singleton-global"
            thread="main"
            visible="true">
         <run
               class="myproject.Application">
         </run>
      </application>
   </extension>

</plugin>

. build.properties:

source.. = src/
output.. = bin/
bin.includes = META-INF/,\
               .,\
               plugin.xml

MANIFEST.MF , , , , Overview:

enter image description here

, myappid, . , . myproject.myappid.

Extensions , class :

enter image description here

New Java class , , java :

package myproject;

import org.eclipse.equinox.app.IApplication;
import org.eclipse.equinox.app.IApplicationContext;

public class Application implements IApplication {

    @Override
    public Object start(IApplicationContext context) throws Exception {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public void stop() {
        // TODO Auto-generated method stub

    }

}

, start:

System.out.println("Hello world from myproject");

Overview . , :

,

Eclipse.

, , .

enter image description hereenter image description here

plugin.xml org.eclipse.core.runtime.products.

Overview New, New Product Definition:

<411 >

, , .

plugin.xml lokks :

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
   <extension
         id="myappid"
         point="org.eclipse.core.runtime.applications">
      <application
            cardinality="singleton-global"
            thread="main"
            visible="true">
         <run
               class="myproject.Application">
         </run>
      </application>
   </extension>
   <extension
         id="myproductid"
         point="org.eclipse.core.runtime.products">
      <product
            application="myproject.myappid"
            name="MyProduct">
      </product>
   </extension>

</plugin>

, .

, .

, , . Eclipse.

, Dependencies :

enter image description here

Add Required Plug-ins

enter image description hereenter image description here

Overview , ( ).

enter image description hereenter image description here

D:\myproject . , eclipse.exe

enter image description here

, , .

1) ? eclipse - ? ?

2) ? GUI, , Eclipse? / ?

+4
2

1) , JAVA_OPTS. - ,

2) JDK "java -version". 1.7.0 ( ) eclipse (.. 64- , 64- JDK, 32-, ). , ( PATH/JAVA_HOME ). , Windows JRE , . Java , , . Heck, , : eclipse.ini, JDK, -vmargs:

-vm
C:\path\to\the\proper\jdk\bin\javaw.exe

3) "configuration/.log" (timestamp - UNIX long). , , Eclipse ...

4) "eclipse -consoleLog"

P.S. , , ( 2 )...: -)

0

, , , . eclipse.ini vmargs:

-console

-consoleLog

/ :

, .

0

All Articles