From b610f9ce447bc4ad77181b43c1dd39ad379e197f Mon Sep 17 00:00:00 2001 From: Iwan Timmer Date: Sun, 2 Feb 2014 13:46:04 +0100 Subject: [PATCH] Warn for unsupported VM's --- src/com/limelight/Limelight.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/com/limelight/Limelight.java b/src/com/limelight/Limelight.java index 15ff801..61c4ec6 100644 --- a/src/com/limelight/Limelight.java +++ b/src/com/limelight/Limelight.java @@ -44,6 +44,12 @@ public class Limelight implements NvConnectionListener { * Creates a connection to the host and starts up the stream. */ private void startUp(StreamConfiguration streamConfig, List inputs, String mappingFile) { + String vm = System.getProperties().getProperty("java.vm.name"); + if (!vm.contains("HotSpot")) { + System.err.println("You are using a unsupported VM: " + vm); + System.err.println("Please update to Oracle Java (Embedded) for better performances"); + } + conn = new NvConnection(host, this, streamConfig); if (inputs.isEmpty()) {