I downloaded and installed Java SE Development Kit 7u71 and Apache Tomcat (since JDK7u71 contains JRE, so I didn't download Java SE Runtime Environment 7u71). No problem with Apache Tomcat. Then I downloaded and installed GeoServer 2.6.1 (Windows Installer,Run manually), the wizard found automatically the JRE path: C:\Program Files\Java\jdk1.7.0_71 (I checked it, there is a JRE file in jdk1.7.0_71). After this I tried to run GeoServer,but it didn't work.

I then checked Environmental Variables, there was no JAVA_HOME, so I added it with value C:\Program Files\Java\jdk1.7.0_71. Then I restarted my computer, GeoServer still didn't work. Then I changed ‘GEOSERVER_DATA_DIR’ system variable to C:\Users[MY USER NAME HERE]\AppData\Roaming\Geoserver\data_dir, and restarted my computer, still, GeoServer did not work.

What could be the problem? How can I make GeoServer work? Any help?

enter image description here enter image description here enter image description here enter image description here

  • 3
    The Windows installer installs a Jetty server so Tomcat is not involved except if it is running in the 8080 port then it probably prevents Jetty and GeoServer from starting. In the "Run manually" mode GeoServer is started from geoserver-2.6.1\bin\startup.bat. What is the error when you do run the batch file?
    – user30184
    Commented Nov 24, 2014 at 18:00
  • 1
    @user30184 Hi, I edited my question so you can see the file. Commented Nov 24, 2014 at 20:16
  • 1
    You can read there: Address already in use. I bet that your Tomcat is running in localhost:8080. Stop it if you want to use GeoServer like you have installed it now with Jetty that also wants to run in 8080. Alternatively if you want to use Tomcat you must install GeoServer from WAR archive.
    – user30184
    Commented Nov 24, 2014 at 21:27
  • 2
    However, you can also let Tomcat to run in 8080 if you need it for something else. Uninstall GeoServer and re-install. Installer asks which port the Jetty server should listen. Configure it to use for example port 8090 and everything should be fine.
    – user30184
    Commented Nov 24, 2014 at 22:33
  • 1
    @user30184 It works now! Thanks a lot for your help! Commented Nov 25, 2014 at 9:15

1 Answer 1


The error you are getting "java.net.BindException: Address already in use: bind" means that something on your machine is already running on the port GeoServer is trying to use (usually port 8080 by default).

Try editing GeoServer's start.ini file and set jetty.port to something like 8081.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.