Authoring Applet not working on MAC

Oxygen general issues.
neon096
Posts: 45
Joined: Wed May 23, 2012 11:20 am

Authoring Applet not working on MAC

Post by neon096 »

I'm having problems with running the authoring applet on a MAC. Whereby the screen isn't showing but the popup window is when I right click where the applet should be displaying. The JNLP file of the resources is pasted below. Also the applet at http://www.oxygenxml.com/demo/AuthorDem ... assic.html doesn't appear to be working for Mac.

Code: Select all


<resources>
<!-- Application Resources -->
<j2se java-vm-args="-Xmx256m -XX:MaxPermSize=80m -Xss512k" version="1.6+"/>

<!-- The main jar file -->
<jar href="lib/${project.name}-${project.version}.jar" main="true"/>
<jar href="lib/jna-${jna.version}.jar"/>
<jar href="lib/oxygen-${oxygen.version}.jar"/>
<jar href="lib/token-markers-${oxygen.version}.jar"/>
<jar href="lib/resolver-${oxygen.version}.jar"/>
<jar href="lib/xercesImpl-${oxygen.version}.jar"/>
<jar href="lib/saxon9he-${oxygen.version}.jar"/>
<!-- Spring stuff -->
<jar href="lib/spring-aop-${spring.framework.version}.jar"/>
<jar href="lib/spring-asm-${spring.framework.version}.jar"/>
<jar href="lib/spring-beans-${spring.framework.version}.jar"/>
<jar href="lib/spring-context-${spring.framework.version}.jar"/>
<jar href="lib/spring-core-${spring.framework.version}.jar"/>
<jar href="lib/spring-expression-${spring.framework.version}.jar"/>
<jar href="lib/log4j-${log4j.version}.jar"/>
<jar href="lib/commons-logging-1.1.1.jar"/>

<!-- Framework -->
<jar href="resources/frameworks.zip-${timestamp}.jar" />
<jar href="resources/options.zip-${timestamp}.jar"/>

<!-- Other libs -->
<jar href="lib/jide-oss-${jidesoft.version}.jar"/>
<jar href="lib/batik-${batik.version}.jar"/>
<jar href="lib/jeuclid-core-${jeuclid.version}.jar"/>
<jar href="lib/hunspell-dicts-${hunspell.version}.jar"/>
<jar href="lib/commons-io-${commons.io.version}.jar"/>

</resources>

<!-- Windows -->
<resources os="Windows" arch="x86">
<nativelib href="lib/hunspell-win-x86-32-${hunspell.version}.jar"/>
</resources>
<resources os="Windows" arch="amd64">
<nativelib href="lib/hunspell-win-x86-64-${hunspell.version}.jar"/>
</resources>
<!-- MAC -->
<resources os="Mac">
<nativelib href="lib/libhunspell-darwin-x86-32-${hunspell.version}.jar"/>
</resources>
<resources os="Mac">
<nativelib href="lib/libhunspell-darwin-x86-64-${hunspell.version}.jar"/>
</resources>
<resources os="Mac">
<nativelib href="lib/darwin-${hunspell.version}.jar"/>
</resources>
<!-- Linux -->
<resources os="Linux" arch="x86">
<nativelib href="lib/hunspell-linux-x86-32-${hunspell.version}.jar"/>
</resources>
<resources os="Linux" arch="x86_64">
<nativelib href="lib/hunspell-linux-x86-64-${hunspell.version}.jar"/>
</resources>
<resources os="Linux" arch="amd64">
<nativelib href="lib/hunspell-linux-x86-64-${hunspell.version}.jar"/>
</resources>

<resources os="Linux" arch="i386">
<!-- Use 32-bit X11 libs on 64-bit systems (Ubuntu) -->
<property name="jna.library.path" value="/usr/X11R6/lib:/usr/lib32:/usr/lib"/>
<nativelib href="lib/linux-i386.jar"/>
</resources>
<resources os="Linux" arch="amd64">
<property name="jna.library.path" value="/usr/X11R6/lib:/usr/lib"/>
<nativelib href="lib/linux-amd64.jar"/>
</resources>
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: Authoring Applet not working on MAC

Post by Radu »

Hi Neal,

The behavior of the applet + JNLP on MAC OSX is exactly as you described. It was broken in one of the Java updates about one year ago and they never fixed it, there is a bug registered for this on the Apple issues list.
Also the applet at http://www.oxygenxml.com/demo/AuthorDem ... assic.html doesn't appear to be working for Mac.
We introduced the classic applet approach (the alternative which references the JAR libraries directly in the HTML page) specially for this problem and the classic applet should work on Mac OSX and is used by several user groups this way.
If it does not work on your MAC, could you enable the Java console and maybe give me some more details, maybe a stack trace?
You have the Java plugin enabled, right?
This topic should give more details about enabling the Java console:

http://www.oxygenxml.com/doc/ug-oxygen/ ... oting.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
neon096
Posts: 45
Joined: Wed May 23, 2012 11:20 am

Re: Authoring Applet not working on MAC

Post by neon096 »

Do you know the bug number (URL) so we can track it. Also I'll look to see if the Oracle bug list has this since they took over the Mac java support.
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: Authoring Applet not working on MAC

Post by Radu »

Hello Neal,

The original bug posted by one of my colleagues on the Apple bugs list is this one: ID# 9848700. I do not know if there is anything public though, only the owner seems to be allowed to see it.

Most of our CMS clients have a switch in the HTML page which presents the classic applet if the client's browser reports it is on Mac OSX.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply