LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Slackware 14.1 64 - Eclipse 4.3 64 refuses to start (http://www.linuxquestions.org/questions/slackware-14/slackware-14-1-64-eclipse-4-3-64-refuses-to-start-4175501431/)

glupa4e 04-12-2014 05:36 AM

Slackware 14.1 64 - Eclipse 4.3 64 refuses to start
 
Hello,

i have installed the eclipse package from slackbuilds.org - http://slackbuilds.org/repository/14...pment/eclipse/ . i have java installed. Other applications requiring java (such as openoffice/libreoffice) are working. Here are some details.
When i start Eclipse from KDE i get the error:
Code:

The Eclipse executable launcher was unable to locate its
companion shared library.

When i start it from the command line, i get:
Code:

bash-4.2$ eclipse
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20130521-0416: cannot open shared object file: No such file or directory

installed java version:
Code:

bash-4.2$ java -version
java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

Eclipse executable:
Code:

bash-4.2$ which eclipse
/usr/bin/eclipse

eclipse.ini file is located under /opt/eclipse/eclipse.ini. Its contents is as follows:
Code:

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20130521-0416
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Xms40m
-Xmx512m

$JAVA_HOME
Code:

bash-4.2$ echo $JAVA_HOME
/usr/lib64/java

I think it used to work before. Last thing i was struggling to get running was calibre.

Any idea what could have broken the Eclipse installation?

Thank you!

Drakeo 04-12-2014 05:40 AM

After you installed JDK did you reboot. you will need to so all the libraries get loaded correct.
if so wonder why that plugin is not there.

I figure you already did this right.
Quote:

Upgrading: if you find an error during Eclipse initialization, check
this two files:

/opt/eclipse/configuration/config.ini
/opt/eclipse/eclipse.ini

If you haven't done modifications in those files, overwrite them with
config.ini.new and eclipse.ini.new.

glupa4e 04-12-2014 06:04 AM

I had forgotten to install jdk
 
Hello,

as it seems i had forgotten to install jdk but i thought Eclipse could run only with jre. Anyway i did the following- i installed the openjdk slackbuild that is available from Alien Bob - http://www.slackware.com/~alien/slac...dk/pkg64/14.1/

After that installation i rebooted. I am still getting the same errors when trying to start eclipse from command line or KDE. Here are some details again:

/opt/eclipse/configuration/config.ini
Code:

#This configuration file was written by: org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxFwConfigFileParser
#Wed Jun 05 22:18:38 EDT 2013
org.eclipse.update.reconcile=false
eclipse.p2.profile=SDKProfile
osgi.instance.area.default=@user.home/workspace
osgi.framework=file\:plugins/org.eclipse.osgi_3.9.0.v20130529-1710.jar
equinox.use.ds=true
eclipse.buildId=4.3.0.I20130605-2000
osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.400.v20130327-2119.jar@1\:start
org.eclipse.swt.internal.gtk.useCairo=true
org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.eclipse.equinox.simpleconfigurator/bundles.info
eclipse.product=org.eclipse.sdk.ide
osgi.splashPath=platform\:/base/plugins/org.eclipse.platform
osgi.framework.extensions=
eclipse.p2.data.area=@config.dir/../p2
eclipse.application=org.eclipse.ui.ide.workbench
osgi.bundles.defaultStartLevel=4

/opt/eclipse/eclipse.ini
Code:

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20130521-0416
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Xms40m
-Xmx512m

i do not know if i need to make any changes in those two files. Further details:
Code:

bash-4.2$ which java
/usr/lib64/java/bin/java

Code:

bash-4.2$ echo $JAVA_HOME
/usr/lib64/java

Code:

bash-4.2$ java -version
java version "1.7.0_51"
OpenJDK Runtime Environment (IcedTea 2.4.6) (Slackware)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)


glupa4e 04-12-2014 06:12 AM

A file is missing - org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20130521-0416
 
I noticed that some file is missing - there is no file

Code:

org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20130521-0416
under
Code:

/opt/eclipse/plugins
but that file is configured in /opt/eclipse/eclipse.ini

Any idea how to fix that?

glupa4e 04-12-2014 06:33 AM

Sart Eclipse as root
 
Trying to start Eclipse as a root user gives some more information:

Code:

# eclipse
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20130521-0416: cannot open shared object file: No such file or directory
No protocol specified
Eclipse: Cannot open display:
Eclipse:
The Eclipse executable launcher was unable to locate its
companion shared library.

But howcome could this file be missing?

