
net.yapbam.gui.Launcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yapbam-launcher Show documentation
Show all versions of yapbam-launcher Show documentation
Yapbam launcher is a launcher dedicated to the Yapbam application
The newest version!
package net.yapbam.gui;
import java.io.File;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.net.MalformedURLException;
import java.net.URISyntaxException;
import java.net.URL;
import java.net.URLClassLoader;
import java.text.MessageFormat;
import javax.swing.JOptionPane;
public class Launcher {
private static final String REQUIRED_JAVA_VERSION = "1.6";
private static final String JAR_FILE_NAME = "program.jar";
private static final String CLASS_NAME = "net.yapbam.gui.MainFrame";
private Launcher() {
}
public static void main(String[] args) {
// Iterator it = System.getProperties().keySet().iterator();
// while (it.hasNext()) {
// String next = (String) it.next();
// System.out.println (next+" -> "+System.getProperty(next));
// }
String current = System.getProperty("java.specification.version");
if (Float.parseFloat(current)A program file is missing ("+jarFile.getAbsolutePath()+").
You should install Yapbam again in order to fix it.