Skip to main content

Thread: Installing Eclipse/Java on Ubuntu


i have installed eclipse can't run java code. lots of different errors including:

unsupported major.minor version 51.0

or

in ide errors like:

"implicit super constructor object() undefined default constructor. must define explicit constructor."

have eclispe, icedtea java 6 web start (whatever is) , openjdk java 6 runtime installed.

code runs on multiple windows machines correctly.

have tried run code via terminal don't know how edit .bashrc correctly can use javac. don't know path meant set.

i'm not super familiar eclipse -- know weird things, has own compiler, etc.

first, make sure have installed:
code:
sudo apt-get install openjdk-6-jre icedtea6-plugin openjdk-6-jdk
and check it's set correctly:
code:
java -version
code:
javac -version
it should like
code:
java version "1.6.0_23" openjdk runtime environment (icedtea6 1.11pre) (6b23~pre11-0ubuntu1.11.10) openjdk client vm (build 20.0-b11, mixed mode, sharing)
and
code:
javac 1.6.0_23
respectively.

can find official ubuntu java documentation at
https://help.ubuntu.com/community/java


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [ubuntu] Installing Eclipse/Java on Ubuntu


Ubuntu

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account