Recently good busy good busy, sorting out the mood for everyone to share under their work encountered a little skill, hope to meet the same trouble students a little help.
We know that the Java Project War package can be automatically packaged in the Eclipse and MyEclipse tools, right, and then export the war package, but I found that one of my projects was a little bit of a hassle during the war package, and after the exported war package was opened, there was a lot less. Obviously there is a problem. Then how to do it, online search a lot of folk remedies have no effect, consult colleagues, we have not encountered this situation.
In addition to this approach, we can use the DOS command to manually play the war package:
First, open the DOS command line, type "jar", we found that it is not an internal or external command such as the error, it is probably your Java environment is not configured, we can use the Java_home method or directly in the path configuration, and so configured, (note your JDK version, There is a jar.exe and Javac.exe version suitable) We then typed "jar", the following effect will appear, indicating that the configuration was successful.
Let's go to your project with a DOS command.
Okay, now we're going to run the commands and pack them manually
Enter and wait for it to run automatically:
OK, pack it up, now let's look at the war package under the directory
It's already done, we put it under Tomcat's WebApps, start Tomcat, and unzip it automatically. OK, that's it.