[SOLVED] OpenJDK 7 problem with Swing GUI apps on Slackware64 13.37-current
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
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.
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/
I tried again today with OpenJRE installed and also with OpenJDK installed.
The Jmol application looks OK and works as expected - see the screenshot in my blog post.
What I did to test this, was just to download "Jmol-12.2.14-binary.zip", unzip the archive, "cd" into the Jmol directory which gets created and run
Code:
sh jmol.sh
to start the application.
For the example in the screenshot I used an example model by loading the following URL in Jmol:
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
Code:
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.
Eric
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.