{"action":"created","issue":{"url":"https://api.github.com/repos/libgdx/packr/issues/93","repository_url":"https://api.github.com/repos/libgdx/packr","labels_url":"https://api.github.com/repos/libgdx/packr/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/libgdx/packr/issues/93/comments","events_url":"https://api.github.com/repos/libgdx/packr/issues/93/events","html_url":"https://github.com/libgdx/packr/issues/93","id":207227991,"number":93,"title":"Windows: Exception in thread \"main\" java.lang.NullPointerException","user":{"login":"andrea-marini","id":714052,"avatar_url":"https://avatars.githubusercontent.com/u/714052?v=3","gravatar_id":"","url":"https://api.github.com/users/andrea-marini","html_url":"https://github.com/andrea-marini","followers_url":"https://api.github.com/users/andrea-marini/followers","following_url":"https://api.github.com/users/andrea-marini/following{/other_user}","gists_url":"https://api.github.com/users/andrea-marini/gists{/gist_id}","starred_url":"https://api.github.com/users/andrea-marini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrea-marini/subscriptions","organizations_url":"https://api.github.com/users/andrea-marini/orgs","repos_url":"https://api.github.com/users/andrea-marini/repos","events_url":"https://api.github.com/users/andrea-marini/events{/privacy}","received_events_url":"https://api.github.com/users/andrea-marini/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-02-13T14:07:05Z","updated_at":"2017-02-15T09:30:26Z","closed_at":null,"body":"I'm trying packaging a jar on windows 7 64 (also tried windows XP) with the following parameters:\r\n\r\njava -jar packr.jar --jdk openjdk-1.7.0-u80-unofficial-windows-i586-image.zip --executable myApp --classpath myapp.jar --mainclass it.test.myapp.Main --vmargs Xmx1G --minimizejre soft --output \"C:\\Users\\user\\Desktop\\output\\\"\r\n\r\nand I'm returned no matter what the error:\r\n\r\nCleaning output directory 'C:\\Users\\user\\Desktop\\output' ...\r\nException in thread \"main\" java.lang.NullPointerException\r\n        at com.badlogicgames.packr.Packr.copyExecutableAndClasspath(Packr.java:1\r\n24)\r\n        at com.badlogicgames.packr.Packr.pack(Packr.java:55)\r\n        at com.badlogicgames.packr.Packr.main(Packr.java:308)\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/libgdx/packr/issues/comments/279960565","html_url":"https://github.com/libgdx/packr/issues/93#issuecomment-279960565","issue_url":"https://api.github.com/repos/libgdx/packr/issues/93","id":279960565,"user":{"login":"andrea-marini","id":714052,"avatar_url":"https://avatars.githubusercontent.com/u/714052?v=3","gravatar_id":"","url":"https://api.github.com/users/andrea-marini","html_url":"https://github.com/andrea-marini","followers_url":"https://api.github.com/users/andrea-marini/followers","following_url":"https://api.github.com/users/andrea-marini/following{/other_user}","gists_url":"https://api.github.com/users/andrea-marini/gists{/gist_id}","starred_url":"https://api.github.com/users/andrea-marini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrea-marini/subscriptions","organizations_url":"https://api.github.com/users/andrea-marini/orgs","repos_url":"https://api.github.com/users/andrea-marini/repos","events_url":"https://api.github.com/users/andrea-marini/events{/privacy}","received_events_url":"https://api.github.com/users/andrea-marini/received_events","type":"User","site_admin":false},"created_at":"2017-02-15T09:30:26Z","updated_at":"2017-02-15T09:30:26Z","body":"I tried with --verbose option, now it works flawlessly creating the directory structure as you said (hoped all could be embedded in the .exe actually but nevertheless), below the result\r\n\r\n> java -jar packr.jar --platform windows64 --jdk openjdk-1.7.0-u80-unofficial-windows-i586-image.zip --executable myApp --classpath myApp.jar --mainclass it.test.myapp.Main --vmargs Xmx1G --minimizejre soft --verbose --output C:\\Users\\user\\Desktop\\output\\\r\n> Cleaning output directory 'C:\\Users\\user\\Desktop\\output' ...\r\n> Copying executable ...\r\n> Copying classpath(s) ...\r\n> Unpacking JRE ...\r\n> Copying resources ...\r\n> Minimizing JRE ...\r\n>    Removing files and directories in profile 'soft' ...\r\n>    Unpacking 'C:\\Users\\user\\Desktop\\output\\jre\\lib\\rt.jar' ...\r\n>    Repacking 'C:\\Users\\user\\Desktop\\output\\jre\\lib\\rt.jar' ...\r\n>    56215 kb -> 25134 kb\r\n>    No file or directory 'C:\\Users\\user\\Desktop\\output\\jre\\lib\\rhino.jar' found\r\n>    Removing 'C:\\Users\\user\\Desktop\\output\\jre\\bin\\java-rmi.exe'\r\n>    Removing 'C:\\Users\\user\\Desktop\\output\\jre\\bin\\java.exe'\r\n>    Removing 'C:\\Users\\user\\Desktop\\output\\jre\\bin\\javaw.exe'\r\n>    Removing 'C:\\Users\\user\\Desktop\\output\\jre\\bin\\keytool.exe'\r\n>    Removing 'C:\\Users\\user\\Desktop\\output\\jre\\bin\\kinit.exe'\r\n>    Removing 'C:\\Users\\user\\Desktop\\output\\jre\\bin\\klist.exe'\r\n>    Removing 'C:\\Users\\user\\Desktop\\output\\jre\\bin\\ktab.exe'\r\n>    Removing 'C:\\Users\\user\\Desktop\\output\\jre\\bin\\orbd.exe'\r\n>    Removing 'C:\\Users\\user\\Desktop\\output\\jre\\bin\\pack200.exe'\r\n>    Removing 'C:\\Users\\user\\Desktop\\output\\jre\\bin\\policytool.exe'\r\n>    Removing 'C:\\Users\\user\\Desktop\\output\\jre\\bin\\rmid.exe'\r\n>    Removing 'C:\\Users\\user\\Desktop\\output\\jre\\bin\\rmiregistry.exe'\r\n>    Removing 'C:\\Users\\user\\Desktop\\output\\jre\\bin\\servertool.exe'\r\n>    Removing 'C:\\Users\\user\\Desktop\\output\\jre\\bin\\tnameserv.exe'\r\n>    Removing 'C:\\Users\\user\\Desktop\\output\\jre\\bin\\unpack200.exe'\r\n>    Removing 'C:\\Users\\user\\Desktop\\output\\jre\\bin\\client'\r\n> Removing foreign platform libs ...\r\n>    Unpacking 'myApp.jar' ...\r\n>    Removing 'C:\\Users\\user\\Desktop\\output\\myApp.jar.tmp\\libswt-atk-gtk-4332.so'\r\n>    Removing 'C:\\Users\\user\\Desktop\\output\\myApp.jar.tmp\\libswt-awt-gtk-4332.so'\r\n>    Removing 'C:\\Users\\user\\Desktop\\output\\myApp.jar.tmp\\libswt-cairo-gtk-4332.so'\r\n>    Removing 'C:\\Users\\user\\Desktop\\output\\myApp.jar.tmp\\libswt-glx-gtk-4332.so'\r\n>    Removing 'C:\\Users\\user\\Desktop\\output\\myApp.jar.tmp\\libswt-gnome-gtk-4332.so'\r\n>    Removing 'C:\\Users\\user\\Desktop\\output\\myApp.jar.tmp\\libswt-gtk-4332.so'\r\n>    Removing 'C:\\Users\\user\\Desktop\\output\\myApp.jar.tmp\\libswt-mozilla-gtk-4332.so'\r\n>    Removing 'C:\\Users\\user\\Desktop\\output\\myApp.jar.tmp\\libswt-pi-gtk-4332.so'\r\n>    Removing 'C:\\Users\\user\\Desktop\\output\\myApp.jar.tmp\\libswt-pi3-gtk-4332.so'\r\n>    Removing 'C:\\Users\\user\\Desktop\\output\\myApp.jar.tmp\\libswt-webkit-gtk-4332.so'\r\n>    Removing 'C:\\Users\\user\\Desktop\\output\\myApp.jar.tmp\\libswt-xpcominit-gtk-4332.so'\r\n>    Removing 'C:\\Users\\user\\Desktop\\output\\myApp.jar.tmp\\libswt-xulrunner-fix.so'\r\n>    Removing 'C:\\Users\\user\\Desktop\\output\\myApp.jar.tmp\\libswt-xulrunner-gtk-4332.so'\r\n>    Removing 'C:\\Users\\user\\Desktop\\output\\myApp.jar.tmp\\META-INF\\native\\libnetty-transport-native-epoll.so'\r\n>    Removing 'C:\\Users\\user\\Desktop\\output\\myApp.jar.tmp\\META-INF\\native\\linux32\\libjansi.so'\r\n>    Removing 'C:\\Users\\user\\Desktop\\output\\myApp.jar.tmp\\META-INF\\native\\linux64\\libjansi.so'\r\n>    Repacking 'myApp.jar' ...\r\n>    105192 kb -> 104690 kb\r\n> Done!\r\n> \r\n\r\nwhen I execute myapp.exe howver I get a crash error and the windows details as below:\r\n\r\n> Firma problema:\r\n>   Nome evento problema:\tAPPCRASH\r\n>   Nome applicazione:\tmyapp.exe\r\n>   Versione applicazione:\t0.0.0.0\r\n>   Timestamp applicazione:\t5841340c\r\n>   Nome modulo con errori:\tmyapp.exe\r\n>   Versione modulo con errori:\t0.0.0.0\r\n>   Timestamp modulo con errori:\t5841340c\r\n>   Codice eccezione:\tc0000005\r\n>   Offset eccezione:\t000000000000410e\r\n>   Versione SO:\t6.1.7600.2.0.0.256.49\r\n>   ID impostazioni locali:\t1040\r\n>   Informazioni aggiuntive 1:\td070\r\n>   Ulteriori informazioni 2:\td07006194d9a3ac80daa0485098b036f\r\n>   Ulteriori informazioni 3:\t09e7\r\n>   Ulteriori informazioni 4:\t09e73841bd27f12a27b059f968cb9617\r\n> \r\n> \r\n> "}}
{"actor":{"display_login":"andrea-marini"}}