D:\Program Files (x86)\newlisp>java -jar guiserver.jar newlisp-edit.lsp /local/newLISPsplash.png
newLISP-GS v.1.66 on Windows 10
double buffering supported.
Exception in thread "main" java.lang.NumberFormatException: For input string: "newlisp-edit.lsp"
at java.base/java.lang.NumberFormatException.forInputString(Unknown Source)
at java.base/java.lang.Integer.parseInt(Unknown Source)
at java.base/java.lang.Integer.parseInt(Unknown Source)
at guiserver.main(guiserver.java:82)
java -jar guiserver.jar 64001 newlisp-edit.lsp /local/newLISPsplash.png
newLISP-GS v.1.66 on Windows 10
Exception in thread "main" java.lang.NullPointerException
at java.desktop/sun.awt.SunToolkit.getImageFromHash(Unknown Source)
at java.desktop/sun.awt.SunToolkit.getImage(Unknown Source)
at guiserver.getImageFromPath(guiserver.java:183)
at guiserver.main(guiserver.java:73)
I removed /local/newLISPsplash.png and now I have many errors like "Could not create image-button", but lisp up and running, thanks for that. Where can I find newLISPsplash.png?
I removed /local/newLISPsplash.png and now I have many errors like "Could not create image-button", but lisp up and running, thanks for that. Where can I find newLISPsplash.png?
/local is a valid path, it refers to jar itself, that is files in /local are files stored internally in the guiserver.jar file, for this reason you can refer to newLISPsplash.png since it's an image stored in the jar file, but you can also provide another image using a diferent path such as /tmp/myScreen.png
I see this thread is a bit older but I would write something related in case being of any help for anybody
I had problems executing guiserver a few days ago, the problem is displayed a "ERR: cannot find working directory" in the console text-area and guiserver was not able to execute newlisp interpreter so you cannot execute anything.
After investigating under the sources for a while I resolved the issue hard coding the path in file newlisp-edit.lsp in order it search in several places (the hardcode one, the HOME env var , etc)
Another problem I had is newlisp is installed by default in Program Files (x86) and that is a read only folder in windows 10, so is complicated to make changes (you can if editing files as administrator or running a cmd as administrator) but for easy going I ended up copying the whole newlisp folder in a writable path,.
After doing that sometimes I ran the jar in Program Files while using my writable folder as working dir and doing so I got a lot of alert windows saying it cannot find buttons or other objects, maybe your problem could be related to this, try to run everything in the same folder and check if its readable and maybe also writable. Hope it helps.
It would be great to use a config file for this stuff (similar to settings but a real file) and also it would be great to reverse the control, it would be great to control java from newlisp repl rather to control newlisp repl from java
guiserver.jar 64001 newlisp-edit.lsp
Error: Could not find or load main class D:\Program Files (x86)\newlisp\guiserver.jar
If somebody know how to fix it - let me know please. The basic problem can be considered solved, thank you very much.
if your problem is to execute jre 1.8.0 rather jre 9.0.1 when executing directly a jar file you should check the file & program association, in a cmd window type: