On Sat, Apr 12, 2014 at 1:52 PM, Michael Hall <mik3h...@gmail.com> wrote:
> On Apr 11, 2014, at 9:38 PM, Abu Abdullah <falcon.sh...@gmail.com> wrote: > > On Sat, Apr 12, 2014 at 6:19 AM, Michael Hall <mik3h...@gmail.com> wrote: > >> >> i tried even the absolute path in case APP_ROOT is not supported but not >> working. >> >> >> I seem to remember support for something like this being added. But am >> not sure. You could check the source. >> >> > I tried also with jdk1.8.0 u20 as well but it is the same version > javafxpackager 2.2 > > > I looked at the last appbundler source I have downloaded, which may not be > current. But saw no support for APP_ROOT in main.m. > To be sure you could download the latest and check yourself. > From this, APP_ROOT would not work, you might show how you specified > fullpath? Path wrong could still be a reason it doesn't work that doesn't > mean a bug. > > > yes it runs through command line and I'm trying with both 1.8.0 and u20 > > > In the most current version of the source that I have, again possibly not > the actual latest - then it should work application launched. > The source has... > > // Get the VM options > NSArray *options = [infoDictionary objectForKey:@JVM_OPTIONS_KEY]; > if (options == nil) { > options = [NSArray array]; > } > > ... > > // Initialize the arguments to JLI_Launch() > int argc = 1 + [options count] + 2 + [arguments count] + 1; > char *argv[argc]; > > int i = 0; > argv[i++] = commandName; > argv[i++] = strdup([classPath UTF8String]); > argv[i++] = strdup([libraryPath UTF8String]); > > for (NSString *option in options) { > argv[i++] = strdup([option UTF8String]); > } > > So it just copies in the options, no editing, skipping or additions. > Should be just like command line. > > So if path is good, and it doesn't correctly handle the splash option, > then something is broken somehow that isn't broken in command line and you > probably have a bug report? > > Can you please try the following test sample on your machine. ideally it should work but it is not in my case: https://drive.google.com/file/d/0B6nSYRwywQUoNzV5RHh5bWl6amc/edit?usp=sharing the code is compiled with 1.8, you just need to modify the splash path in your case.