Package Details: playonlinux5-git 2:r1918.48bf7f2a-1

Git Clone URL: https://aur.archlinux.org/playonlinux5-git.git (read-only)
Package Base: playonlinux5-git
Description: GUI for managing Windows programs under linux (development version based on Java)
Upstream URL: http://www.playonlinux.com/
Keywords: playonlinux playonlinux5 pol pol5 wine
Licenses: GPL
Submitter: captain
Maintainer: ProfessorKaos64
Last Packager: ProfessorKaos64
Votes: 21
Popularity: 2.093540
First Submitted: 2015-11-13 11:07
Last Updated: 2017-09-20 00:21

Pinned Comments

ProfessorKaos64 commented on 2016-11-18 16:16

Latest dev news:
https://www.playonlinux.com/en/news.html

Note:
PlayOnLinux.sh was modified and includes a path to Java 8, allowing non-destructive running of PlayOnLinux5 with default Java not set to Java 8. See: https://wiki.archlinux.org/index.php/java for more. There is not need to force users to set default Java to Java 8 at this time.

There is a Qt version being developed, but it is far from test-ready.

Latest Comments

m3thodic commented on 2017-11-20 06:04

@ProfessorKaos64 I simplified the fall-back logic when JAVA_FX isn't found:
https://gist.github.com/tonylambiris/8275a95fc6b7e3b330dcd14ca9c34051

Thanks!

Mordavolt commented on 2017-09-20 18:30

Nice, just updated and it works perfectly. Thank you for your time :)

ProfessorKaos64 commented on 2017-09-19 23:40

What exactly needs overridden if JavaFX is not found under JAVA_HOME's path? java-openjfx is already a dependency, noted in the official build docs: http://wiki.playonlinux.com/index.php/Building_PlayOnLinux_5. Can you be a bit more specific? It is simple enough to check for javafx.properties.

I re-read your original post, it seems you are saying that if JetBrains is picked up to force either Oracle/OpenJDK. That is a quick fix if so.

==> Starting build()...
-> Assessing Java build environment
-> Default Java JDK set is of verison 8 or higher, proceeding...
-> Using: java-8-openjdk-jetbrains
-> JavaFX Capabale? False
-> Forcing proper Java (if available)
-> Switching to OpenJDK

If Oracle or OpenJDK is not found after the javafx.properties test, the build exits.

Mordavolt commented on 2017-09-19 21:39

Yeah, but the issue is that I DO have Java >= 8, but I DON'T have JavaFX lib in that Java. I don't need just some Java >= 8, I need exactly either Oracle or OpenJDK java >= 8. Because your script thinks I have good Java since it is >= 8, it does not override it, but I need you to override it because I actually don't have a proper java. Maybe you could add a check that the Java that I am using has JavaFX and if not then override it?

ProfessorKaos64 commented on 2017-09-17 22:02

Ah I see in the runtime script. I'll ensure that Netbrains is picked up ahead of openjdk if it is the default set with archlinux-java. I am not sure why it fails for you though, since that if statement in PlayonLinux.sh only is executed if your java version is less than 8... I will add a few echo statements to PlayOnLinux.sh so a few variables are known at runtime and it's clear what is being picked up. At runtime, the order of preference if your DEFAULT Java set is NOT 8 or higher, is: Oracle/Jetbrains/OpenJDK. I can't appease everyone, so set your default to an appropriate version if this causes conflicts.

==> Starting pkgver()...
==> Starting build()...
-> Assessing Java build environment
-> Default Java JDK set is of verison 8 or higher, proceeding...
-> Using: java-8-openjdk

Runtime:

[mikeyd@archboxmtd playonlinux5-git]$ ./PlayOnLinux.sh
Running compatible JVM already (default set): java-8-openjdk

ProfessorKaos64 commented on 2017-09-17 21:33

The former detection was openjdk (if found), then Oracle JDK. I will add NetBeans JDK after this. Adding more and more "if this JDK, or that JDK" gets a bit much, but I will add NetBeans to the mix.

[mikeyd@archboxmtd ~]$ ls /usr/lib/jvm/java-{8,9}-openjdk/bin/javac 2>/dev/null | cut -d "/" -f-5
/usr/lib/jvm/java-8-openjdk
[mikeyd@archboxmtd ~]$ ls /usr/lib/jvm/java-{8,9}-openjdk-jetbrains/bin/javac 2>/dev/null | cut -d "/" -f-5
/usr/lib/jvm/java-8-openjdk-jetbrains
[mikeyd@archboxmtd ~]$ ls /usr/lib/jvm/java-{8,9}-jdk/bin/javac 2>/dev/null | cut -d "/" -f-5
/usr/lib/jvm/java-8-jdk

[mikeyd@archboxmtd ~]$ archlinux-java status
Available Java environments:
java-7-openjdk
java-8-jdk
java-8-openjdk
java-8-openjdk-jetbrains (default)

I don't see an issue in the PKGBUILD with setting java, the if statement only runs if you don't have 8 or higher:

[mikeyd@archboxmtd playonlinux5-git]$ archlinux-java get
java-8-openjdk-jetbrains
[mikeyd@archboxmtd playonlinux5-git]$ archlinux-java get | cut -d "-" -f2
8

ProfessorKaos64 commented on 2017-09-17 21:05

@Mordavolt i'll see what I can do.

Mordavolt commented on 2017-09-16 18:02

Hi, I'm not sure who is responsible for the /usr/bin/playonlinux5 executable (upstream or maintainer), but I've found an issue with the Java version check "archlinux-java get | cut -d "-" -f2". I use JetBrains Java from aur, since they have some font rendering fixes (https://aur.archlinux.org/packages/jdk8-openjdk-jetbrains) and this Java does not have JavaFX. The script should force proper Java, but because JetBrains Java name is similar to the OpenJDK Java it fails.
"Available Java environments:
java-7-openjdk
java-8-openjdk
java-8-openjdk-jetbrains (default)"
I've fixed it by commenting out the if and so always forcing the proper java path, but maybe this could get a proper fix.

ivannarvaez commented on 2017-07-12 20:49

@jeekiii I had the same problem and I managed to solve it following the answer given in this link: https://stackoverflow.com/questions/28247427/strange-locale-issue-on-arch

ProfessorKaos64 commented on 2017-06-20 00:42

Ok I see the issue. Update again and try once more. I believe I found a workaround.

All comments