ProcessBuilder debugging
问题 I created an executable jar and executed it using process builder from another java program. Here's my code - public class SomeClass { public static void main(String[] args) { Process p = null; ProcessBuilder pb = new ProcessBuilder("java", "-jar", "src.jar"); pb.directory(new File("/Users/vivek/servers/azkaban-0.10/TestApp/src")); try { p = pb.start(); } catch(Exception ex) { ex.printStackTrace(); } } } I'm trying to now debug the src.jar from eclipse. I provided the project src as external