0

I have created an application using javafx. The main method reads from a file javafxmap.xml. below is the code

public static void main(String[] args) {
    CurrentFormParam.param.put("window", "start");
    ControllerFactory.populateControllerList("javafxmap.xml");
    launch();       
}

This is running well when i am running this using eclipse. The problem arises when i made a deployable jar out of it. It is trying to find this file from outside jar file. I mean if my jar is at location /home/kumar/myprog.jar then it looking for javafxmap.xml at /home/kumar/javafxmap.xml. But my xml file is inside jar itself.

pb2q
  • 58,613
  • 19
  • 146
  • 147
Kumar Gaurav
  • 1,287
  • 3
  • 19
  • 47

0 Answers0