Having a few issues setting the IP address statically on the K64F. I've placed the jwc_properties.ini file in the java directory on the SD card with the additional entries placed at the bottom of the file:
ip_method=static
ip_address=192.168.32.2
ip_netmask=255.255.255.0
ip_gateway=192.168.32.1
However, it always defaults to DHCP, how can I verify if the jwc_properties.ini file is being read? Also, when trying to start the CLI I receive an exception as such:
C:\Users\lad\Desktop\oracle-jmee-8-1-dp-fs-k64-mbed-bin\util>java -jar proxy.jar -socket 192.168.32.2
Proxy CLI shell failed to start listen due to java.net.BindException: Address already in use: JVM_Bind
java.net.BindException: Address already in use: JVM_Bind
at java.net.DualStackPlainSocketImpl.bind0(Native Method)
at java.net.DualStackPlainSocketImpl.socketBind(Unknown Source)
at java.net.AbstractPlainSocketImpl.bind(Unknown Source)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.bind(Unknown Source)
at java.net.ServerSocket.<init>(Unknown Source)
at com.oracle.midp.cli.TcpTransport.startListen(TcpTransport.java:41)
at com.oracle.midp.cli.ShellImpl$CLIShellThread.run(ShellImpl.java:132)
at java.lang.Thread.run(Unknown Source)
Trying to open socket connection with device: 192.168.32.2:2201
Connected to the socket: Socket[addr=/192.168.32.2,port=2201,localport=49448]
Open channel 8 with hash 0x7d87edff
Channel 8 CLOSED -> OPENED
notifyResponse AVAILABLE_RESPONSE on channel 8
Channel 8 OPENED -> AVAILABLE
Open channel 9 with hash 0x0
Channel 8 AVAILABLE -> REQUEST_SENT
notifyResponse ACK_RESPONSE on channel 8
Channel 8 REQUEST_SENT -> ACKNOWLEDGED
Channel 8 ACKNOWLEDGED -> DATA_SENT
notifyResponse AVAILABLE_RESPONSE on channel 8
Channel 8 DATA_SENT -> AVAILABLE
Channel 8 AVAILABLE -> REQUEST_SENT
notifyResponse ACK_RESPONSE on channel 8
Channel 8 REQUEST_SENT -> ACKNOWLEDGED
Channel 8 ACKNOWLEDGED -> DATA_SENT
notifyResponse AVAILABLE_RESPONSE on channel 8
Channel 8 DATA_SENT -> AVAILABLE
Any ideas?
Thanks,
Luis