svn commit: r12573 - trunk/src_new/org/argouml/application/Main.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2007-05-09 06:49:22-0700
New Revision: 12573

Modified:
   trunk/src_new/org/argouml/application/Main.java

Log:
Update Java version check

Modified: trunk/src_new/org/argouml/application/Main.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/application/Main.java?view=diff&rev=12573&p1=trunk/src_new/org/argouml/application/Main.java&p2=trunk/src_new/org/argouml/application/Main.java&r1=12572&r2=12573
==============================================================================
--- trunk/src_new/org/argouml/application/Main.java	(original)
+++ trunk/src_new/org/argouml/application/Main.java	2007-05-09 06:49:22-0700
@@ -514,20 +514,26 @@
     }
 
     /**
-     * Checks tha JVM Version.<p>
-     *
-     * If it is a non supported JVM version we exit immediatly.
+     * Check tha JVM Version.
+     * <p>
+     * If it is a unsupported JVM version we exit immediately.
+     * <p>
+     * NOTE: In most cases the JVM classloader will complain about an
+     * UnsupportedClassVersionError long before we get anywhere near this point
+     * in the initialization.
      */
     private static void checkJVMVersion() {
         // check if we are using a supported java version
         String javaVersion = System.getProperty("java.version", "");
         // exit if unsupported java version.
-        if (javaVersion.startsWith("1.3")
-            || javaVersion.startsWith("1.2")
-            || javaVersion.startsWith("1.1")) {
+        if (javaVersion.startsWith("1.4") 
+                || javaVersion.startsWith("1.3")
+                || javaVersion.startsWith("1.2")
+                || javaVersion.startsWith("1.1")) {
 
 	    System.err.println("You are using Java " + javaVersion + ", "
-			       + "Please use Java 1.4 or later with ArgoUml");
+			       + "Please use Java 5 (aka 1.5) or later" 
+                               + " with ArgoUML");
 	    System.exit(0);
         }
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.