Java Exception When Creating OGG Monitoring Agent Instance (Doc ID 2076873.1)

Last updated on JULY 17, 2017

Applies to:

Management Pack for Oracle GoldenGate - Version 12.1.3.0.0 and later
Information in this document applies to any platform.

Symptoms

 

Running the Monitor Java Agent installer create_ogg_agent_instance.sh fails with a Java error:

export JAVA_HOME=/u01/app/oracle/goldengate/ggshome/jdk
export PATH=$JAVA_HOME/bin:$PATH
[oracle@iln2db01 ogg_agent]$ java -version
java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)

[oracle@iln2db01 ggshome]$ cd /u01/app/oracle/goldengate/ggshome/jagent_12_1_3/oggmon/ogg_agent
[oracle@iln2db01 ogg_agent]$ ./create_ogg_agent_instance.sh
Please enter absolute path of Oracle GoldenGate home directory : /u01/app/oracle/goldengate/ggshome
Please enter absolute path of OGG Agent instance : /u01/app/oracle/goldengate/ggshome/jagent_12_1_3/agent_12_1_3
Exception in thread "main" java.lang.NoClassDefFoundError: java/nio/file/FileSystems
at com.goldengate.monitor.jagent.instance.AgentInstanceCreationUtil.getAgentInstanceHome(AgentInstanceCreationUtil.java:156)
at com.goldengate.monitor.jagent.instance.AgentInstanceCreationUtil.main(AgentInstanceCreationUtil.java:74)
Caused by: java.lang.ClassNotFoundException: java.nio.file.FileSystems
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms