Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

best way to 'export' a netbeans project

 
Bhaarat Sharma
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Freddy Wong
Ranch Hand
Posts: 959
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Bhaarat Sharma
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic