This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes best way to 'export' a netbeans project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "best way to Watch "best way to New topic
Author

best way to 'export' a netbeans project

Bhaarat Sharma
Ranch Hand

Joined: Jun 04, 2007
Posts: 96
Hi

What is the best way to export a netbeans project from one computer to another. In eclipse we can export it as a ear or war and then just open that archive in eclipse when we go to another computer.

Is there anything similar in Netbeans?


omnipresent
Freddy Wong
Ranch Hand

Joined: Sep 11, 2006
Posts: 959

Just copy the whole directory to the other machine and use NetBeans to open it. If you encounter missing reference, e.g. libraries are located in different path, you can just right click on the project and click resolve the missing reference or something like that.


SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
My Blog
Bhaarat Sharma
Ranch Hand

Joined: Jun 04, 2007
Posts: 96
haha I wish it would be so easy. Before posting the Q I had already done what you have suggested but the problem is that when you copy the Netbeans project directory over to the other machine and try to open it with netbeans, it goes crazy. Spits out a message saying 'this project was recently opened - please restart the IDE'...ofcourse restarting the IDE does not work either.

So the hard fought solution is that you have to copy the entire netbeans directory over to the other machine..delete 'dist', 'build' and 'nbproject' folders from the copied directory (also delete any occurences of a build.xml file) and rebuild the project on the new machine.

As much as I like netbeans...I miss the easy features of 'import/export' in eclipse.
Steven Thornton
Greenhorn

Joined: Nov 27, 2007
Posts: 1
Hi, I have Glassfish (Java App Server 9.1) on my development machine. I also have Java App Server 9.1 installed on the target server, from the NetBeans IDE I go to 'Services' and add the destination server. Then in the 'Projects' tab I right-click on my project and select properties - under run you can select which server (your local) or remote server. Then select right click your app again and select unDeploy/Deploy and the application is automatically deployed to the remote server. You can switch between deploying locally or remotely in a matter of seconds!!

Hope this helps! I'm a new user to NetBeans and Java (Previously a C#'er)

Regards

[ November 27, 2007: Message edited by: Steven Thornton ]
[ November 27, 2007: Message edited by: Steven Thornton ]

Steve Thornton<br />Thornton Software UK
 
wood burning stoves
 
subject: best way to 'export' a netbeans project
 
Similar Threads
Exporting Netbeans Templates
Export Netbeans to Eclipse
applet socketpermissions
Do you store IDE-specific files in your repository?
Migrating From NetBeans to Eclipse