EclipseIDE

Differences between revisions 14 and 15
Revision 14 as of 2006-02-20 21:53:33
Size: 6518
Editor: e6164
Comment:
Revision 15 as of 2006-03-23 20:17:22
Size: 5919
Editor: 203-206-49-178
Comment: removed from CategoryCleanup, added TOC & listed page on Progamming page
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
||<tablestyle="float:right; font-size: 0.9em; width:40%; background:#F1F1ED; margin: 0 0 1em 1em;" style="padding:0.5em;">'''Contents'''[[BR]][[TableOfContents]]||
Line 4: Line 6:
Eclipse 3.1.1 has been uploaded to Breezy. Finally. You should be able to simply apt-get install it.

Actually these breezy packages should build fine for Hoary too. You can probably just apt-get source them and let it rip.

The Help system has been disabled completely because we don't yet have a free Tomcat. Working on that. Enjoy.
Line 14: Line 11:
Or just get it via Synaptic. The Help system is currently unavailable within Eclipse.
Line 16: Line 13:
If you have problems using the PyDev plugin, try installing Sun JVM (j2re1.5-sun). Edit /etc/eclipse/java_home to include the path /usr/lib/j2re1.5-sun If you have problems using the PyDev plugin, try installing Sun Java (see RestrictedFormats) and editing /etc/eclipse/java_home to include the path /usr/lib/j2re1.5-sun.
Line 20: Line 17:
You can use Java3d with Eclipse on Ubuntu: Java3dUbuntu
Java3d is now supported for use with Eclipse on Ubuntu, see Java3dUbuntu.
Line 25: Line 21:
To install plugins for eclipse in Ubuntu (ie CDT) you need to start eclipse as root and then install them via the Eclipse update manager. To install plugins for eclipse in Ubuntu (ie CDT), start Eclipse as root and install the plugins via the Eclipse update manager.
Line 30: Line 26:

Alternatively, you can create a location to store plugins within your user directory from within Eclipse.
Line 43: Line 37:
Eclipse may operate improperly when using free Java implementations. If you encounter problems with Eclipse after install, you may require Sun's non-free implementation to get Eclipse working properly. See instructions here: ["Java"], but be sure to consider legal issues as well: RestrictedFormats. Eclipse may not be fully operational when used with free Java implementations. If you encounter problems with Eclipse after install, you may require Sun's non-free implementation to get Eclipse working properly. See instructions here: ["Java"], but be sure to consider legal issues as well: RestrictedFormats.
Line 47: Line 41:
Use this method if you want Eclipse available for all users, or if you are the only user of the computer. Use this method if you want Eclipse to be available for all users, or if you are the only user of the computer.
Line 97: Line 91:
Use this method if you want Eclipse available only for yourself, or if you haven't root access to the computer. Use this method if you want Eclipse available only for yourself, or if you haven't got root access to the computer.
Line 101: Line 95:
 * Make a personnal opt folder in your home directory:  * Make an opt folder in your home directory:
Line 188: Line 182:
}}} * this script is from:http://www.karakas-online.de/forum/viewtopic.php?t=2565

From AndrewGoodnough Sun Apr 17 15:08:05 +0100 2005
From: Andrew Goodnough
Date: Sun, 17 Apr 2005 15:08:05 +0100
Subject: Mozilla reference in shell script?
Message-ID: <20050417150805+0100@https://www.ubuntulinux.org>

Why is it necessary to add the variable for ''MOZILLA_FIVE_HOME''? Is this so eclipse can use Firefox as its internal browser?

CategoryDocumentation CategoryCleanup
}}} * Source: http://www.karakas-online.de/forum/viewtopic.php?t=2565
----
CategoryDocumentation

Eclipse in Breezy

Eclipse download & installation

sudo apt-get install eclipse-jdt

The Help system is currently unavailable within Eclipse.

If you have problems using the PyDev plugin, try installing Sun Java (see RestrictedFormats) and editing /etc/eclipse/java_home to include the path /usr/lib/j2re1.5-sun.

Java3d

Java3d is now supported for use with Eclipse on Ubuntu, see Java3dUbuntu.

Troubleshooting

Installating plugins (ie CDT)

To install plugins for eclipse in Ubuntu (ie CDT), start Eclipse as root and install the plugins via the Eclipse update manager.

gksudo eclipse

Eclipse before Breezy

Eclipse download

