Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I run/debug a Netbeans Platform application with a specific Working Directory?
    primarykey
    data
    text
    <p><strong>Goal</strong></p> <p>I'm currently developing an application in Netbeans using the Netbeans Platform on Windows (a cross-platform solution would be wonderful but something hacky for Windows if required is fine for now). The application communicates with a native C++ DLL through JNA. The DLL sits in a specified directory which I cannot control or change - say <strong>C:\DLL</strong>.</p> <p>The DLL itself loads some files for reading in values etc. but it does this using relative paths. So it requires the "current" directory to be C:\DLL. Again, this is something I can't change in this project. The DLL is something I have to communicate with as is (unfortunately). </p> <p><strong>Problem</strong></p> <p>For regular JAVA applications I've had the option in Netbeans to set the working directory of the launched application like shown below:</p> <p><a href="http://i.imgur.com/3HuQKS8.png" rel="nofollow">http://i.imgur.com/3HuQKS8.png</a></p> <p>But in the Netbeans Platform framework/template there are no such options. For the most part it looks like Netbeans just makes the directory of the current file I have focused in the Editor pane to be the Current Working Directory. </p> <p>So how do I go about doing this? I might be able to run the application through a shortcut that sits in C:\DLL but this doesn't help when I'm debugging the application through Netbeans. </p> <p>I want to know how I can run/debug this Netbeans Platform application with the current working directory set. </p> <p><strong>Clarifying Netbeans Platform</strong> The Netbeans Platform is an application framework of sorts. Has a pre-defined structure based on "modules" that interact to form the full application. The whole thing is hosted inside the Netbeans Platform environment which provides each of your modules with tabbed/docking windows. Kind of nice to develop larger applications.</p> <p>More information here: <a href="https://netbeans.org/kb/trails/platform.html" rel="nofollow">https://netbeans.org/kb/trails/platform.html</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload