How to run NetBeans 31 through terminal as a specific instance by project? #9574
Replies: 1 comment
|
Yes, Each userdir carries its own settings, its own list of open projects and its own window layout, so you end up with two genuinely separate IDE windows you can put on different monitors and configure independently of each other. The reason your current commands collapse into one window is that NetBeans keeps a lock file inside the userdir and uses it to notice an instance that's already running. Both of your invocations resolve to the same default userdir, so the second one finds that lock, hands the project path over to the process that's already up, and exits. Point them at different userdirs and there's no lock to find, so you get a second process. You don't need to pass One adjustment to the mental model that might help. The userdir is the instance, not the project. Passing a project path on the command line only opens that project inside whichever instance the userdir resolves to. So the userdir is what decides which window you land in, and opening the project is a separate thing you do once and let it remember. |
Uh oh!
There was an error while loading. Please reload this page.
Hello Friends
I have installed NetBeans 31 in Ubuntu and I am able to execute the IDE in peace through the terminal with the
./netbeansscript file execution. I've created two projects as follows:For simplicity consider the projects as:
Now in Eclipse is possible open the IDE for a dedicated workspace as follows:
Therefore is opened 2 instances of the IDE. Each one for a dedicated workspace. So is possible move each instance (window) to a specific monitor. Furthermore for each instance is possible edit it isolated against the other (.ie: the Views)
I know the
workspaceterm does not exist in NetBeans and so far the best equivalence is aproject.But practically the second project is opened within the single unique instance. In other words together with the first project
Therefore:
Question
Is possible accomplish that goal?
Thanks in advance
All reactions