Go to the [http://www.eclipse.org/downloads/index.php nearest eclipse mirror] and download eclipse-platform-3.0.2-linux-gtk.zip. If you want to code in Java, you can download eclipse-SDK-3.0.2-linux-gtk.zip instead or install it afterwards.

Eclipse installation

Java Implementation

Eclipse may not be fully operational when used with free Java implementations. If you encounter problems with Eclipse after install, you may require Sun's non-free implementation to get Eclipse working properly. See instructions here: ["Java"], but be sure to consider legal issues as well: RestrictedFormats.

Global installation

Use this method if you want Eclipse to be available for all users, or if you are the only user of the computer.

Eclipse
  • Unzip eclipse in /opt:

$ sudo unzip eclipse-SDK-3.0.2-linux-gtk.zip -d /opt
  • Change the owner to root:

$ sudo chown -R root:root /opt/eclipse/
  • Create /usr/bin/eclipse with your favorite text editor (e.g sudo vi /usr/bin/eclipse) and add the following content:

export MOZILLA_FIVE_HOME="/usr/lib/mozilla/"
export ECLIPSE_HOME="/opt/eclipse"

$ECLIPSE_HOME/eclipse $*
  • Finally, allow the script to be executed:

$ sudo chmod +x /usr/bin/eclipse

Gnome icon
  • Create a new launcher on the desktop (right click on the desktop -> Create Launcher) or on a panel (right click on a panel -> Add to Panel -> Custom Application Launcher) and add the following data:

    • Name: Eclipse Platform

    • Command: eclipse

    • Icon: /opt/eclipse/icon.xpm

If you want an icon in the Applications Menu:

  • Create a new launcher called eclipse.desktop in /usr/share/applications with your favorite text editor (e.g sudo vi /usr/share/applications/eclipse.desktop) and add the following content:

[Desktop Entry]
Encoding=UTF-8
Name=Eclipse Platform
Comment=Eclipse IDE
Exec=eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true

User installation

Use this method if you want Eclipse available only for yourself, or if you haven't got root access to the computer.

Eclipse
  • Make an opt folder in your home directory:

$ mkdir ~/opt
  • Unzip eclipse in the opt folder:

$ unzip eclipse-platform-3.0.2-linux-gtk.zip -d ~/opt
  • Make a bin folder in your home directory, this will be used for the startup script:

$ mkdir ~/bin
  • Create ~/bin/eclipse with your favorite text editor (e.g vi ~/bin/eclipse) and add the following content:

export MOZILLA_FIVE_HOME="/usr/lib/mozilla/"
export ECLIPSE_HOME="$HOME/opt/eclipse"

$ECLIPSE_HOME/eclipse $*
  • Finally, allow the script to be executed:

$ chmod +x ~/bin/eclipse

Gnome icon
  • Create a new launcher on the desktop (right click on the desktop -> Create Launcher) or on a panel (right click on a panel -> Add to Panel -> Custom Application Launcher)

    • Name: Eclipse Platform

    • Command: /home/<your username>/bin/eclipse

    • Icon: /home/<your username>/opt/eclipse/icon.xpm

Troubleshooting

If the following error is encountered when running eclipse from the launcher:

The Eclipse executable launcher was unable to locate its companion startup.jar file (in the same directory as the executable)
  • Edit /usr/bin/eclipse with a text editor (e.g sudo gedit /usr/bin/eclipse) and change the content to the following:

# Eclipse startup script
# JPackage Project <http://www.jpackage.org/>
# $Id$

ECLIPSE_OPTS=""
VM_OPTS=""

# Source system prefs
if [ -r /etc/eclipse.conf ] ; then
  . /etc/eclipse.conf
fi

# Source user prefs
if [ -r $HOME/.eclipserc ] ; then
  . $HOME/.eclipserc
fi

# Set data dir if -data wasn't given.
if ! echo $@ | grep '\-data ' >/dev/null 2>&1 && [ -n "$USER_DIR" ]; then
  ECLIPSE_OPTS="$ECLIPSE_OPTS -data $USER_DIR"
fi

# Find our JVM.
# if [ ! -x "$JAVACMD" -a -r /usr/share/java-utils/java-functions ]; then
#   . /usr/share/java-utils/java-functions
#   set_javacmd
# fi

JAVACMD="/usr/lib/j2re1.5-sun/bin/java"

# Set JVM if -vm wasn't given.
if ! echo $@ | grep '\-vm ' >/dev/null 2>&1 && [ -n "$JAVACMD" ]; then
  ECLIPSE_OPTS="$ECLIPSE_OPTS -vm $JAVACMD"
fi

# Set JVM args if -vmargs wasn't given.  This needs to be the last option.
if ! echo $@ | grep '\-vmargs ' >/dev/null 2>&1 && [ -n "$VM_ARGS" ]; then
  VM_OPTS="-vmargs $VM_ARGS"
fi

# if [ -w $USER_DIR/.metadata/.config/platform.cfg ]; then
#   perl -p -i.bak -e 's|^site\.[0-9]*\.list\.[0-9]*=.*\n||g;' $USER_DIR/.metadata/.config/platform.cfg
# fi

/opt/eclipse/eclipse $ECLIPSE_OPTS $@ $VM_OPTS

* Source: http://www.karakas-online.de/forum/viewtopic.php?t=2565


CategoryDocumentation

EclipseIDE (last edited 2008-08-06 16:18:49 by localhost)