newLISP Fan Club

Forum => newLISP and the O.S. => Topic started by: dukester on July 23, 2016, 10:15:30 PM

Title: Guiserver on Win10
Post by: dukester on July 23, 2016, 10:15:30 PM
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 ....
Title: Re: Guiserver on Win10
Post by: jazper on August 09, 2016, 03:35:44 AM
Do you have Java installed?  I had no problem with newLISP installer on win 10 (64 bit) a few days ago
Title: Re: Guiserver on Win10
Post by: dukester on August 09, 2016, 04:59:23 AM
Java is installed and kept up to date!! :)  Other Java-centric software run without a problem.
Title: Re: Guiserver on Win10
Post by: jazper on August 11, 2016, 02:39:12 AM
Try running guiserver.jar from java
Title: Re: Guiserver on Win10
Post by: dukester on August 11, 2016, 05:55:33 AM

c:binnewlisp>java newlisp.jar
Error: Could not find or load main class newlisp.jar
Title: Re: Guiserver on Win10
Post by: dukester on August 11, 2016, 04:00:08 PM
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)
Title: Re: Guiserver on Win10
Post by: porg on May 21, 2017, 07:44:35 PM
I have the exact same issue, except on ubuntu 16.04



It works fine on my windows 7 box. What the hell guys?
Title: Re: Guiserver on Win10
Post by: xytroxon on May 23, 2017, 11:05:10 PM
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
Title: Re: Guiserver on Win10
Post by: porg on May 27, 2017, 09:44:00 AM
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).
Title: Re: Guiserver on Win10
Post by: porg on May 27, 2017, 09:49:14 AM
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)
Title: Re: Guiserver on Win10
Post by: porg on May 27, 2017, 09:57:34 AM
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