1

I have just started learning java. I downloaded eclipse for linux and had an error for which I then followed scott's advice and typed :

ln -s /usr/lib/jni/libswt-* ~/.swt/lib/linux/x86_64/

Which seemed to help. I want to know that which java should I use?

click on link to see my options

Also, once I have the .class file, how can I run it?

rekire
48.1k34 gold badges184 silver badges279 bronze badges
asked Sep 28, 2012 at 4:17

2 Answers 2

1

It is better to use HotSpot impl for java(It seems you have open-jdk), so install it following to this url: http://ubuntu-for-humans.blogspot.com/2011/04/installing-java-on-ubuntu-server-1010.html. And use jdk, not jre. Once you run eclipse, eclipse does for you everything: compiles, runs, deployes, IDE, ...

answered Sep 28, 2012 at 4:20
Sign up to request clarification or add additional context in comments.

2 Comments

Hi, When I type java -version I get this java version "1.7.0_07" Java(TM) SE Runtime Environment (build 1.7.0_07-b10) Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode) is that what I'm looking for? also, how can I open up .class files?
It seems it is jre, not JDK, jre for running java apps, jdk is for developing them. You need jdk.
0

You can get the java version for the linux here

Setting up of eclipse shouldn't be a problem but make sure that java is installed first.

answered Sep 28, 2012 at 4:21

2 Comments

Yeah, I have java selected. Which once Should I use? OpenJDK? Oracle java?

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.