简体   繁体   English

使用Java文件编译Netbeans Web应用程序(是否要在XAMPP上进行部署?)

[英]Compile Netbeans Web app with Java files (for deployment on XAMPP?)

  1. 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应用程序中调用它们。

  2. It is using NetBean's Tomcat. 它使用的是NetBean的Tomcat。

  3. After "Clean and Build", I get a WAR file in dist/ 在“清理并构建”之后,我在dist /中获得了一个WAR文件。

  4. I put this WAR file into XAMPP/tomcat/webapps directory 我将此WAR文件放入XAMPP / tomcat / webapps目录

  5. 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.

相关问题 Netbeans Java Web应用程序部署到Web主机 - Netbeans Java web app deployment to web host 在Mac OSX 10.7.5上的Netbeans中编译Java 1.5 Web应用程序 - Compile Java 1.5 web app in Netbeans on Mac OSX 10.7.5 Java Web应用程序仅在Netbeans中运行 - Java web app only working in Netbeans 在本地部署没有Netbeans的Java Web应用程序 - deploying java web app without netbeans locally 如何在NetBeans IDE中将Scala和Java文件一起编译? - how to compile scala and java files to together in netbeans IDE? 无法在命令行上将Netbeans生成的.java文件编译为.class - Cant compile Netbeans generated .java files into .class on command line 在Heroku for Java Web应用程序上的持续部署/集成 - Continuous deployment/integration on Heroku for Java web app 如何将 java web 中的 JDBC 连接到 ZF8756D88C7D3B98E2E3E3F(本地主机)? - How can i connect my JDBC in java web to XAMPP (localhost) (NETBEANS)? 将JAVA WEB APP(netbeans)部署到AWS或GOOGLE APP ENGINE - Deploying JAVA WEB APP (netbeans) to AWS or GOOGLE APP ENGINE 使用netbeans gui编辑器在用NetBeans编写的命令行Java桌面应用程序中进行编译? - Compile in command line java desktop app written in NetBeans with netbeans gui editor?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM