LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 02-02-2012, 03:33 PM   #1
ivanp84
LQ Newbie
 
Registered: Jan 2010
Location: Belgrade, Serbia
Distribution: Slackware64
Posts: 11

Rep: Reputation: 0
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/

Ivan

Last edited by ivanp84; 02-02-2012 at 03:35 PM.
 
Old 02-04-2012, 09:10 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,390

Rep: Reputation: Disabled
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:
Code:
http://cactus.nci.nih.gov/chemical/structure/tylenol/file?format\=sdf&get3d\=True
The output in the terminal did not show anything strange:
Code:
splash_image=jar:file:/home/xxx/Downloads/jmol-12.2.14/Jmol.jar!/org/openscience/jmol/app/images/Jmol_splash.jpg
history file is /home/xxx/.jmol/history
1822 script command tokens
(C) 2009 Jmol Development
Jmol Version: 12.2.14  2011-12-13 21:20
java.vendor: Oracle Corporation
java.version: 1.7.0_147-icedtea
os.name: Linux
memory: 10.3/30.7
processors available: 2
useCommandThread: false
User macros dir: /home/xxx/.jmol/macros
       exists: false
  isDirectory: false
No idea why it won't work on your system.
My OS: slackware64-current.


Eric
 
Old 02-04-2012, 10:27 AM   #3
ivanp84
LQ Newbie
 
Registered: Jan 2010
Location: Belgrade, Serbia
Distribution: Slackware64
Posts: 11

Original Poster
Rep: Reputation: 0
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.
 
Old 04-25-2012, 04:34 PM   #4
mlpa
Member
 
Registered: May 2008
Location: Aveiro
Distribution: Slackware
Posts: 503

Rep: Reputation: 38
I am experiencing the same problem.
It is necessary to install jdk and jre package?

I usually only install jdk :S
 
Old 04-25-2012, 04:49 PM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,390

Rep: Reputation: Disabled
Only install one of the two. If you install both, they bite.

Eric
 
Old 04-25-2012, 04:58 PM   #6
gargamel
Senior Member
 
Registered: May 2003
Distribution: Slackware, SLAX, OpenSuSE
Posts: 1,629

Rep: Reputation: 142Reputation: 142
Quote:
Originally Posted by Alien Bob View Post
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.

gargamel

Last edited by gargamel; 04-25-2012 at 05:02 PM.
 
  


Reply

Tags
slackware -current


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] googleearth problem in Slackware64-current afreitascs Slackware 6 05-12-2011 09:57 AM
[SOLVED] Slackware64 -current video problem with ATI HD5570 lpallard Slackware 23 01-08-2011 07:38 PM
Slackware64 -current (20-04-2010) problem with slackpkg mlpa Slackware 5 04-22-2010 02:55 AM
[SOLVED] dbus problem slackware64-current gtludwig Slackware 5 01-05-2010 11:32 AM
[SOLVED] Problem with kqemu in slackware64-current since 2.6.29.5 kernel niels.horn Slackware 3 06-20-2009 05:27 PM


All times are GMT -5. The time now is 05:24 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration