Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

UnsatisfiedLinkError: Can't load library: /i2k/rxs/java/j2sdk1.4.2/jre/lib/sparc/motif12/libmawt.so

Posted on 2003-12-11
14
Medium Priority
?
634 Views
Last Modified: 2007-12-19
I hava a Java app running well on a Sun 'sun-fire-280r' running Solaris 2.8 in 64bit mode and Oracle 8.1.7. I need to run it on several other machines, one being a Sun 'ultra-80' running Solaris 2.6 and Oracle 8.0.6. The app runs well under the 2.8 box with Java 1.4.2, but errors loading the below shared library. I can make my LD_LIBRARY_PATH the same for the failing machine as it is on the good machine. I can change my LD_LIBRARY_PATH to point to the location of libmawt.so and still fails. I brought in the latest 1.4.2_3 and reloaded for this machine only and still fails. Anyone with ideas why I can't load this shared library?

--------------------------------------------------
Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /i2k/rxs/java/j2sdk1.4.2/jre/lib/sparc/motif12/libmawt.so
      at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1459)
      at java.lang.Runtime.load0(Runtime.java:737)
      at java.lang.System.load(System.java:811)
      at java.lang.ClassLoader$NativeLibrary.load(Native Method)
      at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1560)
      at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1477)
      at java.lang.Runtime.loadLibrary0(Runtime.java:788)
      at java.lang.System.loadLibrary(System.java:834)
      at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.awt.NativeLibLoader.loadLibraries(NativeLibLoader.java:38)
      at sun.awt.DebugHelper.<clinit>(DebugHelper.java:29)
      at java.awt.Component.<clinit>(Component.java:506)
0
Comment
Question by:rayskelton
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
  • 4
14 Comments
 

Author Comment

by:rayskelton
ID: 9924309
The failing box is the Sun 'ultra-80'  2.6 box.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 9924314
If everything is in the same place on each machine, did you build the binaries *for* each machine?
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 9924325
...and by extension, *on* each machine?
0
Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

 
LVL 92

Expert Comment

by:objects
ID: 9924359
> /i2k/rxs/java/j2sdk1.4.2/jre/lib/sparc/motif12/libmawt.so

does that file exist?
0
 

Author Comment

by:rayskelton
ID: 9924361
I downloaded the .sh file, which I assume unzip and untared the binaries. This has worked well on other machines.
0
 
LVL 92

Accepted Solution

by:
objects earned 1000 total points
ID: 9924378
0
 

Author Comment

by:rayskelton
ID: 9924381
The file in this path below does not exist, bit it does exist in the motif21 directory. I changed my LD_LIBRARY_PATH to point to the location of the file.
/i2k/rxs/java/j2sdk1.4.2/jre/lib/sparc/motif12/libmawt.so

0
 
LVL 86

Expert Comment

by:CEHJ
ID: 9924435
If you didn't compile the binaries yourself, are you sure that they are binarily compatible with the OS?
0
 
LVL 92

Expert Comment

by:objects
ID: 9924468
1.4.2 is not supported on 2.6.
0
 

Author Comment

by:rayskelton
ID: 9924469
according to the listed above articles 2.6 does not support 1.4.1 or 1.4.2. With that in mind do I need to spend the time building new objects?
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 9924483
>>With that in mind do I need to spend the time building new objects?

No
0
 
LVL 92

Expert Comment

by:objects
ID: 9924509
Sorry we couldn't give you a 'happier' answer.

http://www.objects.com.au/staff/mick
0
 

Author Comment

by:rayskelton
ID: 9924515
CEHJ & OBJEST

Thanks
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

661 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question