[SOLVED] OpenJDK 7 problem with Swing GUI apps on Slackware64 13.37-current
SlackwareThis Forum is for the discussion of Slackware Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
OpenJDK 7 problem with Swing GUI apps on Slackware64 13.37-current
About two weeks ago I updated my S64 to current, and new glibc allowed me to upgrade all new cool packages from AlienBOB's repository. So I decided to upgrade java, since as biochemist, using tens of tiny, command-line, bioinformatic java apps, and just a few with GUI. And there is a problem, GUI apps, such as Jmol and Toxtree cannot create proper graphical interface under OpenJDK 7 framework, but works excellent under JDK6 from Slackware /extra. Somehow OpenJDK7 cannot render correctly Swing containers layouts, it's obvious that layout manager classes are buggy, sorry bun I cannot find any better name for it.
I'm very curious are anybody experiences same problems with OpenJDK7? If someone knows the solution, please post it here.
This is how Jmol looks like here http://i44.tinypic.com/ib9wrl.jpg
And I asked Eric about the problem on his slackware blog: http://alien.slackbook.org/blog/open...cles-binaries/
Thanks Eric! Acetaminophen (paracetamol) is my favorite small molecule example, also favorite friend of my maxillary sinuses during these 'Snowmageddon' days. :-) Now OpenJDK works, and I think that my problem was overlooked the fact that I had installed every package from yours ./openjdk/pkg64/. Today I removed all of them, and then installed by hand in order first jdk, then jre, icedtea-web, ... When I have many packages I often automate installation like this
for pkg in $( ls *.t?z ); do installpkg "$pkg"; done
Now I think that A-Z order of installation messed up doinst.sh procedures. Just suggestion, I haven't take a look at scripts, just used binaries.
I will mark this thread as solved, but even OpenJDK works now for me, I really don't know why it was messed before.
Only install one of the two. If you install both, they bite.
They should not. Actually, it's quite common on *other platforms* to install both, sometimes even in different versions. To run applications, JRE is used, and only development environments and applications servers would rely on the JDK. Of course, they bite, if the executable files have the same name and paths.
EDIT: Rather, one of them will be bitten on the first update of the other one.
EDIT: After all, it shouldn't be a problem, as long as you don't want to install different versions in parallel. Just install the JRE, if all you want is to run Java applications and applets, and go for JDK if you are a developer. The JDK includes a runtime environment.