M
Marcin Rodzik
Following my previous thread...
http://groups.google.com/group/comp...90646/70e33a7d6bb1181a?hl=en#70e33a7d6bb1181a
How can I execute another class existing in my project as a standalone
(external) Java application using the method Runtime.exec(String) ?
There is some problem with class visibility... I want it to be
resistant to user's possible actions such as moving a file to another
directory... I would like to enclose everything in one JAR file and
not to think about where the user will place it (such a solution was
suggested in: http://groups.google.com/group/comp..._frm/thread/11e367a28a0b41fd/9d69aa5ef2e34211
but no detailed description how to achieve it was given).
I tried to do it on my own:
proc = Runtime.getRuntime().exec("java ClassName");
JVM is lanuched and finishes because it can't find the class. Or more
precisely, JVM can see the class only if it is located in working
directory and everything is default ("no") package. What if want to
invoke a class from another package?
http://groups.google.com/group/comp...90646/70e33a7d6bb1181a?hl=en#70e33a7d6bb1181a
How can I execute another class existing in my project as a standalone
(external) Java application using the method Runtime.exec(String) ?
There is some problem with class visibility... I want it to be
resistant to user's possible actions such as moving a file to another
directory... I would like to enclose everything in one JAR file and
not to think about where the user will place it (such a solution was
suggested in: http://groups.google.com/group/comp..._frm/thread/11e367a28a0b41fd/9d69aa5ef2e34211
but no detailed description how to achieve it was given).
I tried to do it on my own:
proc = Runtime.getRuntime().exec("java ClassName");
JVM is lanuched and finishes because it can't find the class. Or more
precisely, JVM can see the class only if it is located in working
directory and everything is default ("no") package. What if want to
invoke a class from another package?