Ubuntu 8.04 + GUI (wont work)

Started by Fritz, October 01, 2009, 02:53:19 AM

Previous topic - Next topic

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/e9c1f5d7ee/83093.png">http://img7.imageshost.ru/imgs/091001/e ... /83093.png">http://img7.imageshost.ru/imgs/091001/e9c1f5d7ee/83093.png

Lutz

#1
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:


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">http://java.sun.com/javase/downloads/index.jsp scroll down to the title "Java SE Runtime Environment (JRE)"

Jeff

#2
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...



http://artfulcode.net\">Artful code

Lutz

#3
What version of Java are your running? Should be the original Sun JRE. Do you have the soft link to /usr/bin/java ?

Jeff

#4
Quote from: "Lutz"What version of Java are your running?


1.6.0.16


Quote from: "Lutz"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...



http://artfulcode.net\">Artful code

Lutz

#5
Normally when doing:


$ 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:


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

#6
Same again:


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



http://artfulcode.net\">Artful code

Fritz

#7
Quote from: "Lutz"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

#8
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">http://www.newlisp.org/images/UbuntuLinux.png

Fritz

#9
Quote from: "Lutz"...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/654130f269/524da.png">http://img7.imageshost.ru/imgs/091001/6 ... /524da.png">http://img7.imageshost.ru/imgs/091001/654130f269/524da.png

Lutz

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