Results 1 to 11 of 11
  1. #1
    SwinGirl is offline Member
    Join Date
    Nov 2007
    Posts
    24
    Rep Power
    0

    Talking a really stupid question

    does anyone knows, how to open two netbeans at same time+
    :confused:

  2. #2
    JavaBean's Avatar
    JavaBean is offline Moderator
    Join Date
    May 2007
    Posts
    1,270
    Rep Power
    9

    Default

    Hmm.. i htink if you can point a different .netbeans directory (which is in your home directory but i dont remember how they call it. This directory basically holds all information about your IDE, like preferences. I dont remember the terminology they used for this directory.) for each of the instances you can run two instances at the same time.I guess Netbeans also checks this directory for a lock file to detect if the IDE is already running.

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Yes it is. I have this experience before. But you can do one stupid thing to the machine. If you really want to do this, install to copies of NetBeans in two HDD partitions. Then you can run two IDEs at the same time. At that point, as JavaBean says, IDEs point to two different directories and each one doesn't know that it is already running. I've done this before, but it is really stupid thing.

  4. #4
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    7

    Default

    Yes, you can. Its a really bad idea, as its really slow. I used to get it by accident when I lost the NB window and would click on the desktop icon to get another.

    I haven't tried it on a really fast machine, but on an average machine, its a bad idea.

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Even on a past machine it's a bad idea. I've test it on a 3GHz, 2GB machine. Two instance of IDE is quite good, but still able to stuck the whole system.

    Even on a low configuration machine, by a single instance you can get system clash, because of the previous instance clash on your system. I'll explain it more in this way. Say you open the IDE and close it within few seconds. Then again open it in few seconds and keep going few times, may be two times enough. At some point you got a warning message that another instance is running. But physically you can't see any. Reason is, even you close the IDE there modules are loading. It can't suddenly killed. If it's happened few times, you get the memory issues.

  6. #6
    rjuyal's Avatar
    rjuyal is offline Senior Member
    Join Date
    Mar 2008
    Location
    Delhi, India
    Posts
    194
    Rep Power
    7

    Default

    netbeans.exe --userdir C:\MyOtherUserdir1

    netbeans.exe --userdir C:\MyOtherUserdir2

    should solve your problem.


    --

    BTW

    Have you heard about vastly used IDE Eclipse [ What are you using to write your code? ;) ]
    i am the future

  7. #7
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  8. #8
    rjuyal's Avatar
    rjuyal is offline Senior Member
    Join Date
    Mar 2008
    Location
    Delhi, India
    Posts
    194
    Rep Power
    7

    Default

    Oh, Ah, ooch!

    Like vastly used Windows is not the Best.

    how about creating a POLL of best IDE :rolleyes:
    i am the future

  9. #9
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  10. #10
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    7

    Default

    Quote Originally Posted by rjuyal View Post
    how about creating a POLL of best IDE :rolleyes:
    And how do you quantify "best"? You point out that Windoze's popularity is not a valid measure of "best" so what do you suggest?

    The "which do you use" poll is just measuring popularity.

  11. #11
    Join Date
    Jun 2008
    Posts
    5
    Rep Power
    0

    Default

    You may have several projects open in FDI at the same time. When a project is more open, you must specify what is the main project. The main project is one that FDI executed when you click the button Run main project. To switch the main project, click on the button right-m dares on a project in the Project window and choose Set as the primary project.

    When you create a new project Ruby, FDI creates a file called main.rb by default, and defines this file as the main script. When you click the button Run main project (Run button main project), FDI saves all the changes and runs the main script. To switch to a different start up script, click with the right mouse button in the node Project Projects in the window and choose Properties from the menu pop up. Select the Run category and, in the text field main script, enter the file name.

    Note: main.rb the file is created for Ruby projects. When you create a project Ruby on Rails, as shown in the section Creating a project Ruby on Rails, FDI does not create a file main.rb.

    Try

    Below are the steps to create a project Ruby.

    1.

    If you have not already, start the IDE, using the appropriate stage in the following list:
    * Windows, Solaris and Linux. Double-click the desktop of NetBeans.
    * Mac Double-click the folder NetBeans installation.
    2. Right-click the mouse on an empty place in the Project window and choose New Project in pop-up menu.
    3. As assistant to New Project, select Ruby in the Categories panel, select Application Projects Ruby in the panel and click Next. If this is the first project Ruby you opened or created, should display a dialog box asking you to choose an interpreter Ruby. Select one of the options for interpreter and click OK.
    4.

    Call the project, for example, simple_ruby_application, and click Finish.

    FDI main.rb displays the file in the editor. Notice how the code puts flame to display the string "Hello World".
    5. The Project window shows a logical view of the files of the project. Click the tab Archives to view the physical layout, then go back to the window Projects. With projects Ruby, the views are very similar.
    6.

    Click the main project Run (Run button main project) to run the application.

Similar Threads

  1. Question mark colon operator question
    By orchid in forum Advanced Java
    Replies: 9
    Last Post: 12-19-2010, 08:49 AM
  2. JSP Question
    By maheshkumarjava in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 03-29-2008, 10:51 AM
  3. Quick Stupid Question
    By bluekswing in forum New To Java
    Replies: 7
    Last Post: 01-08-2008, 06:35 PM
  4. JNI question
    By javaplus in forum New To Java
    Replies: 0
    Last Post: 12-24-2007, 10:18 AM
  5. Need help with a question please
    By sonal in forum New To Java
    Replies: 1
    Last Post: 11-29-2007, 09:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •