Not start on Win10

Started by First_Spectr, November 26, 2017, 05:09:27 AM

Previous topic - Next topic

First_Spectr

When i try to start lnk nothing happens. If I use cmd I get the following:
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)


If use guiserver.jar newlisp-edit.lsp /local/newLISPsplash.png nothing happens again.



Win 10 x64, latest version java

Lutz

#1
A port-number must be specified:



http://www.newlisp.org/guiserver/guiserver.lsp.html">http://www.newlisp.org/guiserver/guiserver.lsp.html



scroll down to the chapter "Application start"

First_Spectr

#2
forgot to add, also tried so
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)


and guiserver.jar 64001 newlisp-edit.lsp /local/newLISPsplash.pngstill nothing

rickyboy

#3
Quote from: "First_Spectr"forgot to add, also tried so
java -jar guiserver.jar 64001 newlisp-edit.lsp /local/newLISPsplash.png
...
still nothing

I don't use guiserver ("but if I did..." :), so this is just a quick driveby: that path looks suspicious to me, namely:


/local/newLISPsplash.png
Check that the file exists there.  I'd bet a beer it doesn't. :)  Best to you, --Rick
(λx. x x) (λx. x x)

First_Spectr

#4
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?

First_Spectr

#5
Interface looks [attachment=0]Снимок2.PNG[/attachment]

First_Spectr

#6
I found a solution, in my system used java from "jre-9.0.1" folder, I rewrote the command like C:Program FilesJavajre1.8.0_151binjava.exe" -jar .guiserver.jar 64001 newlisp-edit.lsp and now all work perfect. Unfortunately shortcut still not work: guiserver.jar 64001 newlisp-edit.lsp
Error: Could not find or load main class D:Program Files (x86)newlispguiserver.jar
If somebody know how to fix it - let me know please. The basic problem can be considered solved, thank you very much.

michaellennox

#7
Greetings! As far as I can see,  this problem is common, and I don't know how to fix it. Have you find a solution?
http://edit-it.org/blog/edit-the-essay-with-our-paper-editing-service\">edit the essay with our paper editing service

janewhite

#8
I like to work with Win10, it's really more comfortable and cool, the version also has some new great features
Check how to https://primewritings.org/dissertation-results-help-from-experts.php\">do a dissertation results chapter

nealcaffrey

#9
You need to update the version of Windows
https://primewritings.co.uk/how-to-cope-with-dissertation-introduction-writing.php\">Dissertation Introduction Service

pda

#10
Quote from: First_Spectr post_id=24179 time=1512121754 user_id=1252
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

pda

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

pda

#12
Quote from: First_Spectr post_id=24180 time=1512135864 user_id=1252
Interface looks Снимок2.PNG


I think this is more related to wrong paths when executing newlisp-edit.lsp,  check the path variables.

pda

#13
Quote from: First_Spectr post_id=24181 time=1512165777 user_id=1252
I found a solution, in my system used java from "jre-9.0.1" folder, I rewrote the command like C:Program FilesJavajre1.8.0_151binjava.exe" -jar .guiserver.jar 64001 newlisp-edit.lsp and now all work perfect. Unfortunately shortcut still not work: guiserver.jar 64001 newlisp-edit.lsp
Error: Could not find or load main class D:Program Files (x86)newlispguiserver.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:



C:>assoc .jar
.jar=jarfile

C:>ftype | find "jarfile"
jarfile="C:Program Files (x86)Javajre1.8.0_261binjavaw.exe" -jar "%1" %*


you should get the program is associated to jar files in your windows, in my case it is "C:Program Files (x86)Javajre1.8.0_261binjavaw.exe"



if you want to set another one (jre 9.0.1 or in your case jre 1.8.0) simply type:



C:>ftype jarfile="C:Program Files (x86)Javajre1.8.0_261binjavaw.exe" -jar "%1" %*


supposing your jre 1.8.0 is in path C:Program Files (x86)Javajre1.8.0_261, if not replace as convenient



After doing this you can simply type the name of the jar and it will be run with the right java program like in:


guiserver.jar 64001 newlisp-edit.lsp