teamfx / openjfx-8u-dev-rt

Mirror of OpenJFX repository 8u-dev/rt
GNU General Public License v2.0
15 stars 10 forks source link

FXPackager: Improve Linux's JRE detecion #4

Closed ST-DDT closed 8 years ago

ST-DDT commented 8 years ago

The issue

When trying to launch natively packaged applications without bundled JRE. I get the following exception:

SomeProject Failed to locate JNI_CreateJavaVM
SomeProject Failed to launch JVM

This error is caused by the JRE_HOME environment variable not being set. Unfortunately the JRE_HOME won't be set by any installer on linux (or windows). apt-get install java-8-installer (At least not on any of my computers)

The solution

Search for system JRE's also:

mkarg commented 8 years ago

This is only a read-only mirror, so pull requests cannot be processed. Instead please describe your proposal as an issue. Thanks.