Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - yewklid

#1
newLISP in the real world / Re: GUI Error
February 18, 2012, 02:45:57 AM
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"
#2
newLISP in the real world / Re: GUI Error
February 17, 2012, 07:53:15 AM
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
#3
newLISP in the real world / Re: GUI Error
February 16, 2012, 02:58:09 AM
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.
#4
newLISP in the real world / GUI Error
February 15, 2012, 02:10:32 PM
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.
#5
newLISP in the real world / Re: Newbie getting started
January 04, 2010, 03:13:19 PM
Thank you both for your help. I know how to associate jar files with javaw.exe instead of java.exe but I can't see how to accomplish the '-jar "%NEWLISPDIR%/guiserver.jar"  part of it in Windows 7.

You can choose a programme to open a file type but nothing more.



This does seem to be the key to the problem because the java runtime seems to be looking for a class called "C:Program Files (x86)newlispguiserver.jar" rather than a file called "C:Program Files (x86)newlispguiserver.jar"
#6
newLISP in the real world / Newbie getting started
January 02, 2010, 05:09:19 AM
I'm having a problem with the newlist-gs frontend. When I click on the Newlisp desktop icon here is an error message about a java class not found. When I try to get it running from the console, I get more or less the same problem (see below). The computer is fairly new with Windows 7 and Java Standard edition runtime version 6.

Any help much appreciated.





newLISP v.10.1.7 on Win32 IPv4, execute 'newlisp -h' for more info.



> (load"guiserver.lsp")

(lambda (gs:id gs:action) (net-send gs:out (string "frame-resized " gs:id " " gs

:action

   "n")))

> (gs:init)

Exception in thread "main" java.lang.NoClassDefFoundError: C:Program Files (x86

)newlispguiserver/jar

Caused by: java.lang.ClassNotFoundException: C:Program Files (x86)newlispguis

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

        at java.lang.ClassLoader.loadClassInternal(Unknown Source)

Could not find the main class: C:Program Files (x86)newlispguiserver.jar.  Pr

ogram will exit.