Solution ID: prim55271
java.lang.UnsupportedClassVersionError
Status: Reviewed
Version(s): 6.0

Problem: Error: “Exception in thread “main” java.lang.UnsupportedClassVersionError: com/primavera/admintool/AdminApp <Unsupported major.minor version 49.0>” when attempting to run the dbconfigpv.cmd file for the P6 Web Application.

Problem: Unsupported major.minor version 49.0
Cause: The JDK version the Adminpv & DBconfigpv files is an older version.
Fix: The P6 Web Application needs to run on JDK version 1.5.0_10.  This error occurs because the DBConfig Utility is pointing to the wrong JAVA HOME (either an older JDK or the 1.5.0_10 JRE).  To correct the error:

Set the JAVA_HOME Windows Environment variable


  1. Right-Click on My Computer and select Properties

  2. Click on the Advanced tab

  3. Click on the Environment Variables button

  4. Under System Variables, set the JAVA_HOME variable = C:\Program Files\Java\jdk1.5.0_10 (If the JAVA_HOME variable does not exist, create it)

  5. Save Changes

Set the JAVA_HOME variable in the DBConfig Utility


  1. Browse to the P6 Web App Home Folder.

  2. Right-Click on dbconfigpv.cmd and select Edit. (dbconfigpv.sh for Unix )

  3. Look for the line that begins with “set JAVA_HOME=” and set the variable = C:\Program Files\Java\jdk1.5.0_10.

    Entire line should read : set JAVA_HOME=C:\Program Files\Java\jdk1.5.0_10
     

  4. Save Changes.

Set the JAVA_HOME variable in the Admin Utility


  1. In the P6 Web App Home Folder

  2. Right-Click on the Adminpv.cmd and select Edit. (Adminpv.sh for Unix )

  3. Look for the line that begins with “set JAVA_HOME=” and set the variable = C:\Program Files\Java\jdk1.5.0_10.

  4. Save changes

 Now re-run the dbconfigpv.cmd utility (by double-clicking on it).  The utility should run without error.

Fix: This error has also been reported when a P5 installation of the API still exists on the same machine. To resolve this, uninstall P5 API and install only the 6.0 API.