You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

After installing "Java for OS X 2013-004" update, Java apps don't work anymore as expected

After installing "Java for OS X 2013-004" update, Java apps don't work anymore as expected.


Windows of Swing apps don't display all GUI elements.


After replacing System/Library/Java from a Time MAchine Backup, everything works normal again.


Is this update corrupted?

Java-OTHER, OS X Mountain Lion (10.8.4), Java for OS X 2013-004

Posted on Jun 18, 2013 3:19 PM

Reply
40 replies

Jun 21, 2013 3:44 AM in response to hpp23

I agree with some comments on here that Java is basically a mess

in and of itself!


Been forced to use Java based applications over the years and found

more often then not, ANY Java update would break applications. This

has not been limited to just Mac platform, it happens on Windows and Linux

machines as well!


So, the ultimate fault lies in the miserable mess that is Java and its total

lack of backward compatibility!

Jun 21, 2013 6:34 PM in response to hpp23

I have the same problem, only difference is that I am running OS X 10.6.

There is an update that fixes the OS X 10.7 Java update (http://support.apple.com/kb/DL1572), but as far as I can tell there isn't a update available (yet) for any earlier versions 😟


Geneious indeed has been great and very fast in coming up with an update that fixes the issues caused by yesterdays Java update.

Jun 22, 2013 12:45 AM in response to hpp23

I have changed all my Java Swing Applications to make them run with the "Java for OS X 2013-004" update:


This solves the GUI problems if you are able to edit and compile the Java source:


Within the "main" class that contains:


public static void main(String[] args) { ... }


change this main function into


private static void createAndShowGUI(String[] args) { ... }



with main's function body.


Now add a new main function, as follows:


public static void main(final String[] args) { javax.swing.SwingUtilities.invokeLater(new Runnable() { @Override public void run() { createAndShowGUI(args); } }); }

Jul 28, 2013 12:22 PM in response to Tobit

I was having trouble with a particular Java application before I installed the above Java update. It moved me from Java(TM) SE Runtime Environment (build 1.6.0_51-b11-457-11M4508) to Java(TM) SE Runtime Environment (build 1.6.0_51-b11-457-11M4509).


The application works now, but I still get these error messages in Console.app:


7/28/13 2:20:50.484 PM JavaApplicationStub: CGContextGetCTM: invalid context 0x0

7/28/13 2:20:50.484 PM JavaApplicationStub: CGContextSetBaseCTM: invalid context 0x0


(and there are more of these ...).


Does anyone know why?

After installing "Java for OS X 2013-004" update, Java apps don't work anymore as expected

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.