Lines 72-77
Link Here
|
72 |
import java.net.ProxySelector; |
72 |
import java.net.ProxySelector; |
73 |
import java.util.Enumeration; |
73 |
import java.util.Enumeration; |
74 |
import java.util.Properties; |
74 |
import java.util.Properties; |
|
|
75 |
import sun.awt.AppContext; |
76 |
import sun.awt.SunToolkit; |
75 |
|
77 |
|
76 |
import net.sourceforge.jnlp.config.DeploymentConfiguration; |
78 |
import net.sourceforge.jnlp.config.DeploymentConfiguration; |
77 |
import net.sourceforge.jnlp.runtime.JNLPRuntime; |
79 |
import net.sourceforge.jnlp.runtime.JNLPRuntime; |
Lines 94-99
Link Here
|
94 |
*/ |
96 |
*/ |
95 |
public static void main(String args[]) |
97 |
public static void main(String args[]) |
96 |
throws IOException { |
98 |
throws IOException { |
|
|
99 |
if (AppContext.getAppContext() == null) { |
100 |
SunToolkit.createNewAppContext(); |
101 |
} |
97 |
if (args.length != 2 || !(new File(args[0]).exists()) || !(new File(args[1]).exists())) { |
102 |
if (args.length != 2 || !(new File(args[0]).exists()) || !(new File(args[1]).exists())) { |
98 |
System.err.println("Invalid pipe names provided. Refusing to proceed."); |
103 |
System.err.println("Invalid pipe names provided. Refusing to proceed."); |