Am 26.12.2017 um 17:26 schrieb Nagy Attila: [...] > As it turned out the main point is: > java.lang.IllegalArgumentException Width (0) and height (0) must be non-zero > occurred while creating cursor CopyDrop.32x32 > > which is a known Java bug: see > https://bugs.openjdk.java.net/browse/JDK-8173853 > > fixed in Java 8u152 and 9 (see https://bugs.launchpad.net/ubuntu/+source/xorg- > server/+bug/1232471). > > But updating Java (actually installing Oracle JVM as OpenJDK 8u152 is still > unavailable) did not solved the problem even after changing the alternatives. > > As it turned out /usr/share/sweethome3d/sweethome3d.sh contains a line: > find_java_runtime java6 > > If I change this to: > find_java_runtime > > the program starts and works as expected. (the used java-wrappers script takes > care of using the alternatives version if no specific version is given as a > parameter). > > I don't know if this change causes some problems under other circumstances or > the java6 version limitation is needed at all but I think maybe this change > could be included.
Hi, the line find_java_runtime java6 is basically correct. It is the minimum requirement for running Sweethome3d. Nowadays it should be java7 though because java6 is no longer supported in Debian. Actually making the Oracle JDK the preferred JDK via the alternative mechanism: update-alternatives --config java should resolve your issue. If not, then we have a bug in java-wrappers. If two java8 JRE are installed on the same system, java-wrappers should detect and use the one which is the preferred JRE based on the update-alternative mechanism. If you are really sure that the Oracle JRE is already the preferred one, please report back and I'm going to reassign this bug report to java-wrappers. The real issue is in openjdk though but this will be fixed eventually. Regards, Markus
signature.asc
Description: OpenPGP digital signature