LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-06-2010, 02:13 PM   #1
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Rep: Reputation: 45
Problem with Java Applications


Hello. I have downloaded the StarLogoTNG and I am trying to execute it.

I receive the following message
Quote:
sh starlogotng-linux.sh
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: /home/apalaios/Documents/starlogotng_1.0_i386/build/libStarLogoC.so: /home/apalaios/Documents/starlogotng_1.0_i386/build/libStarLogoC.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)

What should I try to do to skip this message? Unfortunately I do not know if there is the Java source and how it might be installed? Do you have any suggestions what I should try to do?
I would like to thank you in advance for your reply.
 
Old 04-06-2010, 02:46 PM   #2
anand.arumug
Member
 
Registered: Oct 2009
Location: Dayton, Ohio
Distribution: ubuntu, centos
Posts: 68
Blog Entries: 2

Rep: Reputation: 16
Quote:
Originally Posted by alaios View Post
Hello. I have downloaded the StarLogoTNG and I am trying to execute it.

I receive the following message



What should I try to do to skip this message? Unfortunately I do not know if there is the Java source and how it might be installed? Do you have any suggestions what I should try to do?
I would like to thank you in advance for your reply.
Looks like you downloaded the wrong executable for your computer.

The message "wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)" suggests that you might be trying to run a 64-bit application on a 32-bit machine or vice-versa.

If your machine has a 64-bit processor, try downloading the 64-bit version of the executable and try. On the other hand if your machine has a 32-bit processor, try running a 32-bit version of the executable.

Search the internet for "wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)" and see if you get any hits to forum that talk about this problem for your software.

hth
 
Old 04-07-2010, 02:07 AM   #3
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Original Poster
Rep: Reputation: 45
Thanks for your kindness to help me....
What seems strange to me is that I am running a 64 bit version of Linux.
My processor is the Core 2 Duo and my kernel is the

uname -a
1 SMP 2010-01-27 08:20:11 +0100 x86_64 x86_64 x86_64 GNU/Linux


which probably means that I am running a 64 bit version operating system and in that sense the 32 bit software version should be running properly
 
Old 04-07-2010, 08:27 AM   #4
anand.arumug
Member
 
Registered: Oct 2009
Location: Dayton, Ohio
Distribution: ubuntu, centos
Posts: 68
Blog Entries: 2

Rep: Reputation: 16
Quote:
Originally Posted by alaios View Post
Thanks for your kindness to help me....
What seems strange to me is that I am running a 64 bit version of Linux.
My processor is the Core 2 Duo and my kernel is the

uname -a
1 SMP 2010-01-27 08:20:11 +0100 x86_64 x86_64 x86_64 GNU/Linux


which probably means that I am running a 64 bit version operating system and in that sense the 32 bit software version should be running properly
I would expect so. But the exception is clearly indicating otherwise.

In the error message that you posted initially it suggests that "starlogotng_1.0_i386/build/libStarLogoC.so" was built for i386 architecture. So I am not sure whether this library is playing nicely with x86_64 kernel!?!?!

Another thing to check - is the JVM and JDK built for 64-bit kernel?
 
Old 04-08-2010, 04:49 AM   #5
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Original Poster
Rep: Reputation: 45
Problem solved. Just removed all java related 64bit stuff and replaced them with the 32bit versions.
Now it works nice
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
java applications are not running lalitkumar Linux - Software 1 09-02-2009 08:04 AM
Java or C++ for PC Applications Development? halfpower General 15 04-23-2007 09:36 AM
Starting Java applications merchtemeagle Slackware 3 12-21-2005 12:49 PM
using default applications from java? german Programming 2 06-21-2005 11:26 PM
Java-related applications.. Cliekid Yoper 2 12-02-2004 08:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration