|
From: Glyn T. G. <qu...@ma...> - 2002-04-12 02:55:15
|
Hello everyone,
I just bought a new laptop and I am having problems getting JLIB to work
properly.
I downloaded and installed the newest version of jscheme from
sourceforge this
evening. After adding it to my classpath it works just fine as long as
I do not
use any of the JLIB macros.
No matter what I have tried, I cannot get JLIB to work.
I am running Linux Mandrake 8.2 (kernel 2.4.18) and java 1.4.0.
Below is the source code for the sample programme (directly from the web
site)
with a few extra includes that I needed to get it to compile.
(import "java.lang.*")
(import "java.awt.*")
(import "java.awt.event.*")
(import "jlib.*")
(import "jlib.JLIB")
(import "jsint.*")
(import "java.lang.Math")
(define win (window "Hello")
(border
(north (label "Hello"))
(center (button "Goodbye" (action (lambda (e) (.hide win)
(System.exit 0)))))
(south (label (string-append "sin(PI) = " (Math.sin Math.PI$))))))
(.pack win)
(.show win)
The runtime complains as follows:
$java Hello2
Exception in thread "main" SchemeException:[[ERROR: undefined variable
"window",#null]]
at jsint.E.error(E.java:14)
at jsint.E.error(E.java:19)
at jsint.Symbol.getGlobalValue(Symbol.java:74)
at Hello2.init(Hello2.java:114)
at Hello2.load(Hello2.java:60)
at Hello2.load(Hello2.java:65)
at Hello2.main(Hello2.java:70)
Any assistance will be greatly appreciated.
Thanks,
-glyn
|