I'm trying to open an xterm terminal in Java, and run a Java file in it. Here's the Java code that is opening up the terminal:
Process p2 = new ProcessBuilder("xterm", "-hold", "-e", "java", "/home/harry/main.class").start();
xterm opens fine, but it's saying that it can't find the main class home.harry.main.class
. I'm using slashes, but they're being changed to dots. What am I doing wrong?