Page 1 of 1

Portable NewLisp & GuiServer(Windows only)

Posted: Sun Jun 10, 2012 10:59 pm
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 :-)

Re: Portable NewLisp & GuiServer(Windows only)

Posted: Mon Jun 11, 2012 12:24 am
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.

Re: Portable NewLisp & GuiServer(Windows only)

Posted: Thu Jun 14, 2012 3:58 pm
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 :-)