AttilaB
asked on
Unable to run Eclipse with Ubuntu 12.04 LTS
Hi,
I installed Oracle Java JDK 7 succesfully from the Terminal:
sudo add-apt-repository ppa:webupd8team/java -y
sudo apt-get update
sudo apt-get install oracle-java7-installer
Then I used Ubuntu Software Center to install Eclipse IDE. When I double-click on Eclipse I get dependency errors.
I would like to compile and run Java programs.
See attached error message and the associated log file.
What do I need to do?
Thank you for your help.
Attila
1396323039323.log
EclipseError.png
I installed Oracle Java JDK 7 succesfully from the Terminal:
sudo add-apt-repository ppa:webupd8team/java -y
sudo apt-get update
sudo apt-get install oracle-java7-installer
Then I used Ubuntu Software Center to install Eclipse IDE. When I double-click on Eclipse I get dependency errors.
I would like to compile and run Java programs.
See attached error message and the associated log file.
What do I need to do?
Thank you for your help.
Attila
1396323039323.log
EclipseError.png
Post the error please
You need to install libswt-gtk of some kind. Possibly libswt-gtk-3-java
ASKER
The error is posted in the file: 1396323039323.log
See original posting on top of this page.
But, just to make it easier, I paste it here:
eclipse.buildId=I20110613- 1736
java.version=1.7.0_51
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86_64
!ENTRY org.eclipse.osgi 4 0 2014-03-31 20:30:41.233
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkE rror: Could not load SWT library. Reasons:
no swt-gtk-3740 in java.library.path
no swt-gtk in java.library.path
Can't load library: /home/attila/.swt/lib/linu x/x86_64/l ibswt-gtk- 3740.so
Can't load library: /home/attila/.swt/lib/linu x/x86_64/l ibswt-gtk. so
I already have libswt-gtk-3-jni_3.7.2-2_i 386.deb installed.
This is a 64-bit AMD laptop. Is this the right package for a 64-bit laptop?
Standard widget toolkit (is installed, see screenshot.
See original posting on top of this page.
But, just to make it easier, I paste it here:
eclipse.buildId=I20110613-
java.version=1.7.0_51
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86_64
!ENTRY org.eclipse.osgi 4 0 2014-03-31 20:30:41.233
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkE
no swt-gtk-3740 in java.library.path
no swt-gtk in java.library.path
Can't load library: /home/attila/.swt/lib/linu
Can't load library: /home/attila/.swt/lib/linu
I already have libswt-gtk-3-jni_3.7.2-2_i
This is a 64-bit AMD laptop. Is this the right package for a 64-bit laptop?
Standard widget toolkit (is installed, see screenshot.
Why don't you set what it is complaining . Elsewhere , I found that this works:
Add this line
-Djava.library.path=/usr/l ib/jni/
in /etc/eclipse.ini
Add this line
-Djava.library.path=/usr/l
in /etc/eclipse.ini
Yes, if it's installed, that's the correct place. It's currently looking in the wrong place
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Yes, this is it. If I install a version of Eclipse INTENDED for Oracle Java, it will just work.
Based on your statement I found this, and the install fully worked, and I could run Eclipse:
http://blog.brunobraga.net/eclipse-42-in-ubuntu-1204/
Based on your statement I found this, and the install fully worked, and I could run Eclipse:
http://blog.brunobraga.net/eclipse-42-in-ubuntu-1204/
You can run eclipse jar file with any JVM, but one in ubuntu package is pre-configured to use system JDK/JRE