Re: Javafxpackager and splash screen

2014-04-12 Thread Michael Hall
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?

Michael Hall

trz nio.2 for OS X http://www195.pair.com/mik3hall/index.html#trz

HalfPipe Java 6/7 shell app http://www195.pair.com/mik3hall/index.html#halfpipe

AppConverter convert Apple jvm to openjdk apps 
http://www195.pair.com/mik3hall/index.html#appconverter






Re: error: package com.apple.eawt does not exist

2014-04-12 Thread Raymond Howie
Thanks Jon, I just tried that and it does let it compile.  I use NetBeans so I 
included that in the project properties as a compiler option.  Although it does 
compile, NetBeans is still showing the imports as in error.  Is there any easy 
way to get Netbeans to do the same thing?

Thanks,
Raymond

On 12 Apr 2014, at 20:06, Jonathan Gibbons jonathan.gibb...@oracle.com wrote:

 On 04/12/2014 11:44 AM, Raymond Howie wrote:
 I’ve installed Java 8 from the Oracle site onto my Mac which is running 
 10.9.2  Any of my apps which use the Apple Java Extensions come up with this 
 error message.
 
 I’ve had a look in rt.jar and the classes are listed in there.  I even tried 
 building OpenJDK 8 from the source but get the same error.
 
 Any idea what is going on or how I can fix it?
 
 Raymond Howie
 
 
 By default, javac does not read classes from rt.jar. It reads then from a 
 separate symbol file, which only contains standard API.
 
 You might try disabling the mechanism with unsupported javac option 
 -XDignore.symbol.file=true and see if that fixes your issues.
 
 -- Jon