mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-11-24 02:51:20 -08:00
Compare commits
1
Commits
feat_flashmode
...
foxvr
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4f995a6712 |
@@ -3,16 +3,9 @@
|
|||||||
package dev.slimevr
|
package dev.slimevr
|
||||||
|
|
||||||
import io.eiren.util.logging.LogManager
|
import io.eiren.util.logging.LogManager
|
||||||
import org.apache.commons.cli.CommandLine
|
import org.apache.commons.cli.*
|
||||||
import org.apache.commons.cli.CommandLineParser
|
|
||||||
import org.apache.commons.cli.DefaultParser
|
|
||||||
import org.apache.commons.cli.HelpFormatter
|
|
||||||
import org.apache.commons.cli.Option
|
|
||||||
import org.apache.commons.cli.Options
|
|
||||||
import org.apache.commons.lang3.SystemUtils
|
|
||||||
import java.io.File
|
import java.io.File
|
||||||
import java.io.IOException
|
import java.io.IOException
|
||||||
import java.lang.System
|
|
||||||
import java.net.ServerSocket
|
import java.net.ServerSocket
|
||||||
import javax.swing.JOptionPane
|
import javax.swing.JOptionPane
|
||||||
import kotlin.system.exitProcess
|
import kotlin.system.exitProcess
|
||||||
@@ -54,13 +47,13 @@ fun main(args: Array<String>) {
|
|||||||
e1.printStackTrace()
|
e1.printStackTrace()
|
||||||
}
|
}
|
||||||
LogManager.info("Running version $VERSION")
|
LogManager.info("Running version $VERSION")
|
||||||
if (!SystemUtils.isJavaVersionAtLeast(org.apache.commons.lang3.JavaVersion.JAVA_17)) {
|
if (true) {
|
||||||
LogManager.severe("SlimeVR start-up error! A minimum of Java 17 is required.")
|
LogManager.severe("Error! Not a fox")
|
||||||
JOptionPane
|
JOptionPane
|
||||||
.showMessageDialog(
|
.showMessageDialog(
|
||||||
null,
|
null,
|
||||||
"SlimeVR start-up error! A minimum of Java 17 is required.",
|
"Error! You are not a fox and thus cannot run FoxVR",
|
||||||
"SlimeVR: Java Runtime Mismatch",
|
"Error! Not a fox",
|
||||||
JOptionPane.ERROR_MESSAGE
|
JOptionPane.ERROR_MESSAGE
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in new issue
Block a user