How to run another Java project from a running project specially in NetBeans and in case of a desktop application? -
i have database applications (crud), , want create desktop application buttons such clicking on them lead run applications. how this?
i have tried adding crud projects class path desktop application, didn't work out, exception in crud's lines indicating class can not found or something.
i'm using netbeans , database applications created automatically netbeans mysql server.
ok, found solution on although not wanted, it's working. first, built database applications jar files. next, in event handler of buttons added line of code in order execute jar file:
runtime.getruntime().exec("java.exe -jar crudapp1.jar");
so every time click button application runs.
although working fine me, seems not right solution. rather prefer solutions adding classpaths or similar, because of conflict in class name, don't know come from, classpaths didn't work.
Comments
Post a Comment