demos wont run

Machine-specific discussion
Unix, Linux, OS X, OS/2, Windows, ..?
Locked
slenkar
Posts: 7
Joined: Fri Jun 12, 2009 8:42 pm

demos wont run

Post by slenkar »

Whenever I try to run a demo in the guiserver folder, I have to press ctrl alt delete to shut down the IDE after pressing run twice (first time doesnt do anything) then the program appears after I shut down the IDE (sometimes)

TedWalther
Posts: 608
Joined: Mon Feb 05, 2007 1:04 am
Location: Abbotsford, BC
Contact:

Post by TedWalther »

On what platform?

What is your operating system, what type of hardware are you using?

slenkar
Posts: 7
Joined: Fri Jun 12, 2009 8:42 pm

Post by slenkar »

windows xp tablet edition
core 2 duo processor 1gb of RAM
HP laptop

cormullion
Posts: 2038
Joined: Tue Nov 29, 2005 8:28 pm
Location: latiitude 50N longitude 3W
Contact:

Post by cormullion »

Could be worth checking the Java version too. I don't know what it should be, but I'm seeing:

Code: Select all

Java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)
on MacOS X.

slenkar
Posts: 7
Joined: Fri Jun 12, 2009 8:42 pm

Post by slenkar »

i have java 1.6

when i try to start a demo like all fonts demo it says:
("C" ".")
(lambda (gs:id gs:action) (net-send gs:out (string "frame-resized " gs:id " " gs:action
"\n")))

If I press the green button again then the buttons grey out

then i have to end the IDE with the task manager

Kazimir Majorinc
Posts: 388
Joined: Thu May 08, 2008 1:24 am
Location: Croatia
Contact:

Post by Kazimir Majorinc »

I remember I had same problem and solved it with some reinstalations, using default settings. Yes, it was the problem, but in Windows it has to be done from time to time this way or another. I think Java was the problem, but usually it is easier to reinstal everything than trying to fix error.

You can try clean install in Sun's Virtual Box, so you'll be sure that problem is not in hardware incompatibility.

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

Post by Lutz »

Try to start the demo programs from a command prompt like this:

Code: Select all

newlisp "c:\Program Files\newlisp\guiserver\button-demo.lsp"
The fact that the IDE is running tells us that Java 1.6 is OK. The IDE editor is written in newLISP and works together with the java guiserver.

I believe you are running some special modified Windows version for the tablet.

slenkar
Posts: 7
Joined: Fri Jun 12, 2009 8:42 pm

Post by slenkar »

I tried this:

newlisp "c:\Program Files\newlisp\guiserver\button-demo.lsp"

on the windows 'Run' dialog and then a blank console window opened. Nothing happened after that.

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

Post by Lutz »

Try to do this in a command window, not in the run-command. May be you don't have a command shell, and that could be the problem.

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

Post by Lutz »

... and before I forget it, try this (also in a command shell):

Code: Select all

"c:\Program Files\newlisp\guiserver.jar" 47011 c:\myprogs\MyApplication.lsp
replace the right part with any of the demo apps. May be this method works also in the run dialog.

slenkar
Posts: 7
Joined: Fri Jun 12, 2009 8:42 pm

Post by slenkar »

i tried running cmd and got the console window, then I tried

"c:\Program Files\newlisp\guiserver.jar" 47011 "c:\Program Files\newlisp\guiserver\button-demo.lsp"

but nothing happens

slenkar
Posts: 7
Joined: Fri Jun 12, 2009 8:42 pm

Post by slenkar »

AARGH for some reason this worked:

in the console

newlisp "c:\Program Files\newlisp\guiserver\button-demo.lsp"

I tried it yesterday and it didnt work, ? ! ? !? ! ? !? ! ? ! ?


I just tried it again in the console
and it DIDNT WORK,

now im totally confused.

slenkar
Posts: 7
Joined: Fri Jun 12, 2009 8:42 pm

Post by slenkar »

ok it works when I do 2 different commands:

"c:\Program Files\newlisp\guiserver.jar" 47011 "c:\Program Files\newlisp\guiserver\button-demo.lsp"

and then:

newlisp "c:\Program Files\newlisp\guiserver\button-demo.lsp"

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

Post by Lutz »

The demo should come up after just one of these statements. Then the Windows task manager should show exactly two new processes, a Java Process and a newLISP process.

The first method loads guiserver.jar (a Java app) first, which then loads the newLISP program demo.

The second method load newLISP and the program first, which then starts guiserver.jar. Looks like each does half of the work on you machine.

I wonder what it is, that you are seeing after each of these steps in the console window and the task manager? Last not least it would be interesting to see the environment setting on your machine before and after executing the statements.

Can you give more detailed info about what is happening, with screen captures etc?

Locked