Class Main

java.lang.Object
de.presti.ree6.installer.Main

public class Main extends Object
Main class.
  • Constructor Details

    • Main

      public Main()
  • Method Details

    • main

      public static void main(String[] args) throws InterruptedException
      Main method.
      Parameters:
      args - the args.
      Throws:
      InterruptedException - if the delay fails?
    • getJavaVersion

      public static int getJavaVersion()
      Returns the Java version as an int value.
      Returns:
      the Java version as an int value (8, 9, etc.)
    • config

      public static void config() throws InterruptedException
      Configure Ree6.
      Throws:
      InterruptedException - if the delay fails?
    • print

      public static void print(String print)
      Print something to the console.
      Parameters:
      print - the thing to print.
    • clear

      public static void clear()
      Clear the console.
    • setupStepOne

      public static void setupStepOne() throws InterruptedException, IOException
      Set up the first step of the configuration.
      Throws:
      InterruptedException - if the delay fails?
      IOException - If something went wrong.
    • setupStepTwo

      public static void setupStepTwo() throws IOException
      Setup the second step of the configuration.
      Throws:
      IOException - if something went wrong.
    • update

      public static void update()
      Update Ree6 to the latest version.
    • setupGenericDatabase

      public static void setupGenericDatabase(String typ, String displayName) throws IOException
      Setup a generic database.
      Parameters:
      typ - the typ of the database.
      displayName - the display name of the database.
      Throws:
      IOException - if something went wrong.
    • setupSQLite

      public static void setupSQLite() throws IOException
      Setup SQLite.
      Throws:
      IOException - if something went wrong.
    • setupH2

      public static void setupH2(boolean server) throws IOException
      Setup H2.
      Throws:
      IOException - if something went wrong.
    • getValue

      public static String getValue()
      Get a value from the console.
      Returns:
      the value.
    • getValueOrDefault

      public static String getValueOrDefault(String defaultValue)
      Get a value from the console or a default value.
      Parameters:
      defaultValue - the default value.
      Returns:
      the value.
    • getValueOrDefaultHidden

      public static String getValueOrDefaultHidden(String defaultValue)
      Get a hidden value from the console or a default value.
      Parameters:
      defaultValue - the default value.
      Returns:
      the value.