Page 1 of 1

Ubuntu 8.04 + GUI (wont work)

Posted: Thu Oct 01, 2009 9:53 am
by Fritz
After running "newlisp-edit" in terminal, I see freezed GUI window (screenshot related). Any attemts to select menu or enter text in GUI window are unsuccessful: no reaction.

Java -version:
java version "1.5.0"
gij (GNU libgcj) version 4.2.4 (Ubuntu 4.2.4-1ubuntu3)

newlisp -h
newLISP v.10.1.5 Copyright (c) 2009 Lutz Mueller. All rights reserved.

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 8.04.3 LTS
Release: 8.04
Codename: hardy

screenshot:
http://img7.imageshost.ru/imgs/091001/e ... /83093.png

Posted: Thu Oct 01, 2009 12:12 pm
by Lutz
You need to run the original Java version from Sun. The preinstalled GNU versions on UBUNTU are still not compatible.

Download the Java SE Runtime Environment (the full development environment is not required).

Install it anywhere, e.g. in usr/local/ and make a softlink link of the java executable to /usr/bin/java. On my machine this went like this:

Code: Select all

ln -s /usr/local/jre1.6.0_13/bin/java  /usr/bin/java
I downloaded this: jre-6u16-linux-i586.bin, not the RPM version. You run this as a script in /usr/local as administrator or using sudo.

ps: on this page http://java.sun.com/javase/downloads/index.jsp scroll down to the title "Java SE Runtime Environment (JRE)"

Posted: Thu Oct 01, 2009 12:37 pm
by Jeff
I just end up with a bunch of "retrying to connect" messages and, finally, "server could not connect to 0.0.0.0:47012".

I'm running fedora 10, and my firewall isn't blocking local connections or anything - it doesn't work with the firewall off, either, and selinux is running permissive.

Posted: Thu Oct 01, 2009 12:46 pm
by Lutz
What version of Java are your running? Should be the original Sun JRE. Do you have the soft link to /usr/bin/java ?

Posted: Thu Oct 01, 2009 12:47 pm
by Jeff
Lutz wrote:What version of Java are your running?
1.6.0.16
Lutz wrote:Should be the original Sun JRE. Do you have the soft link to /usr/bin/java ?
Yep.

Posted: Thu Oct 01, 2009 1:43 pm
by Lutz
Normally when doing:

Code: Select all

$ newlisp-edit 

;or

$ newlisp my-gui-app.lsp
$ is the shell prompt. newLISP starts first, then the newLISP process starts the Java server.

47011 is the port for newlisp <--- guiserver
47012 is the port for newlisp ---> guiserver

Instead try this:

Code: Select all

java -jar /usr/share/newlisp/guiserver.jar 47011 /usr/bin/newlisp-edit
or any other of the demo apps instead newlisp-edit. This starts the guiserver first.

Posted: Thu Oct 01, 2009 1:45 pm
by Jeff
Same again:
newLISP-GS v.1.32 on Linux
double buffering supported.
guiserver starting newLISP "newlisp /usr/bin/newlisp-edit 47011 javastart &"
guiserver finished exec
listening on 47011
accepted connection from 0.0.0.0
connecting to 0.0.0.0:47012
retrying to connect
retrying to connect
retrying to connect
retrying to connect
retrying to connect
retrying to connect
retrying to connect
retrying to connect
retrying to connect
retrying to connect
retrying to connect
retrying to connect
retrying to connect
retrying to connect
retrying to connect
retrying to connect
retrying to connect
...

Posted: Thu Oct 01, 2009 2:40 pm
by Fritz
Lutz wrote:You need to run the original Java version from Sun. The preinstalled GNU versions on UBUNTU are still not compatible…
Thanx, it works. I have replaced link /usr/bin/java on version 1.6 and GUI works now.

Posted: Thu Oct 01, 2009 4:16 pm
by Lutz
I am glad it works, but I wonder about the screen shot you posted earlier, because half of the editor/IDE was missing there.

This is how the editor (left in the screen shot) should look like:

http://www.newlisp.org/images/UbuntuLinux.png

Posted: Thu Oct 01, 2009 5:16 pm
by Fritz
Lutz wrote:…how the editor (left in the screen shot) should look like…
Yep, it has now a «test» part downwards, where I can try to evaluate something. I have marked on your screenshot windows I have. Can not post a photo of my own screen right now, because I’m at the home already, using another PC.

http://img7.imageshost.ru/imgs/091001/6 ... /524da.png

Posted: Thu Oct 01, 2009 5:23 pm
by Lutz
The other windows are just demo applications accessible from the Help menu.