[英]Compile Netbeans Web app with Java files (for deployment on XAMPP?)
I have NetBeans web application, with HTML, JavaScript, CSS files... and I have some Java files which I manage to call in the web application with DirectWebRemoting. 我有NetBeans Web应用程序,带有HTML,JavaScript,CSS文件...,还有一些Java文件,可以通过DirectWebRemoting在Web应用程序中调用它们。
It is using NetBean's Tomcat. 它使用的是NetBean的Tomcat。
After "Clean and Build", I get a WAR file in dist/ 在“清理并构建”之后,我在dist /中获得了一个WAR文件。
I put this WAR file into XAMPP/tomcat/webapps directory 我将此WAR文件放入XAMPP / tomcat / webapps目录
Run the application with XAMPP Tomcat, but then the Java files would not work using XAMPP's Tomcat. 使用XAMPP Tomcat运行该应用程序,但是Java文件将无法使用XAMPP的Tomcat运行。
Question: How do I compile the build, so that when I put into XAMPP it would work? 问题:如何编译该版本,以便在放入XAMPP时可以正常工作? This is so that everytime I run the application I don't need to turn NetBeans on.
这样一来,每次我运行应用程序时,都不需要打开NetBeans。
Use the Tomcat Manager application to upload the war file, dropping them directly in the /webapps directory doesn't work for me sometimes too. 使用Tomcat Manager应用程序上载war文件,有时将它们直接放在/ webapps目录中对我也不起作用。 Here's a link to know more about using Tomcat Manager Application
这是一个链接 ,可了解有关使用Tomcat Manager应用程序的更多信息
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.