{"action":"created","issue":{"url":"https://api.github.com/repos/javafx-maven-plugin/javafx-maven-plugin/issues/222","repository_url":"https://api.github.com/repos/javafx-maven-plugin/javafx-maven-plugin","labels_url":"https://api.github.com/repos/javafx-maven-plugin/javafx-maven-plugin/issues/222/labels{/name}","comments_url":"https://api.github.com/repos/javafx-maven-plugin/javafx-maven-plugin/issues/222/comments","events_url":"https://api.github.com/repos/javafx-maven-plugin/javafx-maven-plugin/issues/222/events","html_url":"https://github.com/javafx-maven-plugin/javafx-maven-plugin/issues/222","id":169569299,"number":222,"title":"Error executing native linux launcher","user":{"login":"ST-DDT","id":1579362,"avatar_url":"https://avatars.githubusercontent.com/u/1579362?v=3","gravatar_id":"","url":"https://api.github.com/users/ST-DDT","html_url":"https://github.com/ST-DDT","followers_url":"https://api.github.com/users/ST-DDT/followers","following_url":"https://api.github.com/users/ST-DDT/following{/other_user}","gists_url":"https://api.github.com/users/ST-DDT/gists{/gist_id}","starred_url":"https://api.github.com/users/ST-DDT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ST-DDT/subscriptions","organizations_url":"https://api.github.com/users/ST-DDT/orgs","repos_url":"https://api.github.com/users/ST-DDT/repos","events_url":"https://api.github.com/users/ST-DDT/events{/privacy}","received_events_url":"https://api.github.com/users/ST-DDT/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-05T09:36:48Z","updated_at":"2016-08-05T16:21:04Z","closed_at":null,"body":"When I create a simple project that only consists of the pom (and the target/classes folder)\r\n(This of course effects complex projects as well)\r\n````xml\r\n<project xmlns=\"http://maven.apache.org/POM/4.0.0\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\r\n\txsi:schemaLocation=\"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd\">\r\n\t<modelVersion>4.0.0</modelVersion>\r\n\r\n\t<groupId>de.example</groupId>\r\n\t<artifactId>FakeProject</artifactId>\r\n\t<version>1.0.0</version>\r\n\r\n\t<build>\r\n\t\t<plugins>\r\n\t\t\t<plugin>\r\n\t\t\t\t<groupId>com.zenjava</groupId>\r\n\t\t\t\t<artifactId>javafx-maven-plugin</artifactId>\r\n\t\t\t\t<version>8.5.0</version>\r\n\t\t\t\t<configuration>\r\n\t\t\t\t\t<appName>${project.name}</appName>\r\n\t\t\t\t\t<mainClass>de.does.not.Exist</mainClass>\r\n\t\t\t\t\t<vendor>Example</vendor>\r\n\t\t\t\t\t<bundleArguments>\r\n\t\t\t\t\t\t<runtime />\r\n\t\t\t\t\t</bundleArguments>\r\n\t\t\t\t\t<jfxMainAppJarName>${project.build.finalName}.jar</jfxMainAppJarName>\r\n\t\t\t\t</configuration>\r\n\t\t\t</plugin>\r\n\t\t</plugins>\r\n\t</build>\r\n\r\n</project>\r\n````\r\n(No JRE should be bundled)\r\n\r\nAnd build that project using `mvn jfx:native`.\r\nThe build will be successful, but if I try to execute the generated file using \r\n`./target/jfx/native/FakeProject/FakeProject `:\r\n\r\n````\r\nFakeProject Failed to locate JNI_CreateJavaVM\r\nFakeProject Failed to launch JVM\r\n````\r\nOr is that file not supposed to be executed in the first place?\r\n\r\n\r\nI'm not sure whether this helps pointing out the issue:\r\n\r\n`target/jfx/native/FakeProject/app/FakeProject.cfg`\r\n````\r\napp.runtime=\r\napp.mainjar=FakeProject-1.0.0.jar\r\napp.version=1.0\r\napp.mainclass=de/does/not/Exist\r\napp.classpath=\r\napp.preferences.id=de/does/not\r\napp.identifier=de.does.not\r\n````\r\n\r\nRunning the jar directly works as expected \r\n(`java -jar target/jfx/app/FakeProject-1.0.0.jar`).\r\n\r\nMy system setup:\r\n**OS:**\r\n````\r\nUbuntu 14.04 LTS (64bti)\r\n````\r\n\r\n**Java:**\r\n````\r\njava version \"1.8.0_101\"\r\nJava(TM) SE Runtime Environment (build 1.8.0_101-b13)\r\nJava HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)\r\n````\r\n\r\n**Maven:**\r\n````\r\nApache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T17:41:47+01:00)\r\nMaven home: /home/example/Apps/apache-maven-3.3.9\r\nJava version: 1.8.0_101, vendor: Oracle Corporation\r\nJava home: /usr/lib/jvm/java-8-oracle/jre\r\nDefault locale: en_US, platform encoding: UTF-8\r\nOS name: \"linux\", version: \"3.13.0-79-generic\", arch: \"amd64\", family: \"unix\"\r\n````\r\n\r\nThis bug occurs also on Java 1.8.0_91-b14.\r\n\r\nMaybe this issue is related: https://github.com/javafx-maven-plugin/javafx-maven-plugin/issues/167"},"comment":{"url":"https://api.github.com/repos/javafx-maven-plugin/javafx-maven-plugin/issues/comments/237895377","html_url":"https://github.com/javafx-maven-plugin/javafx-maven-plugin/issues/222#issuecomment-237895377","issue_url":"https://api.github.com/repos/javafx-maven-plugin/javafx-maven-plugin/issues/222","id":237895377,"user":{"login":"FibreFoX","id":1042579,"avatar_url":"https://avatars.githubusercontent.com/u/1042579?v=3","gravatar_id":"","url":"https://api.github.com/users/FibreFoX","html_url":"https://github.com/FibreFoX","followers_url":"https://api.github.com/users/FibreFoX/followers","following_url":"https://api.github.com/users/FibreFoX/following{/other_user}","gists_url":"https://api.github.com/users/FibreFoX/gists{/gist_id}","starred_url":"https://api.github.com/users/FibreFoX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FibreFoX/subscriptions","organizations_url":"https://api.github.com/users/FibreFoX/orgs","repos_url":"https://api.github.com/users/FibreFoX/repos","events_url":"https://api.github.com/users/FibreFoX/events{/privacy}","received_events_url":"https://api.github.com/users/FibreFoX/received_events","type":"User","site_admin":false},"created_at":"2016-08-05T16:21:04Z","updated_at":"2016-08-05T16:21:04Z","body":"As the native launcher is part of the JDK, how does this have anything to do with the javafx-maven-plugin? ;)\r\n\r\n**Please make sure to provide some project where the bug is reproducable.** And please make sure you are running maven not inside some IDE, because the IDE might change the used JDK-version."}}
{"actor":{"display_login":"FibreFoX"}}