Hi there,

Last night I switched to Ubuntu 10.04 (no, not 10.10, long story). And I wanted to get started programming as soon as possible, so I'm trying to find out how to install Eclipse Helios and the Java JDK 1.6 on my machine?

Please note that my machine is NOT connected to the internet so I can't simply go to the 'software centre'. Instead I went to Eclipse's site and downloaded Helios for Linux 32bit systems. I also went to Oracle and downloaded the Java 1.6 JDK for Linux.

So now I have 2 folders/files:
- java_ee_
- eclipse-java-helios-SR2-linux-gtk.tar

How do I go about now installing this on my system?

Dani AI

Generated

noted the machine was offline and had the Oracle JDK self-extracting installer plus the Eclipse Helios tarball; asked for the steps. The procedure below is a compact, reproducible offline recipe for Ubuntu 10.04 (32-bit). Replace any version-specific names (jdk folder, tarball name) to match the actual files on disk.

Make the JDK installer executable, run it, move the produced JDK folder to /usr/lib/jvm and register the binaries with update-alternatives:

chmod +x sdk-6u2-jdk-linux.sh
sudo ./sdk-6u2-jdk-linux.sh

# move the extracted folder (replace jdk1.6.0_02 with the real name)
sudo mkdir -p /usr/lib/jvm
sudo mv jdk1.6.0_02 /usr/lib/jvm/

# register java and javac so the system uses the Oracle JDK
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_02/bin/java 1
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_02/bin/javac 1
sudo update-alternatives --config java
sudo update-alternatives --config javac

Install Eclipse from the tarball, place it in a standard location and force Eclipse to use the installed JDK by adding a -vm entry in eclipse.ini:

# extract (use -xvzf if the tarball is gzipped)
tar -xvf eclipse-java-helios-SR2-linux-gtk.tar
sudo mv eclipse /opt/eclipse
sudo ln -s /opt/eclipse/eclipse /usr/bin/eclipse
sudo chmod +x /opt/eclipse/eclipse

# in /opt/eclipse/eclipse.ini, add (two lines) before any -vmargs entry:
-vm
/usr/lib/jvm/jdk1.6.0_02/bin/java

Common pitfalls and quick checks: confirm CPU/OS bitness with uname -m — Eclipse and the JDK must match (32-bit vs 64-bit). If Eclipse fails to start, check that the -vm path is correct and placed before -vmargs; try launching /opt/eclipse/eclipse -clean for a fresh workspace init. For system-wide environment, set JAVA_HOME in /etc/environment or the relevant shell profile. Final note: Oracle JDK 6 and Helios are long out of support; keep them limited to legacy development and plan an upgrade for security and compatibility when an internet connection is available.

Nevermind, figured it out...

Well, sharing how you figured out and what you did wouldn't hurt at all... :icon_wink:

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.