Portable NewLisp & GuiServer(Windows only)

Started by alex, June 10, 2012, 03:59:47 PM

Previous topic - Next topic

alex

Our friend Maurizio ask interesting question (http://newlispfanclub.alh.net/forum/viewtopic.php?f=16&t=4119">http://newlispfanclub.alh.net/forum/vie ... =16&t=4119">http://newlispfanclub.alh.net/forum/viewtopic.php?f=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

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

#2
I know one of variants now.

I install jre-6u32-windows-i586.exe to directory c:...javajre6 on my computer with Windows XP(32) OS.

I copy directory jre6 to q:testjre6 on my flashcard q:.

I uninstall JRE from my computer with Windows XP(32) OS.

I copy directory "newlisp" to q:testnewlisp on my flashcard q:.

I create file q:testnewlisp-edit.cmd:@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:testrun-guiserver-demo.cmd: @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 .....testnewlisp-edit.cmd



Now I can open two explorer-windows

1: .....testnewlispguiserver,

2: .....test

and use "drug&drop" to run any guiserver-demo.lsp-file, by drugging the file to .....testrun-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 :-)