VerySimple Developer Blog
Technical Tips, Tricks and Rants.
 
Oct
18
Filed Under (Announcements, OSX) by Jason on 18-10-2007

OSX 10.5 Leopard may show the following error in the console when opening certain Java applications in Rosetta:

JavaVM FATAL: Java for ppc cannot run in this configuration.
JavaVM FATAL: Please consult documentation.

This error appears in PPC applications that have a Java component and are trying to use an older version of the Java runtime. Apple seems to have not included the complete 1.3.1 JDK with Leopard, instead the 1.3.1 folder simply contains an alias to the Java application launcher.

A patch file LeopardJavaPatch.zip includes a replacement for the 1.3.1 JDK that resolves the issue in some cases. Installation is easy - simply unzip the archive and follow the instructions to update your 1.3.1 JDK folder.

If this doesn’t solve your problem, you can also try downgrading the JDK using the instructions included in the “Advanced” section of the LeopardJavaPatch.zip ReadMe. Or alternatively macoshints.com provides a script to manage your system JDK settings.

Please note that this patch only fixes issues for Leopard. If you are running Tiger or an earlier version, then you are more likely to solve your problem by downgrading the JDK (see above).

If you have any comments or additional information about this error, please feel free to leave a comment.

 

Comments:
4 Comments posted on "Leopard error: Java for ppc cannot run in this configuration"
Florian on May 7th, 2008 at 9:11 am #

Hi,

the link to the patch does not work anymore. There’s a new version of the patch available at http://www.pcguild.com/updates/LeopardJavaPatch_V2.zip

Cheers


Jason on May 13th, 2008 at 12:56 am #

Thanks Florian - I updated the link in my post. I should have remembered to update it since I work at PC Guild and am the person who created the patch! FYI, anybody who is trying to install the new patch and gets a permission error - you now have to close all programs (including your browser) before installing due to some Java files that are in use when your browser is open.


Peter on June 13th, 2008 at 7:04 pm #

Hmm, I am curious what is in the patch now. I thought I could just copy the 1.3.1 folder from Tiger to Leopard but when I tried that it didn’t work. Your patch also install a folder called ‘A’, what’s the magic in it?

Thanks for sharing.


Jason on July 3rd, 2008 at 12:45 am #

Hey Peter, the version numbered folders are the Java core classes, whereas the “A” folder contains the actual Java runtime implementation for OSX.

Apple releases a system update around april ‘08 which added Java 6 and updated the “A” folder - which broke the backwards compatibility with Java 1.3.1. So the V2 patch simply contains the “A” folder exactly as it was just prior to that system update.

So V1 of the patch was completely safe because it was just adding some missing files. V2 actually downgrades the runtime. Unfortunately I can imagine this will eventually cause some problems with Java 6 applications, but thus far I have not heard any problems reported.


Post a comment

Name: 
Email: 
URL: 
Comments: 
Close
  • Social Web

NOTE: Email is disabled

E-mail It