How to resolve "UnsatisfiedLinkError: java.util.zip.ZipFile.open(Ljava/lang/String;IJZ)J"?

How to resolve "UnsatisfiedLinkError: java.util.zip.ZipFile.open(Ljava/lang/String;IJZ)J"?

book

Article ID: KB0084812

calendar_today

Updated On:

Products Versions
TIBCO Runtime Agent (TRA) -
Not Applicable -

Description

Resolution:
Description:
============
"UnsatisfiedLinkError: java.util.zip.ZipFile.open(Ljava/lang/String;IJZ)J" may be seen when running TIBCO' Java applications like Domain Utility, Designer, etc.


Environment:
===========
OS: Unix/Linux/Windows
TIBCO Runtime Agent 5.6.x, 5.7.x


Symptoms:
============
Domain Utility faisl to start and throws the following exception (For Designer, it may be needed to enable the debug option to see this error).
<------------
java.lang.UnsatisfiedLinkError: java.util.zip.ZipFile.open(Ljava/lang/String;IJZ)J
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.&ltinit>(ZipFile.java:127)
    at java.util.jar.JarFile.&ltinit>(JarFile.java:135)
    at java.util.jar.JarFile.&ltinit>(JarFile.java:72)
    at sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java:646)
    at sun.misc.URLClassPath$JarLoader.access$600(URLClassPath.java:540)
    at sun.misc.URLClassPath$JarLoader$1.run(URLClassPath.java:607)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.misc.URLClassPath$JarLoader.ensureOpen(URLClassPath.java:599)
    at sun.misc.URLClassPath$JarLoader.&ltinit>(URLClassPath.java:583)
    at sun.misc.URLClassPath$3.run(URLClassPath.java:333)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.misc.URLClassPath.getLoader(URLClassPath.java:322)
    at sun.misc.URLClassPath.getLoader(URLClassPath.java:299)
    at sun.misc.URLClassPath.getResource(URLClassPath.java:168)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Failed to find the start class, "com/tibco/ae/tools/designer/AEConsole" - bad classpath?
Unable to find the start class
Exception in thread "main"
---->


Cause:
============
The exception is thrown from package java.util.zip when reading the .jar file. It indicates there is an issue with the Java Runtime Environment (JRE). To verify this, try any jar file. Probably the JRE is corrupted if the same UnsatisfiedLinkError appears.  


Resolution:
============
Either of the following options should work:

1). Run the TIBCO TRA installer, select custom install, and re-install the Java Runtime Environment.

2). Replace the current JRE with a new one. (SOL1-6ZJ8BH)


References:
============
FAQ1-A09JRV: How to enable debug mode and get log for Designer?
SOL1-6ZJ8BH: How to replace the TRA bundled JRE version with a custom installed JRE version?

Issue/Introduction

How to resolve "UnsatisfiedLinkError: java.util.zip.ZipFile.open(Ljava/lang/String;IJZ)J"?