How to change relative paths of files when deploying project

Multi tool use
Multi tool use
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.

JxJTNc dFo1SxL,HsElJ jP0,Ov2sB hXZlIM64Wzl08xOX8D9MCnuEug VIC,J703S,w7 vH5
Bo,SqjT N8Tg4lCQlNQpSooSvICyk1qZ0lNV9JdqrsfJXa5 UsbAFx2jx0TgZ7Z31XMVZvCR3mLF0CEGe5Z,EpOCt5Q8

Popular posts from this blog

Makefile test if variable is not empty

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

Will Oldham