|
What this is
Other links
The source code
/*
* Install.java - Main class of the installer
*
* Originally written by Slava Pestov for the jEdit installer project. This work
* has been placed into the public domain. You may use this work in any way and
* for any purpose you wish.
*
* THIS SOFTWARE IS PROVIDED AS-IS WITHOUT WARRANTY OF ANY KIND, NOT EVEN THE
* IMPLIED WARRANTY OF MERCHANTABILITY. THE AUTHOR OF THIS SOFTWARE, ASSUMES
* _NO_ RESPONSIBILITY FOR ANY CONSEQUENCE RESULTING FROM THE USE, MODIFICATION,
* OR REDISTRIBUTION OF THIS SOFTWARE.
*/
package installer;
import javax.swing.plaf.metal.*;
import javax.swing.*;
import java.io.*;
import java.util.Properties;
public class Install
{
public static void main(String[] args)
{
String javaVersion = System.getProperty("java.version");
if(javaVersion.compareTo("1.3") < 0)
{
System.err.println("You are running Java version "
+ javaVersion + ".");
System.err.println("This installer requires Java 1.3 or later.");
System.exit(1);
}
if(args.length == 0)
new SwingInstall();
else if(args.length == 1 && args[0].equals("text"))
new ConsoleInstall();
else if(args.length >= 2 && args[0].equals("auto"))
new NonInteractiveInstall(args);
else
{
System.err.println("Usage:");
System.err.println("java -jar
|
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.