10-May-2016
NOTE: This article is 3 years or older so its information may no longer be relevant. Read on at your own discretion! Comments for this article have automatically been locked, refer to the
FAQ for more details.
I've recently had one of the
DBAs on a project ask me what
GTK version is required to run
Java Mission Control with
JDK 7. I thought easy, the documentation should tell me this, but after searching for several hours I've come up with nothing, apart from
'GTK Libraries Required' as stated in the
Oracle Java Mission Control 5.3 Certified System Configurations.
Interestingly the
Oracle JDK 7 and JRE 7 Certified System Configurations doesn't mention GTK at all, however the
Oracle JDK 8 and JRE 8 Certified System Configurations does. In fact the JDK 8 matrix goes on to say
'For Linux platforms, gtk2 2.18+ is required for supporting JavaFX.', however we aren't interested in
JavaFX or
JDK 8 here.
Since I couldn't get answers in the documentation the only solution was to do it the hard way and see what the binaries actually depend on. Here come the linking errors...
When running
jmc, the output is something like this...
That is not too helpful but the log reveals more...
Now I was starting to get somewhere! What was missing was the
libgtk-x11-2.0.so.0 file. Doing a
search on rpmfind.net reveals this library is present in as far back as version 2.0 of
GTK.
So to be on the safe side I would say the latest
GTK 2 library should be installed and at the minimum the
2.18 version should be picked to future proof any
JDK upgrades.
-i
Hope you found this post useful...
...so please read on! I love writing articles that provide beneficial information,
tips and examples to my readers. All information on my blog is provided free of
charge and I encourage you to share it as you wish. There is a small favour I ask in return however -
engage in comments below, provide feedback, and if you see mistakes let me know.
If you want to show additional support and help me pay for web hosting and
domain name registration,
donations, no matter how small, are always welcome!
Use of any information contained in this blog post/article is subject to
this disclaimer.
Igor Kromin
Other posts you may like...