Talk:Java

From ArchWiki
Jump to: navigation, search

One more way to fix window manager related issues

Faced some sort of "rendering problem" on MATE few days ago. Wmname crashed MATE completely, but I found a nice fix on one of Linux Mint forums.

Here is git repo with description and sources. It's a simple jar that injects into Java X11 class and force it to return fixed, user defined string, instead of actual WM name.

Already posted PKGBUILD to AUR and think about posting this solution here. Is there anything special I should know/do before posting?

Ffuugoo (talk) 10:06, 25 May 2014 (UTC)

Thanks for this info. It is about MATE so you should add it to MATE page.
If there is any bug link about this, please add it too so after this is fixed. Such workaround could/should be removed.
--Fengchao (talk) 07:08, 14 June 2014 (UTC)
The trick here that it is not just about MATE, but another solution to Java#Impersonate another window manager.
And as it's more accurate way (than wmname) to solve this problem, I think it should be marked as recomended.
--Ffuugoo (talk) 09:32, 30 June 2014 (UTC)
Then it is ok to add it here. Any information about the bug in upstream? If there is, please add it here for tracking.--Fengchao (talk) 09:02, 27 July 2014 (UTC)

GTK+3 on Java 9

Java 9 released on the 21/9/2017, and with it came the ability to force AWT, Swing and JavaFX programs to use GTK+3[1] with the GTK Look and Feel. As such I propose editing the GTK Look and Feel section [2] to include this. GTK+3 is enabled using -Djdk.gtk.version=3 (or 2, 2.2) in _JAVA_OPTIONS, meaning it can be placed in a users .rc file or in /etc/environment.

Note that to enable this, users will have to use extra/jdk9-openjdk, extra/jre9-openjdk and extra/jre9-openjdk-headless, before changing their version using archlinux-java.

Installing official oracle jdk

I would like to add a section to how to install the latest jdk directly from oracle website the solution is to:

1-download the tar.gz binary archive from oracle

2-untar the file to /usr/lib/jvm/

3-run the # archlinux-java status command to get the name of the detected java versions by the archlinux-java program

4-run # sudo archlinux-java set jdk-X.X.X to Force <JAVA_ENV> as default

now all jdk binaries like javac and java will point to the correct version.

the reason for this is that the package maintainer for package jdk9-openjdk Guillaume Alaux seem to not have plans for OpenJFX for OpenJDK9 mainly due to lack of time and interest: [3]

any way do you approve this solution ?? --Technotux2055 (talk) 04:08, 24 December 2017 (UTC)