You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ho...@apache.org on 2006/01/11 03:14:43 UTC
svn commit: r367880 -
/geronimo/branches/1.0/modules/system/src/java/org/apache/geronimo/system/main/Daemon.java
Author: hogstrom
Date: Tue Jan 10 18:14:42 2006
New Revision: 367880
URL: http://svn.apache.org/viewcvs?rev=367880&view=rev
Log:
Add JVM Check at Server startup
Modified:
geronimo/branches/1.0/modules/system/src/java/org/apache/geronimo/system/main/Daemon.java
Modified: geronimo/branches/1.0/modules/system/src/java/org/apache/geronimo/system/main/Daemon.java
URL: http://svn.apache.org/viewcvs/geronimo/branches/1.0/modules/system/src/java/org/apache/geronimo/system/main/Daemon.java?rev=367880&r1=367879&r2=367880&view=diff
==============================================================================
--- geronimo/branches/1.0/modules/system/src/java/org/apache/geronimo/system/main/Daemon.java (original)
+++ geronimo/branches/1.0/modules/system/src/java/org/apache/geronimo/system/main/Daemon.java Tue Jan 10 18:14:42 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) {