You must specify the port number on the command line.
Knowing how to read magazines is always helpful.
See In your logs you have a bunch of class names, but there is only one associated with your code:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at ServidorTCP.main(ServidorTCP.java:21)
The rest of them relate to java.lang, java.util, java.io, etc. classes that you have not encoded.
, :
java.lang.ArrayIndexOutOfBoundsException:
, . , 5, , , 6- . , ( RuntimeException, , )
, .
at ServidorTCP.main(ServidorTCP.java:21)
ServidorTCP ( java ServidorTCP 21.
, , :
20:
21: int puerto = new Integer(args[0]).intValue();
, puerto Integer, args [0]. args.
:
public static void main(String args[]){
.
, , 0 args .
, jcreator , , - "" "" - - " " , 8085.
21 :
int puerto = 8085;
, .
Espero que esto te ayude.
!