LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-20-2016, 04:40 AM   #1
arulraj.s
LQ Newbie
 
Registered: Jul 2016
Posts: 4

Rep: Reputation: Disabled
Relocation error,+ /lib/i386/xawt/libmawt.so: undefined Symbol: Xutf8TextListToTextProperty


I am migrating my application from JRE 1.4 to JRE 1.6 in my Linux based application.
When loading the Java application, I am getting the below error.

relocation error: /jre/j2re1.6.0_31/lib/i386/xawt/libmawt.so: undefined Symbol:
libmwat.so: undefined symbol: Xutf8TextListToTextProperty


Your suggestions are highly appreciated.

Raj
 
Old 07-25-2016, 01:33 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
One of the many annoyances of Java is that it has no backward compatibility. This is why many people continue to use things like 1.4 and 1.6 (and 1.5 & 1.7) even though they are known to have severe vulnerabilities.

It isn't clear based on what you said if you're simply trying to run your existing code in 1.6 when it was written for 1.4 or if you're actually porting it. If the latter I'd suggest you think about porting to 1.8 since that is the latest.

If you aren't porting the code chances are you'll have to continue using the original version of Java it was written to run in. Note that you CAN have more than one Java version installed. You can set the newer one to be the default and then set the older one in the environment path for whatever application requires it.
 
Old 08-01-2016, 09:14 AM   #3
arulraj.s
LQ Newbie
 
Registered: Jul 2016
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thumbs up Solved

Thank you Mensa for your reply.
I was able to solve the issue that I faced after a long.. search and learning from Google.
The root cause of the issue is,

Starting with JavaTM SE 5.0, AWT has been re-implemented on the Solaris and Linux platforms. The new Toolkit implementation provides the following advantages: ##Removes the dependency on Motif and Xt libraries.
##Interoperates better with other GUI Toolkits.
##Provides better performance and quality.

Use the below export option and it works fine.
ksh/bash:
export AWT_TOOLKIT=XToolkit
export AWT_TOOLKIT=MToolkit

REF :
http://docs.oracle.com/javase/7/docs.../1.5/xawt.html
 
1 members found this post helpful.
Old 08-01-2016, 10:19 AM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Thanks for updating with your solution.

If you would please go to thread tools and mark this as solved. It helps others in future more quickly find posts with solutions.
 
  


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
Error launching installer in Linux RHEL undefined symbol: Xutf8TextListToTextProperty sangano Linux - Newbie 4 08-01-2016 09:02 AM
relocation error: mount: undefined symbol: blkid_known_fstype sybabe Linux - Newbie 1 08-29-2009 11:56 PM
./firefox-bin :symbol lookup error:/lib/libgthread-2.0.so.0: undefined symbol: arulupsaras Linux - General 1 11-08-2008 04:48 AM
relocation error in libgdk-1.2.so.0. Undefined symbol: g_source_add big_manel Linux - Software 1 02-13-2006 08:06 PM
dcgui-qt: relocation error: /usr/lib/libqt-mt.so.3: undefined symbol: glXGetConfig akqw Linux - Software 0 10-05-2003 10:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:26 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