Servoy application.execute Java 7 Preview Bug

Questions, answers, tips and ideas on Servoy Client

Servoy application.execute Java 7 Preview Bug

Postby david.pearce » Mon Dec 23, 2013 12:40 pm

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
david.pearce
 
Posts: 36
Joined: Thu Jan 31, 2013 11:21 am

Re: Servoy application.execute Java 7 Preview Bug

Postby Harjo » Mon Dec 23, 2013 2:45 pm

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.
Harjo Kompagnie
Direct ICT / Servoy Hosting / ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
User avatar
Harjo
 
Posts: 4307
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Servoy application.execute Java 7 Preview Bug

Postby david.pearce » Mon Dec 23, 2013 2:58 pm

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
david.pearce
 
Posts: 36
Joined: Thu Jan 31, 2013 11:21 am

Re: Servoy application.execute Java 7 Preview Bug

Postby Harjo » Mon Dec 23, 2013 4:10 pm

I'm really happy with Java 7 on OSX!! At least if you use your own (official) signing certificate with the signtester!
Harjo Kompagnie
Direct ICT / Servoy Hosting / ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
User avatar
Harjo
 
Posts: 4307
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Re: Servoy application.execute Java 7 Preview Bug

Postby Harjo » Fri Feb 07, 2014 3:24 pm

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!
Harjo Kompagnie
Direct ICT / Servoy Hosting / ServoyCamp
Servoy Certified Developer
Servoy Valued Professional
SAN Developer
User avatar
Harjo
 
Posts: 4307
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands


Return to Servoy Client

Who is online

Users browsing this forum: No registered users and 2 guests