I have just today installed NewLisp 10.4.0 on a PC running Windows 7. When I click on the Newlisp icon I get an error message from the Java Virtual Machine Launcher saying "Could not find the main class: C:\Program Files(x86)\newlisp\guiserver.jar. Program will exit."
I'm puzzled because when I look in that directory I see a jar file called 'guiserver'.
Any help would be gratefully received.
GUI Error
Re: GUI Error
These are the preconditions for a successful startup:
- Make sure the installer left an environment variable NEWLISPDIR, which should point to
C:\Program Files(x86)\newlisp\
- You also need a C:\temp directory or an environment variable TEMP to point to an alternative directory.
- newlisp.exe must be in the path for executables - set by the installation
Here 4 methods to start the IDE manually:
Go inside the newlisp directory:
at the prompt issue one of the following commands:
or:
or (it's javaw no java):
or:
Depending on your Java installation and environment variables, one of these methods should work. Of course, you also can start newLISP without the IDE by just executing: newlisp
Also inspect the "properties" of the newLISP desktop icon. It should show the correct paths.
- Make sure the installer left an environment variable NEWLISPDIR, which should point to
C:\Program Files(x86)\newlisp\
- You also need a C:\temp directory or an environment variable TEMP to point to an alternative directory.
- newlisp.exe must be in the path for executables - set by the installation
Here 4 methods to start the IDE manually:
Go inside the newlisp directory:
Code: Select all
cd "C:\Program Files(86)\newlisp\"
Code: Select all
newlisp newlisp-edit.lsp
Code: Select all
guiserver.jar 47011 newlisp-edit.lsp
Code: Select all
javaw -jar "C:\Program Files(86)\newlisp\guiserver.jar" 47011 newlisp-edit.lsp
Code: Select all
"c:\Program Files(86)\newlisp\guiserver.jar" 47011 newlisp-edit.lsp
Also inspect the "properties" of the newLISP desktop icon. It should show the correct paths.
Re: GUI Error
Lutz - Many thanks for your help.
Initially, none of the suggested methods worked but the error message from method 3 said that javaw wasn't recognised. I installed the 64 bit version of java in addition to the 32 bit I had already installed and now method 3 works.
ie using
The other 3 methods still give the same error message.
I managed to get some simple examples like fibonacci and factorial to work. When I tried some of the demos like pinball,I once again got the original error message.
Many thanks for you help so far.
Initially, none of the suggested methods worked but the error message from method 3 said that javaw wasn't recognised. I installed the 64 bit version of java in addition to the 32 bit I had already installed and now method 3 works.
ie using
Code: Select all
"javaw -jar "C:\Program Files (x86)\newlisp\guiserver.jar" 47011 newlisp-edit.lsp"
I managed to get some simple examples like fibonacci and factorial to work. When I tried some of the demos like pinball,I once again got the original error message.
Many thanks for you help so far.
Re: GUI Error
It would be great, if we can get to the bottom of this strange behavior.
Perhaps, if you copy the GS demo files into the current directory, they will work. Just like newlisp-edit.lsp is working, but only from the current directory, not using path names.
Can you post your variable environment - just type 'set' in a command shell - ?
There should also be an entry in the registry to associate the .jar extension with javaw.exe.
Perhaps, if you copy the GS demo files into the current directory, they will work. Just like newlisp-edit.lsp is working, but only from the current directory, not using path names.
Can you post your variable environment - just type 'set' in a command shell - ?
There should also be an entry in the registry to associate the .jar extension with javaw.exe.
Re: GUI Error
Copying the pinball demo to the newlisp directory didn't help.
The environment table is below.
The environment table is below.
Code: Select all
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Users\Mike>set
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\Mike\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=MIKE-PC
ComSpec=C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\Mike
lib=C:\Program Files\SQLXML 4.0\bin\
LOCALAPPDATA=C:\Users\Mike\AppData\Local
LOGONSERVER=\\MIKE-PC
NEWLISPDIR=C:\Program Files (x86)\newlisp\
NUMBER_OF_PROCESSORS=4
OS=Windows_NT
Path=C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Windows\syst
em32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v
1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program File
s (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\Microsoft SQL
Server\90\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\Binn\V
SShell\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\IDE
\PrivateAssemblies\;C:\Program Files (x86)\ZipGenius 6\;c:\Program Files (x86)\M
icrosoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\To
ols\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;c:\Program Files (
x86)\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\;c:\Program Files (
x86)\Microsoft SQL Server\100\DTS\Binn\;c:\Program Files (x86)\Microsoft Visual
Studio 9.0\Common7\IDE\PrivateAssemblies\;C:\Program Files\Common Files\Microsof
t Shared\Windows Live;C:\Program Files (x86)\newlisp
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=AMD64 Family 16 Model 2 Stepping 3, AuthenticAMD
PROCESSOR_LEVEL=16
PROCESSOR_REVISION=0203
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\Mike\AppData\Local\Temp
TMP=C:\Users\Mike\AppData\Local\Temp
tvdumpflags=8
USERDOMAIN=Mike-PC
USERNAME=Mike
USERPROFILE=C:\Users\Mike
windir=C:\Windows
Re: GUI Error
The environment looks perfect. This must have something to do with the Java installation. I wonder if anybody else has seen this problem?
Re: GUI Error
At last - some progress!
I tried double clicking on the file guiserver.jar itself and got exactly the same error message. Then I right clicked and looked at the 'open with' option. Surprisingly I was given a choice of the java platform binary three time over. I tried all three. One of them lets me get a bit further. I get the Newlisp GUI up and running, load the pinballs demo and then try to run it. This time I don't get the 'guiserver not found' error. Instead, Newlisp produces this:
I tried double clicking on the file guiserver.jar itself and got exactly the same error message. Then I right clicked and looked at the 'open with' option. Surprisingly I was given a choice of the java platform binary three time over. I tried all three. One of them lets me get a bit further. I get the Newlisp GUI up and running, load the pinballs demo and then try to run it. This time I don't get the 'guiserver not found' error. Instead, Newlisp produces this:
Code: Select all
461138
(lambda (gs:id gs:action) (net-send gs:out (string "frame-resized " gs:id " " gs:action
"\n")))
java.lang.NoClassDefFoundError: C:\Program Files (x86)\newlisp\guiserver/jar
Caused by: java.lang.ClassNotFoundException: C:\Program Files (x86)\newlisp\guiserver.jar
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: C:\Program Files (x86)\newlisp\guiserver.jar. Program will exit.
Exception in thread "main"