test/java/awt/xembed/server/TestXEmbedServerJava.java
Print this page
*** 24,33 ****
--- 24,34 ----
/**
* @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,48 ****
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 =
--- 37,46 ----
*** 76,86 ****
}
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);
} catch (IOException ex1) {
ex1.printStackTrace();
}
return null;
}
--- 74,84 ----
}
public Process startClient(Rectangle[] bounds, long window) {
try {
String java_home = System.getProperty("java.home");
! 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;
}