How to change relative paths of files when deploying project

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


How to change relative paths of files when deploying project



This is my project structure:



enter image description here



enter image description here



When I execute my programm inside netbeans I load the xosc files using this path:


XMLReaderWriter.getXMLDocument("./src/Vorlagen/OpenScenario/OS_TemplateVTD.xosc");



And it works because I work inside the project. But after I deploy the project and execute the jar file I get this error:



enter image description here



The problem is that when I execute the jar file, it tries to load files from the "dist" order instead of the actuall folder. How can I deploy the files inside the dist order in order to access the files wen I execute the jar file?









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Arduino Mega cannot recieve any sketches, stk500_recv() programmer is not responding

Visual Studio Code: How to configure includePath for better IntelliSense results

C++ virtual function: Base class function is called instead of derived