NetBeans 8.0.2 fails to start Tomcat because of missing catalina.bat

Wade Guest picture Wade Guest · May 10, 2015 · Viewed 13.8k times · Source

I just finished setting up the prelimanary steps for a Java Web project on NetBeans. I installed NetBeans and created a network drive using Samba on my home Ubuntu Server, which has Tomcat7. When I try to run the example Hello World project, i get the following error:

Starting of Tomcat failed, the Z:\usr\share\tomcat7\bin\catalina.bat startup script is missing. C:\Users\\Documents\NetBeansProjects\WebApplication1\nbproject\build-impl.xml:1150: Starting of Tomcat failed, the Z:\usr\share\tomcat7\bin\catalina.bat startup script is missing. BUILD FAILED (total time: 3 seconds)

I checked the directory its is referencing and there is a catalina.sh file but no .bat file. Anyone know hints to get this file or how to get NetBeans to run the .sh file instead?

Answer

alejandro picture alejandro · Mar 31, 2016
  1. Download the appropiate zip file from https://tomcat.apache.org/. I use Tomcat 8.0.33 and I download zip file from the zip link in the Binary Distributions subsection of the 8.0.3 section download zip file.

  2. Open the zip file (you don't need uncompress it), go to bin folder, copy the catalina.bat file.

  3. Go to Apache Tomcat bin folder in you machine and paste the catalina.bat file.

  4. Go to you NetBeans, click on Services tag (window -> services), left click in ApacheTomcat, click Start option

  5. If must copy other files like setclasspath.bat, go to step 2.