test/java/awt/xembed/server/TestXEmbedServerJava.java
Print this page
@@ -24,10 +24,11 @@
/**
* @test
* @bug 4931668
* @summary Tests XEmbed server/client functionality
* @author denis mikhalkin: area=awt.xembed
+ * @requires (!(os.family=="mac") & !(os.family=="windows"))
* @modules java.desktop/sun.awt
* @compile JavaClient.java TesterClient.java TestXEmbedServer.java
* @run main/manual TestXEmbedServerJava
*/
@@ -36,13 +37,10 @@
import javax.swing.*;
import java.io.*;
public class TestXEmbedServerJava extends TestXEmbedServer {
public static void main(String[] args) {
- if (System.getProperty("os.name").toLowerCase().startsWith("win")) {
- return;
- }
// Enabled XEmbed
System.setProperty("sun.awt.xembedserver", "true");
String instruction =
@@ -76,11 +74,11 @@
}
public Process startClient(Rectangle[] bounds, long window) {
try {
String java_home = System.getProperty("java.home");
- return Runtime.getRuntime().exec(java_home + "/bin/java JavaClient " + window);
+ return Runtime.getRuntime().exec(java_home + "/bin/java -XaddExports:java.desktop/sun.awt.X11=ALL-UNNAMED JavaClient " + window);
} catch (IOException ex1) {
ex1.printStackTrace();
}
return null;
}