Printer FriendlyEmail Article Link

How do I resolve a java.lang.UnsupportedClassVersionError: bad version error after installing Tcl API on a Landslide Client PC?

Answer

 

  1. The type of Java JRE error below can happen after installing the Landslide Tcl API and attempting to launch it:
 
% source landslidetclapi.tcl
Starting Java with Max Heap=128m
Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file
 
This will happen if you try to run Landslide using a JRE older than 1.6.0_10, like 1.5.0, 1.4.2 or maybe even 1.6.0_09.
  1. It is recommended to re-install Java JRE 1.6.0_10 or higher from the Landslide Home page, Troubleshoot Java Web Start Problems. From the Java Plug-in download section, download the Java JRE 1.6.0_10 version or higher that is compatible with your Client PC.
  2. Once Java JRE 1.6.0_10 or higher is installed, use the command below to confirm the version installed in the Tcl environment
% java -version
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)
 
AQI
9

Product : Landslide Client,Tcl API,Landslide