GUI Error

Started by yewklid, February 15, 2012, 02:10:32 PM

Previous topic - Next topic

yewklid

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)newlispguiserver.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.

Lutz

#1
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:
cd "C:Program Files(86)newlisp"
at the prompt issue one of the following commands:
newlisp newlisp-edit.lsp
or:
guiserver.jar 47011 newlisp-edit.lsp
or (it's javaw no java):
javaw -jar "C:Program Files(86)newlispguiserver.jar" 47011 newlisp-edit.lsp
or:
"c:Program Files(86)newlispguiserver.jar" 47011 newlisp-edit.lsp

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.

yewklid

#2
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 "javaw -jar "C:Program Files (x86)newlispguiserver.jar" 47011 newlisp-edit.lsp"

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.

Lutz

#3
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.

yewklid

#4
Copying the pinball demo to the newlisp directory didn't help.

The environment table is below.


Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:UsersMike>set
ALLUSERSPROFILE=C:ProgramData
APPDATA=C:UsersMikeAppDataRoaming
CommonProgramFiles=C:Program FilesCommon Files
CommonProgramFiles(x86)=C:Program Files (x86)Common Files
CommonProgramW6432=C:Program FilesCommon Files
COMPUTERNAME=MIKE-PC
ComSpec=C:Windowssystem32cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=UsersMike
lib=C:Program FilesSQLXML 4.0bin
LOCALAPPDATA=C:UsersMikeAppDataLocal
LOGONSERVER=\MIKE-PC
NEWLISPDIR=C:Program Files (x86)newlisp
NUMBER_OF_PROCESSORS=4
OS=Windows_NT
Path=C:Program FilesCommon FilesMicrosoft SharedWindows Live;C:Windowssyst
em32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv
1.0;C:Program Files (x86)ATI TechnologiesATI.ACECore-Static;C:Program File
s (x86)Microsoft SQL Server90Toolsbinn;C:Program Files (x86)Microsoft SQL
 Server90DTSBinn;C:Program Files (x86)Microsoft SQL Server90ToolsBinnV
SShellCommon7IDE;C:Program Files (x86)Microsoft Visual Studio 8Common7IDE
PrivateAssemblies;C:Program Files (x86)ZipGenius 6;c:Program Files (x86)M
icrosoft SQL Server100ToolsBinn;c:Program FilesMicrosoft SQL Server100To
olsBinn;c:Program FilesMicrosoft SQL Server100DTSBinn;c:Program Files (
x86)Microsoft SQL Server100ToolsBinnVSShellCommon7IDE;c:Program Files (
x86)Microsoft SQL Server100DTSBinn;c:Program Files (x86)Microsoft Visual
Studio 9.0Common7IDEPrivateAssemblies;C:Program FilesCommon FilesMicrosof
t SharedWindows 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:Windowssystem32WindowsPowerShellv1.0Modules
PUBLIC=C:UsersPublic
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:Windows
TEMP=C:UsersMikeAppDataLocalTemp
TMP=C:UsersMikeAppDataLocalTemp
tvdumpflags=8
USERDOMAIN=Mike-PC
USERNAME=Mike
USERPROFILE=C:UsersMike
windir=C:Windows

Lutz

#5
The environment looks perfect. This must have something to do with the Java installation. I wonder if anybody else has seen this problem?

yewklid

#6
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:
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)newlispguiserver/jar
Caused by: java.lang.ClassNotFoundException: C:Program Files (x86)newlispguiserver.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)newlispguiserver.jar.  Program will exit.
Exception in thread "main"