I have a .jar file that I want to execute in java. The .jar file is located inside the main project directory. How can I do that
public void pickColor (ActionEvent event) throws IOException, InterruptedException {
String filePath = "pickColor.jar";
Runtime.getRuntime().exec(" java -jar " + filePath);
}
If I add the full path of the file it works ...