I can not retrieve a xml file with my application. By testing my application with NetBeans, the file is found correctly. But when I run the software after construction, it does look over the file based on the Java executable. Here's the code:
I get my file like this:
The file is physically located at the root folder of my project. So, as mentioned above, when I run my project in NetBeans, no worries. But when I run the application after construction, it finds the file in my home directory:Code:sxb.build document = (new File ( "data.xml"));
Same thing if I specify "./data.xml" (he looks at /home/bux/./data.xml). How can I do? And is this normal?Code:/home/bux/data.xml
Bookmarks