1 2 Previous Next 26 Replies Latest reply: Jan 28, 2013 12:50 PM by TarunRally RSS

    Java 7 Update 9 on OS X Breaks Java Webstart Application

    969294
      Hello,

      Per a request in another thread
      Java 7 Update 9 on OS X Breaks Java Webstart Application
      am opening a new thread with requested information.

      Since I have installed Java 7u9, I have not been able to launch java via double-clicking on a downloaded jnlp file. This is true with multiple jnlp
      files from different source. Those sources are all in RFC 1918 space so not available to the public internet.
      This is how I have been using java for many years.
      I previously had Apple version of Java installed when I upgraded to Mac OS X 10.8. When Oracle's version of Java was released, I installed the JRE and JDK for 7u7.
      Just recently when released, I installed the JRE and JDK for Java 7u9. That is when the jnlp launching problems began. I have cleared the temporary files at each step below.
      I also have the console, debugging anf trace on but none appear when attempting to launch from a jnlp.
      Following the instructions on the Oracle Java website:
      sudo rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
      re-installed JRE 7u7. Did not fix
      sudo rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
      re-installed JRE & JDK 7u7. Did not fix
      sudo rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
      re-installed JRE 7u9. Did not fix
      sudo rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
      re-installed JRE & JDK 7u9. Did not fix
      sudo rm -rf /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
      sudo ln -s /System/Library/Java/Support/CoreDeploy.bundle/Contents/JavaAppletPlugin.plugin /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin
      Did not fix.

      I am able to run Java by launching from a jar file. I was able to get CrashPlan working again by editing the
      /Library/LaunchDaemons/com.crashplan.engine.plist and replacing
      /usr/bin/java
      with
      /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Commands/java

      The host is a MacBookPro running fully patched Mac OS X 10.8.2. All Apple and 3rd party applications are fully patched and up to date.

      Please let me know if I can provide further information.

      Thanks
        • 1. Re: Java 7 Update 9 on OS X Breaks Java Webstart Application
          969294
          More info from previous thread:

          I get the error below in a dialog box if I double -click on a jnlp (my standard way of opening them after downloading them) or
          try to run from the command line as suggested in another post:

          To open this Web Start application, you need to download the Java Runtime Environment
          Click "More Info..." to visit the website fro the Java Runtime Environment.

          The More Info button takes you to the java download page.
          • 2. Re: Java 7 Update 9 on OS X Breaks Java Webstart Application
            854422
            I too had Mac OSX Java 7u7. I had JAWS applications. I did the 7u9 update, but not the apple update. It still works. Have you done the apple update too?
            • 3. Re: Java 7 Update 9 on OS X Breaks Java Webstart Application
              854422
              I just went back to the Mac. I had updated the jar of a JAWS on the server yesterday. Trying to launch now brings down the jar, and the process terminates.

              Have another JAWS. It is unchanged on the server for a while. It runs from icon.

              I know I ran the now broken JAWS right after the 7u9. It must be the download.
              • 4. Re: Java 7 Update 9 on OS X Breaks Java Webstart Application
                969294
                Yes, I did the Apple update for 10.8.x for Java that came out in the last few days.
                • 5. Re: Java 7 Update 9 on OS X Breaks Java Webstart Application
                  817614
                  Are you able to run this http://www.chemaxon.com/marvin/examples/webstart/msketch.jnlp ?
                  This works fine for me with 7u9 installed on Lion.
                  • 6. Re: Java 7 Update 9 on OS X Breaks Java Webstart Application
                    969294
                    No, same error as mentioned above as soon as I attempt to launch the downloaded jnlp.
                    • 7. Re: Java 7 Update 9 on OS X Breaks Java Webstart Application
                      969294
                      Some additional info:

                      $ javaws Downloads/msketch.jnlp
                      No Java runtime present, requesting install.
                      Unable to locate a Java Runtime to invoke.
                      $ which javaws
                      /usr/bin/javaws
                      $ java -version
                      java version "1.7.0_09"
                      Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
                      Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)
                      $ cd /usr/bin
                      $ ls -l | grep -i java
                      lrwxr-xr-x 1 root wheel 82 Oct 18 05:21 appletviewer -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/appletviewer
                      lrwxr-xr-x 1 root wheel 73 Oct 18 05:21 apt -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/apt
                      lrwxr-xr-x 1 root wheel 78 Oct 18 05:21 extcheck -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/extcheck
                      lrwxr-xr-x 1 root wheel 74 Oct 18 05:21 idlj -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/idlj
                      lrwxr-xr-x 1 root wheel 73 Oct 18 05:21 jar -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/jar
                      lrwxr-xr-x 1 root wheel 79 Oct 18 05:21 jarsigner -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/jarsigner
                      lrwxr-xr-x 1 root wheel 74 Oct 18 05:21 java -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java
                      lrwxr-xr-x 1 root wheel 75 Oct 18 05:21 javac -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javac
                      lrwxr-xr-x 1 root wheel 77 Oct 18 05:21 javadoc -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javadoc
                      lrwxr-xr-x 1 root wheel 75 Oct 18 05:21 javah -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javah
                      lrwxr-xr-x 1 root wheel 75 Oct 18 05:21 javap -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javap
                      lrwxr-xr-x 1 root wheel 76 Oct 18 05:21 javaws -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/javaws
                      lrwxr-xr-x 1 root wheel 74 Oct 18 05:21 jcmd -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/jcmd
                      lrwxr-xr-x 1 root wheel 78 Oct 18 05:21 jconsole -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/jconsole
                      lrwxr-xr-x 1 root wheel 73 Oct 18 05:21 jdb -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/jdb
                      lrwxr-xr-x 1 root wheel 74 Oct 18 05:21 jhat -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/jhat
                      lrwxr-xr-x 1 root wheel 75 Oct 18 05:21 jinfo -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/jinfo
                      lrwxr-xr-x 1 root wheel 74 Oct 18 05:21 jmap -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/jmap
                      lrwxr-xr-x 1 root wheel 73 Oct 18 05:21 jps -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/jps
                      lrwxr-xr-x 1 root wheel 80 Oct 18 05:21 jrunscript -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/jrunscript
                      lrwxr-xr-x 1 root wheel 79 Oct 18 05:21 jsadebugd -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/jsadebugd
                      lrwxr-xr-x 1 root wheel 76 Oct 18 05:21 jstack -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/jstack
                      lrwxr-xr-x 1 root wheel 75 Oct 18 05:21 jstat -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/jstat
                      lrwxr-xr-x 1 root wheel 76 Oct 18 05:21 jstatd -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/jstatd
                      lrwxr-xr-x 1 root wheel 79 Oct 18 05:21 jvisualvm -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/jvisualvm
                      lrwxr-xr-x 1 root wheel 77 Oct 18 05:21 keytool -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/keytool
                      lrwxr-xr-x 1 root wheel 82 Oct 18 05:21 native2ascii -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/native2ascii
                      lrwxr-xr-x 1 root wheel 74 Oct 18 05:21 orbd -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/orbd
                      lrwxr-xr-x 1 root wheel 77 Oct 18 05:21 pack200 -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/pack200
                      lrwxr-xr-x 1 root wheel 80 Oct 18 05:21 policytool -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/policytool
                      lrwxr-xr-x 1 root wheel 74 Oct 18 05:21 rmic -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/rmic
                      lrwxr-xr-x 1 root wheel 74 Oct 18 05:21 rmid -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/rmid
                      lrwxr-xr-x 1 root wheel 81 Oct 18 05:21 rmiregistry -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/rmiregistry
                      lrwxr-xr-x 1 root wheel 79 Oct 18 05:21 schemagen -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/schemagen
                      lrwxr-xr-x 1 root wheel 79 Oct 18 05:21 serialver -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/serialver
                      lrwxr-xr-x 1 root wheel 80 Oct 18 05:21 servertool -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/servertool
                      lrwxr-xr-x 1 root wheel 79 Oct 18 05:21 tnameserv -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/tnameserv
                      lrwxr-xr-x 1 root wheel 79 Oct 18 05:21 unpack200 -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/unpack200
                      lrwxr-xr-x 1 root wheel 75 Oct 18 05:21 wsgen -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/wsgen
                      lrwxr-xr-x 1 root wheel 78 Oct 18 05:21 wsimport -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/wsimport
                      lrwxr-xr-x 1 root wheel 73 Oct 18 05:21 xjc -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/xjc
                      $
                      • 8. Re: Java 7 Update 9 on OS X Breaks Java Webstart Application
                        969294
                        Well, pathed a different version which reports to be
                        Java Web Start 1.6.0_37
                        Using JRE version 1.6.0_37-b06-434-11M3909 Java HotSpot(TM) 64-Bit Server VM

                        in the console and does run. The path for that is:
                        /System/Library/Java/Support/Deploy.bundle/Contents/Home/bin/javaws

                        Would like to get the 7u9 to be the one to run and to run by default.
                        This is not an adequate workaround as it not the version I want to be using.
                        • 9. Re: Java 7 Update 9 on OS X Breaks Java Webstart Application
                          817614
                          It might be that javaws look for qualified register JRE to run and find none?
                          Try running /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/jcontrol to bring up the Java Control Panel.
                          Look at Java > View to see if you have any JRE registered and enabled. If you have one registered for /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java then rerun webstart now.
                          • 10. Re: Java 7 Update 9 on OS X Breaks Java Webstart Application
                            969294
                            I'll check that in a moment. I check for all the javaws on my host and went to each to check the results:


                            $ pwd
                            /usr/bin/
                            $ ./javaws ~jps/Downloads/msketch.jnlp
                            No Java runtime present, requesting install.
                            Unable to locate a Java Runtime to invoke.
                            and dialog box pops up with th error:
                            To open this Web Start application, you need to download the Java Runtime Environment
                            Click "More Info..." to visit the website fro the Java Runtime Environment.

                            The More Info button takes you to the java download page.

                            $ pwd
                            /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands
                            $ ./javaws ~jps/Downloads/msketch.jnlp
                            No Java runtime present, requesting install.
                            Unable to locate a Java Runtime to invoke.
                            and dialog box pops up with th error:
                            To open this Web Start application, you need to download the Java Runtime Environment
                            Click "More Info..." to visit the website fro the Java Runtime Environment.

                            The More Info button takes you to the java download page.

                            $ pwd
                            /System/Library/Frameworks/JavaVM.framework/Versions/A/Commands
                            $ ./javaws ~jps/Downloads/msketch.jnlp
                            No Java runtime present, requesting install.
                            Unable to locate a Java Runtime to invoke.
                            and dialog box pops up with th error:
                            To open this Web Start application, you need to download the Java Runtime Environment
                            Click "More Info..." to visit the website fro the Java Runtime Environment.

                            The More Info button takes you to the java download page.

                            $ pwd
                            /System/Library/Java/Support/Deploy.bundle/Contents/Home/bin/javaws
                            $ ./javaws ~jps/Downloads/msketch.jnlp
                            Java Web Start 1.6.0_37
                            Using JRE version 1.6.0_37-b06-434-11M3909 Java HotSpot(TM) 64-Bit Server VM

                            $ pwd
                            /System/Library/Java/Support/Deploy.bundle/Contents/MacOS/
                            $ ./javaws ~jps/Downloads/msketch.jnlp
                            Java Web Start 1.6.0_37
                            Using JRE version 1.6.0_37-b06-434-11M3909 Java HotSpot(TM) 64-Bit Server VM

                            $ pwd
                            /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Commands
                            $ ./javaws ~jps/Downloads/msketch.jnlp
                            Java Web Start 1.6.0_37
                            Using JRE version 1.6.0_37-b06-434-11M3909 Java HotSpot(TM) 64-Bit Server VM

                            $ pwd
                            /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin
                            $ ./javaws ~jps/Downloads/msketch.jnlp
                            Java Web Start 1.6.0_37
                            Using JRE version 1.6.0_37-b06-434-11M3909 Java HotSpot(TM) 64-Bit Server VM

                            $ pwd
                            /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin
                            $ ./javaws ~jps/Downloads/msketch.jnlp
                            Java Web Start 10.7.0.10
                            Using JRE version 10.7.0_07-b10 Java HotSpot(TM) 64-Bit Server VM

                            then told me a newer version is available, Java 7 Update 9
                            so I installed.

                            restarted and told me
                            Java Web Start 10.9.2.05
                            Using JRE version 1.7.0_09-b05 Java HotSpot(TM) 64-Bit Server VM

                            after that, ran again from that location and got:
                            Java Web Start 10.9.2.05
                            Using JRE version 1.7.0_09-b05 Java HotSpot(TM) 64-Bit Server VM

                            and all started well, but ..

                            Try to double-click the jnlp in the finder still gives me the error.
                            So I sort of have a workaround but would much prefer the proper version
                            run from the finder.
                            • 11. Re: Java 7 Update 9 on OS X Breaks Java Webstart Application
                              969294
                              I checked under the Java tab in the control panel and clicked view and it showed the path for user and system as
                              /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java

                              It is enabled. I double-click on the jnlp you pointed to and get:

                              To open this Web Start application, you need to download the Java Runtime Environment
                              Click "More Info..." to visit the website fro the Java Runtime Environment.

                              The More Info button takes you to the java download page.
                              --
                              Appreciate your help on this.
                              • 12. Re: Java 7 Update 9 on OS X Breaks Java Webstart Application
                                817614
                                There is a new version early access available at http://jdk7.java.net/download.html
                                You might give it a try rename the old 7u9 installation under Internet-Plugins and reinstall 7u10-b12 to see if it could clear up and register .jnlp file type properly with JRE 7 webstart.
                                • 13. Re: Java 7 Update 9 on OS X Breaks Java Webstart Application
                                  969294
                                  Morning,

                                  Thanks again for you assistance with this. Some clarifications please.
                                  You might give it a try rename the old 7u9 installation under Internet-Plugins
                                  Which directory path specifically would you rename:
                                  /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/
                                  and reinstall 7u10-b12 to see if it could clear up and register .jnlp file type properly with JRE 7 webstart.
                                  How would you change the file association of the jnlp file as I don't believe in get info you
                                  can select javaws as the application to open it. And selecting the default Java Web Start
                                  takes me back to the same error.
                                  • 14. Re: Java 7 Update 9 on OS X Breaks Java Webstart Application
                                    933767
                                    Java Web Start is set up so that /System/Library/CoreServices/Java Web Start.app handles double-clicked JNLP files. It then starts up /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/javaws with the file you double-clicked.

                                    I think your Java 7 install is actually okay, because you mentioned that /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/javaws <path to jnlp> is working. But in your case, that helper app isn't finding the Oracle JRE, and apparently doesn't think you have a Java VM from Apple, either, so it prompts you to install an Apple JDK. Reinstalling JDKs or JREs won't help until we figure out why that helper app can't find Oracle's JRE.

                                    A few questions:

                                    -- Did you install Apple's most recent Java update that came out this week? It looks like you did, because I see 1.6.0_37 in some of your testing. I'm starting to suspect that update may be the problem. In the past it would fall back to Java 6, but with this update it disabled Java 6's applet and web start support.

                                    Paste the output of '/usr/libexec/java_home -V' and '/usr/libexec/java_home -t WebStart'. The first will tell me what versions of Java are installed, and the second is the fallback Java that should be used if Java 7 is not installed.

                                    Also, when you double-click the JNLP, see if there is any output in Console.app. Java Web Start.app may be dumping out some kind of error when you try to open your JNLP.

                                    -- Scott K.
                                    1 2 Previous Next