LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Relocation error,+ /lib/i386/xawt/libmawt.so: undefined Symbol: Xutf8TextListToTextProperty (https://www.linuxquestions.org/questions/linux-newbie-8/relocation-error-lib-i386-xawt-libmawt-so-undefined-symbol-xutf8textlisttotextproperty-4175585097/)

arulraj.s 07-20-2016 04:40 AM

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

MensaWater 07-25-2016 01:33 PM

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.

arulraj.s 08-01-2016 09:14 AM

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

MensaWater 08-01-2016 10:19 AM

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.


All times are GMT -5. The time now is 03:03 PM.