geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hogst...@apache.org
Subject svn commit: r367423 - /geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/main/Daemon.java
Date Mon, 09 Jan 2006 22:51:16 GMT
Author: hogstrom
Date: Mon Jan  9 14:51:13 2006
New Revision: 367423

URL: http://svn.apache.org/viewcvs?rev=367423&view=rev
Log:
Added code to warn users that JDKs other than 1.4 may not function correctly

Modified:
    geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/main/Daemon.java

Modified: geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/main/Daemon.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/main/Daemon.java?rev=367423&r1=367422&r2=367423&view=diff
==============================================================================
--- geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/main/Daemon.java (original)
+++ geronimo/trunk/modules/system/src/java/org/apache/geronimo/system/main/Daemon.java Mon
Jan  9 14:51:13 2006
@@ -191,7 +191,19 @@
                 monitor = new LongStartupMonitor();
             else
                 monitor = new ProgressBarStartupMonitor();
-        }
+        }                                                            
+
+        JVMCheck();
+    }
+
+    private void JVMCheck() {
+        String jvmVersion = (String)System.getProperty("java.specification.version");
+        if (! jvmVersion.equals("1.4"))
+            log.warn("\n====================================== Warning =======================================\n"
+
+                     " Geronimo is currently only certified on version 1.4 of the Java Virtual
Machine.\n" +
+                     " Use of version " + jvmVersion + " is not currently supported.  Use
at your own risk.\n" +
+                     " Check http://geronimo.apache.org for current information on JDK certification
level.\n" +
+                     "====================================== Warning =======================================");
     }
 
     private void doStartup() {
@@ -207,7 +219,7 @@
                     System.exit(1);
                     throw new AssertionError();
                 }
-            
+
             // Determine the geronimo installation directory
             File geronimoInstallDirectory = DirectoryUtils.getGeronimoInstallDirectory();
             if (geronimoInstallDirectory == null) {



Mime
View raw message