Skip to content
Snippets Groups Projects
Commit 614dcdf3 authored by Felipe Cecagno's avatar Felipe Cecagno
Browse files

purging completely the java detection branch

parent 80e5c005
No related branches found
No related tags found
No related merge requests found
......@@ -53,8 +53,7 @@ public class DeskShareApplet extends JApplet implements ClientListener {
public boolean isSharing = false;
private volatile boolean clientStarted = false;
private final static String MIN_JRE_VERSION = "1.7.0_51";
private final static String VERSION_ERROR_MSG = "Desktop sharing requires Java 7 update 51 (or later) to run.";
private final static String VERSION_ERROR_MSG = "You have an unsupported Java version.";
private class DestroyJob implements PrivilegedExceptionAction {
public Object run() throws Exception {
......@@ -128,14 +127,13 @@ public class DeskShareApplet extends JApplet implements ClientListener {
public void start() {
System.out.println("Desktop Sharing Applet Starting");
super.start();
String javaRuntimeVersion = getJavaVersionRuntime();
System.out.println("**** JAVA VERSION = [" + javaRuntimeVersion + "]");
if (VersionCheckUtil.validateMinJREVersion(javaRuntimeVersion, minJreVersion))
allowDesktopSharing();
else
displayJavaWarning(VERSION_ERROR_MSG);
displayJavaWarning("Unsupported Java version [" + javaRuntimeVersion + "]. Minimum version required [" + minJreVersion + "]");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment