X

Tutorial: Solving Java problems: Improper rendering/function�

Tutorial: Solving Java problems: Improper rendering/function 

CNET staff
2 min read

If you are experiencing issues where some Java applets, including embedded Web content begin to render or function improperly, there are a number of potential workarounds.

The following is a series of escalating (in terms of tediousness) steps, culminating in a full deletion and re-establishment of the problematic user account.

Delete caches, .plist files First make sure that corrupt caches or problematic .plist files are not to blame. Delete the following files/folders:

  • ~/Library/Preferences/java.plist
  • ~/Library/Preferences/com.apple.java.JavaPreferences.plist
  • ~/Library/Preferences/com.apple.java.plugin.properties[...]
  • ~/Library/Preferences/com.apple.java.util.prefs.plist
  • ~/Library/Preferences/com.apple.plugin.settings.java.plist
  • ~/Library/Preferences/Java Plugin certificates[...]
  • ~/Library/Caches/Java/cache

In addition, you can use the following steps to clear potentially problem-causing caches:

If you have Java SE 5.0 Release 4 installed, navigate to Applications/Utilities/Java/J2SE 5.0 and launch the "Java Cache Viewer." Delete appropriate caches.

Log out then back in and check for persistence of the issue(s).

If you have Java 1.4.2 and 1.3.1 as the latest version installed, use this process:

  1. Open the application "Java 1.4.2 Plugin Settings" located in Applications/Utilities/Java on a normal Mac OS X installation.
  2. Click the "Cache" tab
  3. Click "Clear"
  4. Repeat this process for the "Java 1.3.1 Plugin Settings" application also located in Applications/Utilities/Java

Update Java embedding plug-in Some Java problems may be resolved by updating to the latest edition of the Java Embedding Plugin (JEP) 0.9.5 (JavaEmbeddingPlugin.bundle and MRJPlugin.plugin).

This can be accomplished by following these instructions to install JEP 0.9.5 to the /Library/Internet Plug-Ins/ directory.

You must then then remove the bundled JEP files (JavaEmbeddingPlugin.bundle and MRJPlugin.plugin) from the Contents/MacOS/plugins/ directory inside the Firefox application package. This can be accomplished by holding down the control key; clicking Firefox and selecting "Show Package Contents"; then deleting the aforementioned files.

Update prebinding Some Java issues can be resolved by updating prebinding. You can perform this procedure by opening Terminal (located in Applications/Utilities/) and typing this command, followed by the return key:
  • sudo update_prebinding -root / -force

Re-install Java Try downloading and re-installing the latest iteration of Apple's Java support packages, J2SE 5.0 Release 4 PowerPC or J2SE 5.0 Release 4 Intel, as well as Java 1.3.1 and 1.4.2 Release 2.

Delete then re-establish user account Create a new user account, per our instructions in the tutorial "Common workaround: Create a new user account." Check for persistence of the issue under the newly created account.

If the problem disappears, you can then move pertinent items back into the account (per the aforementioned tutorial).

Like what you've found in this tutorial? Get more troubleshooting guidance (updated daily) by subscribing to MacFixIt Pro.

Resources

  • instructions
  • JEP 0.9.5
  • J2SE 5.0 Release 4 PowerPC
  • J2SE 5.0 Release 4 Intel
  • Java 1.3.1 and 1.4.2 Relea...
  • "Common workaround: Create a new user account."
  • subscribing to MacFixIt Pr...
  • More from Tutorials