Changeset 35663
- Timestamp:
- 2021-10-21T19:39:04+13:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/Gatherer.java
r34544 r35663 316 316 // check that we are using Sun Java 317 317 String java_vendor = System.getProperty("java.vendor"); 318 String java_runtime_name = System.getProperty("java.runtime.name"); 319 320 318 321 if (!java_vendor.equals("Sun Microsystems Inc.") 319 && !java_vendor.equals("Oracle Corporation")) { 320 System.err.println(Dictionary.get("General.NotSunJava", java_vendor)); 322 && !java_vendor.equals("Oracle Corporation") 323 && !java_runtime_name.equals("OpenJDK Runtime Environment")) { 324 // OK, so the dictionary key label is a bit apocryphal these days, but it gets the job done 325 System.err.println(Dictionary.get("General.NotSunJava", java_vendor)); 321 326 } 322 327 … … 421 426 // (tomcat and networked Derby Server) by calling GS3ServerThread.stopServer() 422 427 if(!GS3ServerThread.wasServerLaunchedOutsideGLI()) { 423 428 System.err.println("Attempting to forcibly terminate the GS server..."); 424 429 GS3ServerThread.stopServer(); 425 430 } else { 426 System.err.println(" @@@Tomcat was launched outside GLI. Leaving it running...");431 System.err.println("Tomcat was launched outside GLI. Leaving it running..."); 427 432 } 428 433 } else { // issue the call to stop any running GS2 local library server 429 434 if (LocalLibraryServer.isRunning() == true) { 430 435 System.err.println("Attempting to forcibly terminate the GS server..."); 431 436 LocalLibraryServer.forceStopServer(); 432 437 } … … 836 841 GS3ServerThread.stopServer(); 837 842 } else { 838 System.err.println(" @@@Tomcat was launched outside GLI. Leaving it running...");843 System.err.println("Tomcat was launched outside GLI. Leaving it running..."); 839 844 } 840 845 … … 1139 1144 1140 1145 if (Configuration.library_url == null){ 1141 System. out.println("Error: you have not provided the Greenstone Library address.");1146 System.err.println("Error: you have not provided the Greenstone Library address."); 1142 1147 return; 1143 1148 … … 1827 1832 cmd_list.add(Configuration.perl_path); 1828 1833 } else { 1829 System.err.println(" ***** ImageMagickTest Warning: Perl_path not set, calling 'perl' instead.");1834 System.err.println("Warning: ImageMagickTest::found() perl_path not set, calling 'perl' instead."); 1830 1835 cmd_list.add("perl"); 1831 1836 }
Note:
See TracChangeset
for help on using the changeset viewer.