geekme 0 Junior Poster in Training

I work on ubutnu 10.10 and have java installed on my machine ( jdk 1.6.0) cause when I type java -version on terminal ,it gives me the details.But when i try to open eclipse , it says no jre or jdk found etc, .Please help.

Dani AI

Generated

For : when Eclipse reports "no JRE/JDK found" even though a JVM is present on the system, the problem is usually configuration rather than a missing Java install. Common, reliable fixes are shown below.

Run Eclipse from a terminal to capture its startup output and errors. Verify which java binary the system actually points to and inspect binaries for architecture mismatch (32 vs 64 bit):

which java
readlink -f $(which java)
file /path/to/eclipse/eclipse
file $(readlink -f $(which java))

If the JVM and Eclipse are different architectures (one 32-bit, the other 64-bit) install the matching Java build or use a matching Eclipse package.

Force Eclipse to use a specific JVM by editing eclipse.ini. Add a -vm entry (absolute path) on two lines before -vmargs, for example:

-vm
/usr/lib/jvm/java-6-openjdk/jre/bin/java

Environment variables like JAVA_HOME do not override a hard-coded -vm entry; placing the -vm setting in eclipse.ini is the most reliable method.

If a JVM package is actually missing or broken on Ubuntu, install one from the repos (OpenJDK or Oracle packages) and update alternatives. Official guidance on eclipse.ini formatting and JVM selection is on the Eclipse wiki, and Ubuntu's Java community page covers package installation and alternatives:

Eclipse.ini wiki
Ubuntu Java help

Notes: always use absolute paths in eclipse.ini, place -vm before -vmargs, and restart Eclipse after changes.

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.