Portable NewLisp & GuiServer(Windows only)

Machine-specific discussion
Unix, Linux, OS X, OS/2, Windows, ..?
Locked
alex
Posts: 100
Joined: Thu Mar 10, 2005 2:27 pm
Location: Russia

Portable NewLisp & GuiServer(Windows only)

Post by alex »

Our friend Maurizio ask interesting question (http://newlispfanclub.alh.net/forum/vie ... =16&t=4119)
The question is interesting for me too.
I read Lutz answer, but it is not enough for Windows-OS.
If I have no installed JavaVM(it can be a lot of reason), how I can run newlisp-edit.lsp?
If You have answer, tell, please :-)

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

Re: Portable NewLisp & GuiServer(Windows only)

Post by Lutz »

You need a Java runtime environment installed to run newlisp-edit.lsp. Without Java, guiserver.jar cannot be started by guiserver.lsp which is loaded by newlisp-edit.lsp.

alex
Posts: 100
Joined: Thu Mar 10, 2005 2:27 pm
Location: Russia

Re: Portable NewLisp & GuiServer(Windows only)

Post by alex »

I know one of variants now.
I install jre-6u32-windows-i586.exe to directory c:\...\java\jre6 on my computer with Windows XP(32) OS.
I copy directory jre6 to q:\test\jre6 on my flashcard q:.
I uninstall JRE from my computer with Windows XP(32) OS.
I copy directory "newlisp" to q:\test\newlisp on my flashcard q:.
I create file q:\test\newlisp-edit.cmd:

Code: Select all

@set NEWLISPDIR=%~dp0newlisp
@set JRE=%~dp0jre6
@set path=%NEWLISPDIR%;%JRE%\bin;%path%
@javaw.exe -jar %NEWLISPDIR%/guiserver.jar 47011 %NEWLISPDIR%/newlisp-edit.lsp /local/newLISPsplash.png
And I create file q:\test\run-guiserver-demo.cmd:

Code: Select all

@set NEWLISPDIR=%~dp0newlisp
@set JRE=%~dp0jre6
@set path=%NEWLISPDIR%;%JRE%\bin;%path%
@javaw.exe -jar %NEWLISPDIR%/guiserver.jar 47011 %~f1
Now I can run newlisp-editor on any computer with OS >=WindowsXP from my flashcard by run .....test\newlisp-edit.cmd

Now I can open two explorer-windows
1: .....\test\newlisp\guiserver,
2: .....\test
and use "drug&drop" to run any guiserver-demo.lsp-file, by drugging the file to .....\test\run-guiserver-demo.cmd icon

Now I can move my directory "test" to any computer with OS>=WindowsXP and the algorithm (run newlip-editor and guiserver-demo-files) will be the same :-)

Locked