Ubuntu 8.04 + GUI (wont work)

Guiserver, GTK-server, OpenGL, PostScript,
HTML 5, MIDI, IDE
Locked
Fritz
Posts: 66
Joined: Sun Sep 27, 2009 12:08 am
Location: Russia

Ubuntu 8.04 + GUI (wont work)

Post 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

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post 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)"

Jeff
Posts: 604
Joined: Sat Apr 07, 2007 2:23 pm
Location: Ohio
Contact:

Post 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.
Jeff
=====
Old programmers don't die. They just parse on...

Artful code

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post 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 ?

Jeff
Posts: 604
Joined: Sat Apr 07, 2007 2:23 pm
Location: Ohio
Contact:

Post 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.
Jeff
=====
Old programmers don't die. They just parse on...

Artful code

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post 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.

Jeff
Posts: 604
Joined: Sat Apr 07, 2007 2:23 pm
Location: Ohio
Contact:

Post 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
...
Jeff
=====
Old programmers don't die. They just parse on...

Artful code

Fritz
Posts: 66
Joined: Sun Sep 27, 2009 12:08 am
Location: Russia

Post 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.

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post 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

Fritz
Posts: 66
Joined: Sun Sep 27, 2009 12:08 am
Location: Russia

Post 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

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

The other windows are just demo applications accessible from the Help menu.

Locked