Skip to content

Troubleshooting DVV

Nathan Yarasavage edited this page Aug 23, 2023 · 2 revisions

Troubleshooting DVV

You may encounter some errors when launching DVV Version 2. These are also printed in the DVV User’s Guide (PDF).

As a general rule, we recommend the following steps when first troubleshooting errors:

  • Check the DVV Systems Requirements page (in User's Guide) for appropriate Java set-up.
  • View command line error messages and log files in dvv2/home directory for additional clues.

To report an issue, please contact [email protected].

Download and Startup Issues

No JAVA Installed

If you receive errors similar to the following, you may not have Java or the correct version installed. Contact your system administrator for help installing Java. See “Section 2: System Requirements” for more details. Possible error messages that may indicate this problem:

java.lang.UnsupportedClassVersionError

Cannot find path … because it does not exist.

Java 11 or Newer Not Installed

If you receive errors similar to the following, you may not have Java or the correct version installed. You may have Java 8 or pre- Java 11. Contact your system administrator for help installing Java. See “Section 2: System Requirements” for more details. Possible error messages that may indicate this problem:

Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.UnsupportedClassVersionError: gov/loc/ndnp/preingest/ui/DVV has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access00(Unknown Source) at java.net.URLClassLoader.run(Unknown Source) at java.net.URLClassLoader.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source) Press any key to continue . . .

Setting the JAVA_HOME Variable Script

If you are sure that Java is installed, and you encounter this error, please do the following

"ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH,"

Inside the dvv2 directory, open or double-click the \helpScripts directory Inside the \helpScripts directory, double-click setJavaHome.bat If prompted, press [R] to run once (omit the brackets) Go back into \dvv2\bin and double click DVV.bat This should only need to be done once. For later sessions, you would only need to click DVV.bat to launch.

Java Object Heap Space Error

If you encounter the message below, close down other applications you may have open and try again. If that doesn't work, try re-starting your computer.

"Error occurred during initialization of VM

Could not reserve enough space for object heap

Error: Could not create the Java Virtual Machine.

Error: A fatal exception has occurred. Program will exit.

Press any key to continue . . ."

Additional JAVA_HOME Variable Setting Troubleshooting

If setting the JAVA_HOME variable using the setJavaHome.bat script (above) does not work, consider setting the variable manually using the command line. These steps may also be followed if Java has been updated on your systems since you first installed the DVV.

  • Locate exactly where Java is installed on your system. (For this example, we will use this location: C:\Program Files\Java\jdk-17.0.1.) Your location will be unique to your computer.
  • Open the command prompt and type this command substituting your specific Java location. Note the use of quotes and case (JAVA_HOME must be all caps):

setx JAVA_HOME "C:\Program Files\Java\jdk-17.0.1"

  • Execute the command by pressing "Enter"
  • Close the command prompt window and re-try launching the DVV