Installing the full complement of Eclipse(Option)

In order to run the full complement of Eclipse (OpenRTM Eclipse tools), the JDK from Sun is required, rather than the Ubuntu standard Open JDK.

Installing sun-java6-jdk

In order to install JDK sun-java6-jdk from Sun, the apt repository must first be added and then the package list must be obtained.

 % sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
 % sudo apt-get update

At this point, he installation of the JDK package is now possible.
 % sudo apt-get install sun-java6-jdk
 Upgrades: 0; new installation: 8, deletions: 0; retentions: 0. 
 An archive of 57.0 MB must be acquired; 168 MB of additional disk space will be used up following this operation. 

The following screen display is shown during the process. Select “OK” and continue.
When the following screen is displayed, select “Yes.”

Once the installation is complete, set java in the default setting to sun-java6.

 % sudo update-alternatives --config java

If the following message appears at this point, then there are no problems.
 There is only one alternative in link group java: /usr/lib/jvm/java-6-sun/jre/bin/java Nothing to configure.

If the message is something like the one shown below, then it will be necessary to manually ensure that it is called Sun Java.
 There are 3 choices for the alternative java (providing /usr/bin/java).
   Selection    Path                Priority   Status 
 --------------------------------------------------------
   ­0 /usr/lib/jvm/java-6-openjdk/jre/bin/java   1061 auto mode
 * 1 /usr/bin/gij-4.4    1044 manual mode 
   2 /usr/lib/jvm/java-6-openjdk/jre/bin/java   1061 manual mode 
   3 /usr/lib/jvm/java-6-sun/jre/bin/java 63 manual mode
 Press enter to keep the current choice[*], or type selection number: 

In this case, look for the one with “/usr/lib/jvm/java-6-sun/jre/bin/java” in the Path column. Since “3” is “Sun Java” here, press “3” then enter, to switch the default java to Sun.

Installing the main body of Eclipse with full complement

Download Full complement package for Linux from OpenRTM Eclipse tools 1.0-RELEASE and implement it under workspace in the home directory (for example).

 % cd workspace
 % wget http://www.openrtm.org/pub/OpenRTM-aist/tools/1.0.0/eclipse342_rtmtools100release_linux_ja.tar.gz
 % tar xzf eclipse342_rtmtools100release_linux_ja.tar.gz
 % cd eclipse

If ./eclipse is booted without any changes the splash screen will be displayed, followed by an empty window, and a normal start up will not occur.
The following command line is therefore used for booting.
 % ./eclipse -clean -vmargs -Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner-1.9.2.13/xulrunner

When this option is used to boot once or several times, it appears that booting can be accomplished with ./eclipse alone. Add a launcher for the custom application in the panel and set the command to /home/(user name )/workspace/eclipse/eclipse to boot Eclipse without using a terminal.