[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[training-working-group] Bug on eclipse external tools. Red button does not stop java.exe or java process.

I created this

filename:   ServerApp.bat
// inside the sample.bat
javac ServerApp.java
java ServerApp
//end of sample.bat file



I opened the external tools of eclipse. Under main tab

I set Location to                D:\bats\ServerApp.bat
I set working directory to  ${workspace_loc:/WebServer/src/main/java}

I press run... everything works fine...
Then I press the terminate button (red square button)

Then I run again the external tools with the same configuration above. It will now throw an exception

java.net.BindException: Address already in use: JVM_Bind
   at java.net.PlainSocketImpl.socketBind(Native Method)
   at java.net.PlainSocketImpl.bind(Unknown Source)
   at java.net.ServerSocket.bind(Unknown Source)
   at java.net.ServerSocket.<init>(Unknown Source)
   at com.server1.HttpServer.start(HttpServer.java:52)
   at ServerApp.main(ServerApp.java:23)
Channel gracefully closed.


I checked the Windows Task Manager. java.exe was not terminated.


Please help me how to resolve this... Attach here is a maven project. Please try it out... You may need to install maven2 plugin in your eclipse.

Attachment: WebServer.zip
Description: Binary data