Page 1 of 1

Servoy application.execute Java 7 Preview Bug

PostPosted: Mon Dec 23, 2013 12:40 pm
by david.pearce
Has anyone else found that Preview does not open automatically in Java 7 when using the file open statement.

application.executeProgram('open', _tempFile);

This appears to be a java 7 issues as it works in Mavericks on an old machine with Java 6, but not on new macs.

I get the error:

23/12/2013 10:37:31.540 Preview[696]: No Info.plist file in application bundle or no NSPrincipalClass in the Info.plist file, exiting
23/12/2013 10:37:31.542 com.apple.launchd.peruser.502[149]: (com.apple.Preview.4256[696]) Exited with code: 1

It works fine if preview is already running!

Any tips on how to sort it, as its better for clients not to tell them they must have preview running.

David

Re: Servoy application.execute Java 7 Preview Bug

PostPosted: Mon Dec 23, 2013 2:45 pm
by Harjo
Yes, we have/had the exact same issue!

We worked around it by using the new plugins.file.openFile(JSFile) in Servoy 7.3
This works automatically cross platform.

Re: Servoy application.execute Java 7 Preview Bug

PostPosted: Mon Dec 23, 2013 2:58 pm
by david.pearce
Thanks Harjo. We will look to upgrade i guess from 6.0 at some point to fix, but its nice to know its not just me!

Java 1.6.18 will go down in history as the last stable realease of Java!!!! then Oracle did their worst

Re: Servoy application.execute Java 7 Preview Bug

PostPosted: Mon Dec 23, 2013 4:10 pm
by Harjo
I'm really happy with Java 7 on OSX!! At least if you use your own (official) signing certificate with the signtester!

Re: Servoy application.execute Java 7 Preview Bug

PostPosted: Fri Feb 07, 2014 3:24 pm
by Harjo
Today we came acrros the same issue, that when Preview on OSX was not open, we could not open or launch a pdf file.
not with: application.executeProgram and not with plugins.file.openFile

We googled around and saw this solution: http://mail.openjdk.java.net/pipermail/ ... 05354.html

By deleting the stub the Web Start app saves in ~/Library/Application Support/Oracle/Java/Deployment/cache/6.0/bundles, the new one it makes at the next launch can open Preview just fine.


This worked for us!