Ever get an alert to update Java? (pause for groans)
I don’t know about you, but I need Java to always be updated on my browsers so I’m not vulnerable online and so that newer Java based code always works properly. I also need older Java apps to still be able to run (ASDM particularly). Personally, I run Windows 7 x64 and primarily use Google Chrome as my Internet Browser.
Here is the error I was getting:
I found a blog by Pete Long which identified that any Java Version past JRE7u45 would cause this issue. Even further, see what Cisco’s release notes say:
|7 update 51||
||To continue using the Launcher, do one of the following:
To use Java Web Start, do one of the following:
If you already upgraded Java, and can no longer launch ASDM in order to upgrade it to Version 7.1(5.100) or later, then you can either use the CLI to upgrade ASDM, or you can use the above security exception workaround to launch the older ASDM, after which you can upgrade to a newer version.
Well, I wasn’t thrilled with this information, but I did find a solution to my issue. In order to run ASDM (or any JAR application) in an older version of Java but still have the current release in your browser, follow these steps:
- Update Java to the newest version. You can easily do this by going to http://www.java.com/en/download/installed.jsp in your browser to get the appropriate version. This provided me with chromeinstall-7u51.exe. (Let this java app uninstall any older versions that it finds.)
- Download the compatible version for your Java App. I needed JRE7u45 and found it by visiting the Oracle Java Archive, http://www.oracle.com/technetwork/java/archive-139210.html. You will need to create a free Oracle Account in order to gain Download Access. The Version I needed was:
- Run the JRE Install executable and make sure you choose “Change destination folder”. I set mine as ‘C:\Program Files\Java\jre7u45’
- You will now need to set an Environment Path for Java to run as jre7u45.
- Press the WinKey + R, type ‘control sysdm.cpl’
- Go to the Advanced Tab
- Click on Environment Variables
- Under System Variables, locate ‘Path’ and click Edit
- You will then add the java Bin path, mine was ‘C:\Program Files\Java\jre7u45\bin\’
- Click OK a few times to save your changes
- Now to load your java app in the previous release, you will need to call it from Command Prompt. I used a batch file to complete this with the existing target from the ASDM Shortcut.
start javaw -jar "C:\Program Files (x86)\Cisco Systems\ASDM\asdm-launcher.jar" -Xms64m -Xmx512m -sun.swing.enableImprovedDragGesture=true -classpath lzma.jar;jploader.jar;asdm-launcher.jar;retroweaver-rt-2.0.jar
- If you need to run a different app, just change the section after ‘start javaw –jar’. Running this in your batch will make sure the Command Prompt window does not stay open while your JAR runs.
This worked for me and allows me to continue using ASDM without worrying about Java auto updating and breaking it or any websites not loading properly. Hope this helps you! As always, if you enjoyed this: Link it; Like it; Subscribe to it!