On Sun, Apr 6, 2014 at 9:02 PM, Michael Hall <mik3h...@gmail.com> wrote:
> On Apr 6, 2014, at 2:10 AM, Abu Abdullah <falcon.sh...@gmail.com> wrote: > > > > > > > I'm using scripting to do this and not by AppBundler. > > Once i launch the application, it didn't recognize its location and hence > > other folders are not seen. NullPointerException are thrown because of > this. > > > > I tried many things without successful e.g. -Duser.dir in the info.plist, > > copying the files to many places in root, in MacOS folder, in Resources > > folder, in Resources/Java folder. I'm not able to launch it. I'm > > troubleshooting by running ./JavaAppLauncher > > Did you update Info.plist to indicate the embedded JRE? > yes, there is no issue with the embedded JRE, it is detected. What do you mean by the Launcher.jar has no classes? How does it work > without classes? > Where are the classes? > Launcher.jar is just a wrapper instead of executing through the command line. it has only manifest.mf file with Main-Class: classes.myapp and other options. the classes are in a folder in the same directory. > user.dir for app bundler defaults to your user home directory. Trying to > access anything off that inside your application bundle can't really be > counted on. this is my problem, I'm not able to see other folders in the same /Contents/Java. it seems the classes are executed as part of the classpath and not the working directory that it should be in. i will try now with Joe suggestion to go with the new fx packager, it is certainly the way forward.