<div>Hello,</div> <div> </div> <div>The 1.5 version of both Sun and the IBM JREs use their own Xt code, where as upto 1.4* versions both the JREs depended libXt.so available on the system.</div> <div> </div> <div>Due to this, my software is running into an issue. The product I work on, calls some methods from libXt.so. </div> <div> </div> <div>Earlier with 1.4 versions of JRE, since libawt.so of JREs depended on libXt.so, there was only one copy of the Xt code in the process (i.e, at run-time), and everything worked fine. Now, with 1.5 version of JREs, libawt.so has it's own Xt code which results in two copies of the Xt code at run-time - one copy is JRE's and the other is from libXt.so my software depends on. In addition to this, both the JREs have limited the scope of Xt symbols defined in them (i.e, in libawt.so) to be local (i.e, accessible only within libawt.so), which means that these symbols are not accessible from other modules in
the running process.</div> <div> </div> <div>As Java comes ahead of my code when the application is run, the libawt.so</div> <div>'s copies of certain Xt symbols like perDisplayList etc get intialized to proper value (which means the libXt.so's copies of the same remains uninitialzed). As libawt.so has made its Xt symbols inaccessible to outside code, the Xt symbols/code in my software gets resolved to the libXt.so's uninitilaized copies and hence crashes. </div> <div> </div> <div>IBM JRE provides backward compatibilty through the use of Java option <FONT face=Helv size=2></div> <div>-Dawt.toolkit=sun.awt.motif.MToolkit</div></FONT> <div>When this option is specified, IBM Jre switches to the previous implementation where it uses libXt.so instead of its own Xt code. Where as that doesn't happen with Sun JRE. Even when this option set, libawt uses statically linked Xt code and it doesn't expose the Xt symbols to other modules resulting in
the above problem.</div> <div> </div> <div>Has any one on this list are seeing any problems with this change in JRE 1.5? Shouldn't Sun provide backward compatibilty?</div> <div> </div> <div>Changing my application to depend on JRE or not use libXt.so is not a feasible option, as</div> <div>1. We have lot of Xt code in our software.</div> <div>2. The same code in my application has to deal with other situations where Java is not at all used.</div> <div>3. We need to intercept certain Xt methods, so that we get the control first, do some processing, and then call the real Xt routines.</div> <div> </div> <div>Any suggestions/thoughts are highly appreciated.</div> <div> </div> <div>Thanks,</div> <div>Suma.</div><p>
<hr size=1></hr>
Find out what India is talking about on - <a href="http://us.rd.yahoo.com/mail/in/yanswers/*http://in.answers.yahoo.com/">Yahoo! Answers India</a> <BR>
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. <a href="http://us.rd.yahoo.com/mail/in/messengertagline/*http://in.messenger.yahoo.com">Get it NOW</a>