Added initial debug output
package io.github.mzmine.main;
+import java.io.File;
+import java.io.IOException;
+import java.io.InputStream;
+import java.lang.management.ManagementFactory;
+import java.nio.file.Paths;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Hashtable;
+import java.util.List;
+import java.util.Locale;
+import java.util.Map;
+import java.util.Properties;
+import java.util.logging.Level;
+import java.util.logging.Logger;
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
import io.github.mzmine.datamodel.MZmineProject;
import io.github.mzmine.datamodel.RawDataFileWriter;
import io.github.mzmine.gui.Desktop;
@@ -37,16 +53,6 @@ import io.github.mzmine.taskcontrol.impl.TaskControllerImpl;
import io.github.mzmine.util.ExitCode;
import javafx.application.Application;
-import javax.annotation.Nonnull;
-import javax.annotation.Nullable;
-import java.io.File;
-import java.io.IOException;
-import java.io.InputStream;
-import java.nio.file.Paths;
-import java.util.*;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-
/**
* MZmine main class
*/
@@ -61,10 +67,11 @@ public final class MZmineCore {
private static Map<Class<?>, MZmineModule> initializedModules =
new Hashtable<Class<?>, MZmineModule>();
+
/**
* Main method
*/
- public static void main(String args[]) {
+ public static void main(final String args[]) {
// In the beginning, set the default locale to English, to avoid
// problems with conversion of numbers etc. (e.g. decimal separator may
@@ -78,6 +85,17 @@ public final class MZmineCore {
logger.info("Starting MZmine " + getMZmineVersion());
+ /*
+ * Dump the MZmine and JVM arguments for debugging purposes
+ */
+ final String mzmineArgsString = String.join(" ", args);
+ final List<String> jvmArgs = ManagementFactory.getRuntimeMXBean().getInputArguments();
+ final String jvmArgsString = String.join(" ", jvmArgs);
+ final String classPathString = System.getProperty("java.class.path");
+ logger.finest("MZmine arguments: " + mzmineArgsString);
+ logger.finest("Java VM arguments: " + jvmArgsString);
+ logger.finest("Java class path: " + classPathString);
+
/*
* Report current working directory
*/
