Guiserver on Win10

Started by dukester, July 23, 2016, 10:15:30 PM

Previous topic - Next topic

dukester

Will not boot for me! A terminal window flashes by for a second or so, and then nothing. I accept all the defaults when I install. Ideas please!  TIA ....
duke

jazper

#1
Do you have Java installed?  I had no problem with newLISP installer on win 10 (64 bit) a few days ago

dukester

#2
Java is installed and kept up to date!! :)  Other Java-centric software run without a problem.
duke

jazper

#3
Try running guiserver.jar from java

dukester

#4

c:binnewlisp>java newlisp.jar
Error: Could not find or load main class newlisp.jar
duke

dukester

#5
Here's some more clues:



c:binnewlisp>java -jar guiserver.jar
newLISP-GS v.1.66 on Windows 10
 double buffering not supported.
 listening on 64001
Exception in thread "main" 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 java.net.ServerSocket.<init>(Unknown Source)
        at guiserver.main(guiserver.java:94)
duke

porg

#6
I have the exact same issue, except on ubuntu 16.04



It works fine on my windows 7 box. What the hell guys?

xytroxon

#7
If I remember correctly, you have to install Java on Ubuntu first. Check to see if you have Java istalled.

>java -version

java version "1.7.0_131"
OpenJDK Runtime Environment (IcedTea 2.6.9) (7u131-2.6.9-0ubuntu0.14.04.2)
OpenJDK 64-Bit Server VM (build 24.131-b00, mixed mode)

-- xytroxon
\"Many computers can print only capital letters, so we shall not use lowercase letters.\"

-- Let\'s Talk Lisp (c) 1976

porg

#8
Yeah - i have java installed, open jdk 1.7



I trigger the guiserver lisp similar to my windows install and the command line says its listening on a specific port. I wait for the ide to start, thinking that java needed to spin up to display the gui itself (which never appears).

porg

#9
Tried installing open jdk 1.8 - same issue:
>sudo java -jar guiserver.jar
newLISP-GS v.1.66 on Linux
 double buffering supported.
 listening on 64001
Exception in thread "main" java.net.BindException: Address already in use (Bind failed)
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
at java.net.ServerSocket.bind(ServerSocket.java:375)
at java.net.ServerSocket.<init>(ServerSocket.java:237)
at java.net.ServerSocket.<init>(ServerSocket.java:128)
at guiserver.main(guiserver.java:94)


Java installed:
>java -version
openjdk version "1.8.0_131"
OpenJDK Runtime Environment (build 1.8.0_131-8u131-b11-0ubuntu1.16.04.2-b11)
OpenJDK 64-Bit Server VM (build 25.131-b11, mixed mode)

porg

#10
OK, had a brain moment -

so since the port was already bound, i tried different ports and it listens on them successfully - but i still get no gui display.



So just ran lsof to get  he pid of the process occupying newlisp's port, and i killed the process:

>lsof -i:64001
COMMAND  PID  USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
java    3283 serv1   58u  IPv6  30233      0t0  TCP *:64001 (LISTEN)
> kill 3283
>sudo java -jar guiserver.jar
newLISP-GS v.1.66 on Linux
 double buffering supported.
 listening on 64001


Should work the same way on the windows computer for the original question - try killing whatever process is occupying that port, or pick a different port like this: java -jar guiserver.jar 64002