glupa4e 04-12-2014 06:59 AM

Log contents
 
Hello,

i figured out that there is something wrong in the eclipse.ini file:
it was configured:
Code:

--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20130521-0416

but i did not have such file. i had the following instead:
Code:

/opt/eclipse/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20130807-1835
So i replaced the originally configured file with the one i had. Now my /opt/eclipse/eclipse.ini looks as this:
Code:

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20130807-1835
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Xms40m
-Xmx512m

i rebooted the machine after i had made the changes. Now when i try to start eclipse, it gives an error that i should look in the log. Here is the log:

Code:

/home/user/.eclipse/org.eclipse.platform_4.3.0_1473617060_linux_gtk_x86_64/configuration
!SESSION Sat Apr 12 13:52:20 CEST 2014 -----------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2014-04-12 13:52:20.226
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:633)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1426)


Drakeo 04-12-2014 08:18 AM

I just built that with openjdk from Alien Bob's repo and it runs fine. used slackbuild to do it.
Quote:

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20130807-1835
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Xms40m
-Xmx512m

glupa4e 04-12-2014 02:08 PM

Quote:

Originally Posted by Drakeo (Post 5151226)
I just built that with openjdk from Alien Bob's repo and it runs fine. used slackbuild to do it.

Hello Drakeo,
as far as i can understand from your post, you have installed openjdk from Alien Bob's repository and then you have installed Eclipse package from slackbuilds.org? Is that right?

Thanks!

glupa4e 04-12-2014 11:58 PM

Eclipse 4.3 64 reinstalled - same problem
 
Hello,
here is what i did. I removed Eclipse and installed it again. I already had installed openjdk from Alien Bob's repository. I am using the eclipse.ini file that Drakeo has provided. i just replaced my old one with the one he had provided. Now i am getting this error when starting eclipse:
Code:

!SESSION Sun Apr 13 06:54:35 CEST 2014 -----------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2014-04-13 06:54:35.156
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
        at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:633)
        at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
        at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
        at org.eclipse.equinox.launcher.Main.main(Main.java:1426)


glupa4e 04-13-2014 12:13 AM

Solution found
 
Hello,
i searched a little bit in Internet. I found this post useful. i just had to replace the proper files in /opt/eclipse/configuration/config.ini. i just set it to match the files that i have under the plugins directory.
original config.ini:
Code:

#This configuration file was written by: org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxFwConfigFileParser
#Wed Jun 05 22:18:38 EDT 2013
org.eclipse.update.reconcile=false
eclipse.p2.profile=SDKProfile
osgi.instance.area.default=@user.home/workspace
osgi.framework=file\:plugins/org.eclipse.osgi_3.9.0.v20130529-1710.jar
equinox.use.ds=true
eclipse.buildId=4.3.0.I20130605-2000
osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.400.v20130327-2119.jar@1\:start
org.eclipse.swt.internal.gtk.useCairo=true
org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.eclipse.equinox.simpleconfigurator/bundles.info
eclipse.product=org.eclipse.sdk.ide
osgi.splashPath=platform\:/base/plugins/org.eclipse.platform
osgi.framework.extensions=
eclipse.p2.data.area=@config.dir/../p2
eclipse.application=org.eclipse.ui.ide.workbench
osgi.bundles.defaultStartLevel=4

modified config.ini
Code:

#This configuration file was written by: org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxFwConfigFileParser
#Wed Jun 05 22:18:38 EDT 2013
org.eclipse.update.reconcile=false
eclipse.p2.profile=SDKProfile
osgi.instance.area.default=@user.home/workspace
osgi.framework=file\:plugins/org.eclipse.osgi_3.9.1.v20130814-1242.jar
equinox.use.ds=true
eclipse.buildId=4.3.0.I20130605-2000
osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.400.v20130327-2119.jar@1\:start
org.eclipse.swt.internal.gtk.useCairo=true
org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.eclipse.equinox.simpleconfigurator/bundles.info
eclipse.product=org.eclipse.sdk.ide
osgi.splashPath=platform\:/base/plugins/org.eclipse.platform
osgi.framework.extensions=
eclipse.p2.data.area=@config.dir/../p2
eclipse.application=org.eclipse.ui.ide.workbench
osgi.bundles.defaultStartLevel=4

the only row i had to update was:
Code:

osgi.framework=file\:plugins/org.eclipse.osgi_3.9.1.v20130814-1242.jar
this is version specific.
thank you, marking this thread as solved.


All times are GMT -5. The time now is 04:12 AM.