DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
  1. DZone
  2. Coding
  3. Frameworks
  4. How to Run Eclipse 3.3 on Ubuntu 7.10

How to Run Eclipse 3.3 on Ubuntu 7.10

James Sugrue user avatar by
James Sugrue
CORE ·
Apr. 10, 08 · Interview
Like (0)
Save
Tweet
Share
17.89K Views

Join the DZone community and get the full member experience.

Join For Free

Standard Ubuntu Gutsy installation does not support Eclipse 3.3 in its package repository, only 3.2 is available. So, if you're a Ubuntu 7.10 users that would like to have Eclipse 3.3 or later running on your box, this article will help you.

Prerequisites

  • Eclipse 3.3 (Europa) binaries from here. Download the configuration you need.
  • Java 5 (or later) runtimes from Sun to run Eclipse. You can install them using:
$sudo apt-get install sun-java5-jre
  • (optional) JDK for Java/Eclipse development:
$sudo apt-get install sun-java5-jdk

Installation

Unpack Eclipse archive somewhere. I use /usr/local/opt for such things.

$sudo mkdir /usr/local/opt
$sudo mv your.downloaded.eclipse.version.tar.gz /usr/local/opt
$cd /usr/local/opt
$tar -zxf your.downloaded.eclipse.version.tar.gz
$rm your.downloaded.eclipse.version.tar.gz

You can use Midnight Commander for this.

Running

Eclipse should run out-of-the-box, let's check:

$cd eclipse
$./eclipse

If you get errors which look like ' java.lang.ClassNotFoundException: org.eclipse.core.runtime.Plugin' check next chapter.
If menu doesn't work (you select menu item but nothing happens) ... check next chapter.

Troubleshooting

The "java.lang.ClassNotFoundException: org.eclipse.core.runtime.Plugin" problem.

This is because Eclipse needs to start using Java runtimes from Sun, not the GNU ones. Additionally this need to be 1.5 or later binaries. There are few ways to fix the glitch... i present the easiest one, and 100% working.

Setting Ubuntu to use right JRE system-wide

Check which java VM's are available:
$update-java-alternatives -l
you should get output similar to this one:
> java-1.5.0-sun 53 /usr/lib/jvm/java-1.5.0-sun
> java-6-sun 63 /usr/lib/jvm/java-6-sun
> java-6-sun 73 /usr/lib/jvm/java-7-sun

> java-gcj 1042 /usr/lib/jvm/java-gcj

set the right VM:
$sudo update-java-alternatives -s java-1.5.0-sun
Ensure to set right version, that is 1.5.0, 1.5.1 or later (i use java-7 and it works fine)
Finally, update /etc/jvm. Run your favorite text editor as superuser and change the file so it looks similar to this one (1.5.0 is on the top):
# This file defines the default system JVM search order. Each
# JVM should list their JAVA_HOME compatible directory in this file.
# The default system JVM is the first one available from top to
# bottom.

/usr/lib/jvm/ia32-java-1.5.0-sun
/usr/lib/jvm/java-1.5.0-sun
/usr/lib/jvm/java-gcj

Eclipse should run properly from now on.

Originally posted by lukost on his http://lukasz.chrost.com

Eclipse ubuntu

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Getting a Private SSL Certificate Free of Cost
  • Keep Your Application Secrets Secret
  • Simulating and Troubleshooting BLOCKED Threads in Kotlin [Video]
  • Test Execution Tutorial: A Comprehensive Guide With Examples and Best Practices

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: