z390 Portable Mainframe Assembler and Emulator

Display current Java Version

zcobol Portable Mainframe COBOL Compiler
z390 and zcobol require J2SE 1.6+ runtime as the only pre-requisite.

The yellow box to the right should display the current installed version of J2SE java runtime.  See test results.

If you do not have J2SE 1.6 or later, you can download and install it from J2SE.  Refresh this page to verify install.

 

Overview of this Java Version Display web page

This webpage has been designed to try and run successfully on all platforms with all browsers.  If your browser reports an error on the z390 java version display web page or says neither HTML V3 APPLET or HTML V4 OBJECT are supported, please check your browser preferences to make sure you have execution of Java Applets enabled and that the J2SE java browser plugin is enabled.   If you have a browser that reports an error or does not function as you think it should, please send screen capture of the error and a list or your operating system, browser, and J2SE versions.  See test results below.  If you do not have a J2SE 1.6+ runtime installed, you can download and install the latest J2SE 1.6+ version.  You can verify that the install was successful and than the associated browser plugin is working using this J2SE verification website.

Thanks to Michael Horowitz author of Java Tester website which is where I started research on how to develop this page.  The initial version used JavaScript to test which browser release was running, to decide whether an HTML V3 APPLET or HTML V4 OBJECT should be used to launch the Java program to display the current J2SE Java version installed.  However, when I discovered that IE8 on XP uses HTML V3 APPLET and IE8 on Vista uses HTML V4 OBJECT, I decided to abandon that approach in favor of trying both and reporting if either failed to be recognized by browser.

After installing old J2SE 1.5.0_12 on my Windows XP system to compile the Java Applet source code so it would be compatible with 1.5 as well as 1.6, I discovered that I can use the java javac options -target and -source to compile the Java Applet on 1.6 and make it compatible with 1.4+ so it should work on any system with J2SE 1.4+ installed.  Both the Java applet source program javaver.java and the compiled java jjavaver.class files are in the www.z390.org/java directory.

I have tested this website on Windows XP and Windows Vista with IE7 and IE8 browsers.  I have also tested Ubuntu Linux 8.04 LTS and Windows Vista using both Firefox 3.0.14 and Google Chrome 3.0.195.21 browsers.  I would like to hear test results from users of different operating systems, browsers, and J2SE versions.  Please send screen capture of your display along with which versions you have to Don Higgins, and I'll add then to this list of test results.

If you want to see what version of J2SE is installed on your system without using web browser, you can go to command prompt and enter the command:  java -version.

 

Test results for different operating systems, J2SE versions, and browsers

Operating System Java Version Browser HTML 3 Applet HTML 4 Object User
Linux Ubuntu 8.04 LTS J2SE 1.6.0_16 Firefox 3.0.14 Y N DSH
Linux Ubuntu 9.04 LTS J2SE 1.6.0_16 Firefox 3.0.14 Y N PF
Windows 2000 J2SE 1.6.0_14 Firefox 3.5.3 Y N WB
Windows 2000 J2SE 1.6.0_14 Internet Explorer 6 Y N WB
Windows Server 2008 J2SE 1.6.0_15 Firefox 3.5.3 Y N JCL
Windows Vista J2SE 1.6.0_16 Chrome 3.0.195.21 Y Java Loop DSH
Windows Vista J2SE 1.6.0_16 Firefox 3.0.14 Y N DSH
Windows Vista J2SE 1.6.0_16 Internet Explorer 8 N Y DSH
Windows XP Pro SP2 J2SE 1.6.0_13 Internet Explorer 7 Y Y PF
Windows XP Pro SP2 J2SE 1.6.0_16 Internet Explorer 6 Y Y WB
Windows XP Pro SP3 J2SE 1.5.0_12 Firefox 3.0.14 Y N DSH
Windows XP Pro SP3 J2SE 1.5.0_12 Internet Explorer 8 Y N DSH
Windows XP Pro SP3 J2SE 1.6.0_15 Internet Explorer 6 Y Y DP
Windows XP Pro SP3 J2SE 1.6.0_16 Chrome 4.0.211.7 Y Java Loop DP
Windows XP Pro SP3 J2SE 1.6.0_16 Internet Explorer 7 Y Y DSH
Windows XP Pro SP3 J2SE 1.6.0_16 Internet Explorer 8 Y Y DP
           

 

HTML Source Code for Java Version Display

The following HTML source code for table cell can be used in any HTML table to display the installed version of J2SE Java Runtime using both HTML V3 APPLET and HTML V4 OBJECT assuming one or the other will be supported by browser (Note IE7 on XP supports both):

<td align="left" valign="top" bordercolor="#000000" bgcolor="#FFFF00" height="266" width="315">
<b>
<script language="Javascript">
document.write(
'<hr>Using HTML V3 APPLET<br>',
'<applet code="javaver.class"',
' width=300 height=100 hspace="30" vspace="30">',
' <br>Browser does not support HTML V3 APPLET',
'</applet>'
);
document.write(
'<hr>Using HTML V4 OBJECT<br>',
'<OBJECT',
' classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"',
' width=300 height=100 hspace="30" vspace="30">',
'<PARAM name="code" value="javaver.class">',
' <br>Browser does not support HTML V4 OBJECT',
'</OBJECT>'
);
</script>
</b>
</td>

 

J2SE Java source code for Applet

The following command using J2SE 1.6.0_16 on Windows was used to compile the following source javaver.java into java.class which is compatible with any J2SE 1.4+ Java runtime:

"c:\program files\Java\jdk1.6.0_16\bin\javac.exe" -g:none -target 1.4 -source 1.4 javaver.java

The javaver.java source code for applet is:

 import java.applet.*;
import java.awt.*;
public class javaver extends Applet
   { private Label VersionVendor;
      public javaver()
      { VersionVendor = new Label (" Java Version: " +
         System.getProperty("java.version")+
         " from "+System.getProperty("java.vendor"));
         this.add(VersionVendor);
      }
}

This page last updated Saturday October 17, 2009.   Webmaster 
Copyright 2009 Automated Software Tools Corporation