开发者

What need to do to copy Netbeans project on server?

I have problem regarding on netbeans project. I had build the project using netbeans on localhost. It run smoothly on localhost, but when I try copy this netbeans project to the company server it cannot be run as like on localhost. On the server, not has netbeans. Is it possible to run my netbeans project on server that have no netbeans?

If yes, how is it?Please he开发者_JAVA技巧lp me..

On my local machine I have netbeans, use tomcat and database postgres and at company server have java, jdk and database postgres.

Thank You.


Though the question is vague I will try to answer it. First of all, if you are creating a standard web project using netbeans then you should be able to right click on your project name and create a war file. In the output window you will see where the war file is created.

Now move your war file on the server, server will need a tomcat.

Copy the war file in TOMCAT_HOME\webapps dir and restart the tomcat.

If you see a new dir created under webapps with the same name as you war file then you have successfully deployed your project.

Still there are no guarantees that it will work there because you might have other issues related to db connection etc. Thanks

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