Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse Juno (4.2.1) and RedHat 5.8 64bit(Eclipse start up error "../eclipse_1502.so: invalid ELF header")
Eclipse Juno (4.2.1) and RedHat 5.8 64bit [message #956445] Wed, 24 October 2012 14:14 Go to next message
Otmar Zikulnig is currently offline Otmar ZikulnigFriend
Messages: 3
Registered: October 2012
Junior Member
Hi!

I donwlowded eclipse 4.2.1 64bit version to use it on Redhat 5.8 64bit.

I have
-unziped and untared the pkg into a local directory /home/eclipse_4.2.1.
(no eclipse.ini modifications from my side)
-Java jdk/1.7.0-05 (64bit version), JAVA_HOME is /opt/jdk_1.7.0-05

java -version call shows:
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)


Immediately after call of ./eclipse following error occure:

/home/eclipse_4.2.1//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120522-1813/eclipse_1502.so: invalid ELF header

Additional a msg box pops up with following content:

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

I confirm the msg box and eclipse ends!

Can anyone help?


Best regards,
Otmar

Re: Eclipse Juno (4.2.1) and RedHat 5.8 64bit [message #957481 is a reply to message #956445] Thu, 25 October 2012 08:54 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3801
Registered: July 2009
Senior Member
On 24.10.2012 17:50, Otmar Zikulnig wrote:
> Hi!
>
> I donwlowded eclipse 4.2.1 64bit version to use it on Redhat 5.8 64bit.
>
> I have
> -unziped and untared the pkg into a local directory /home/eclipse_4.2.1.
> (no eclipse.ini modifications from my side)
> -Java jdk/1.7.0-05 (64bit version), JAVA_HOME is /opt/jdk_1.7.0-05
>
> java -version call shows:
> java version "1.7.0_05"
> Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
> Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)
>
>
> Immediately after call of ./eclipse following error occure:
>
> /home/eclipse_4.2.1//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120522-1813/eclipse_1502.so:
> invalid ELF header
>
> Additional a msg box pops up with following content:
>
> "The Eclipse executable launcher was unable to locate its companion
> shared library"
>
> I confirm the msg box and eclipse ends!
>
> Can anyone help?
Maybe this helps: http://wiki.eclipse.org/FAQ_How_do_I_run_Eclipse%3F

Dani
>
>
> Best regards,
> Otmar
>
>
Re: Eclipse Juno (4.2.1) and RedHat 5.8 64bit [message #957736 is a reply to message #957481] Thu, 25 October 2012 13:01 Go to previous messageGo to next message
Otmar Zikulnig is currently offline Otmar ZikulnigFriend
Messages: 3
Registered: October 2012
Junior Member
Hi Dani!

Thx for your link!

I made folowing attempts, but all without sucess Sad


First, I set env var ECLIPSEHOME with absolute path to eclipse install dir, then I

a) call with (java version 1.6 and 1.7)
java -jar plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar

result for both java versions:

!SESSION Thu Oct 25 14:43:28 MEST 2012 -----------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2012-10-25 14:43:28.390
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:626)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

b) call it directly with -vm

./eclipse -vm /opt/jdk_1.7.0-05/bin/java

results in the same ".../eclipse_1502.so: invalid ELF heder" error msg from my inital posting

c) insert
-vm /opt/jdk_1.7.0_05/bin/java
into eclipse.ini before my inital posting without success


I attempted to call Eclipse Juno like described fpr Eclipse 3.2 but i did not found any "eclipse/startup*" jar file.


Eclipse Juno starts and works perfekt on my Win7 host but not on Linux Redhat 5.8!


regards,
Otmar


Re: Eclipse Juno (4.2.1) and RedHat 5.8 64bit [message #957754 is a reply to message #957736] Thu, 25 October 2012 13:14 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3245
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 10/25/2012 07:01 AM, Otmar Zikulnig wrote:
> Hi Dani!
>
> Thx for your link!
>
> I made folowing attempts, but all without sucess :(
>
> First, I set env var ECLIPSEHOME with absolute path to eclipse install
> dir, then I
>
> a) call with (java version 1.6 and 1.7)
> java -jar plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
>
> result for both java versions:
>
> !SESSION Thu Oct 25 14:43:28 MEST 2012
> -----------------------------------------
> !ENTRY org.eclipse.equinox.launcher 4 0 2012-10-25 14:43:28.390
> !MESSAGE Exception launching the Eclipse Platform:
> !STACK
> java.lang.ClassNotFoundException:
> org.eclipse.core.runtime.adaptor.EclipseStarter
> at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:626)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
>
> b) call it directly with -vm
>
> /eclipse -vm /opt/jdk_1.7.0-05/bin/java
>
> results in the same ".../eclipse_1502.so: invalid ELF heder" error msg
> from my inital posting
>
> c) insert -vm /opt/jdk_1.7.0_05/bin/java into eclipse.ini before my
> inital posting without success
>
>
> I attempted to call Eclipse Juno like described fpr Eclipse 3.2 but i
> did not found any "eclipse/startup*" jar file.
>
>
> Eclipse Juno starts and works perfekt on my Win7 host but not on Linux
> Redhat 5.8!
>
>
> regards,
> Otmar

Otmar,

You understood that using the -vm option, you must put it on two
separate lines in eclipse.ini, right?

-vm
/opt/jdk_1.7.0_05/bin/java

Still, corrupt ELF header would indicate that the file eclipse_1502.so
is bad. Perhaps redoing your installation exploding a tarball from a
fresh download?

Best of luck.
Re: Eclipse Juno (4.2.1) and RedHat 5.8 64bit [message #962664 is a reply to message #957754] Mon, 29 October 2012 08:27 Go to previous message
Otmar Zikulnig is currently offline Otmar ZikulnigFriend
Messages: 3
Registered: October 2012
Junior Member
Hi Russell!

I redownload eclipse 4.2.1 64bit (unter Windows OS) for Linux and unzip and untar under Linux and it works without and problems .

Just to document my problem:
With my first download (default mirror for 64bit), download under Windows + unzip and untar with 7-Zip on Windows and move then to Linux enviroment, I face the ELF problem.

But now it works.
Thx to you and Dani for your replys.

Best regards,
Otmar

Previous Topic:EntityManagerFactory (Eclipselink RCP) return NullPointerException
Next Topic:Problem with "-Dline.separator"
Goto Forum:
  


Current Time: Wed Nov 26 03:26:35 GMT 2014

Powered by FUDForum. Page generated in 0.02432 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software