Discussion:
[Jscheme-user] Can't find classes while compiling scm
p***@deltatheta.com
2008-07-24 14:51:38 UTC
Permalink
hi,

I'm trying to compile some .scm files which reference Java classes,
I'm getting the following error even though the classes reside in the
same .jar as jscheme.REPL:

(Error while compiling SchemeException: Can't find
com.deltatheta.MyClass using [(#f "com.deltatheta.MyClass"), (#f
"com.deltatheta.MyOtherClass")])

The error is being fired from the function (classNamed name) in
Reflect.scm but I can't follow where this aims to find the class from,
I'd be very grateful if someone could point me in the right direction.

thanks

Peter
Timothy John Hickey
2008-07-24 18:20:44 UTC
Permalink
Hi Peter,

When you run the jscheme compiler you will need to make sure your
com.deltatheta.* classes are on the classpath of the compiler...

Have you done this (e.g. add a path to the -cp list of the java command
to start the compiler????)

Let me know if this helps or if something else is going on...

Best,
---Tim---
Post by p***@deltatheta.com
hi,
I'm trying to compile some .scm files which reference Java classes,
I'm getting the following error even though the classes reside in the
(Error while compiling SchemeException: Can't find
com.deltatheta.MyClass using [(#f "com.deltatheta.MyClass"), (#f
"com.deltatheta.MyOtherClass")])
The error is being fired from the function (classNamed name) in
Reflect.scm but I can't follow where this aims to find the class from,
I'd be very grateful if someone could point me in the right direction.
thanks
Peter
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win
great prizes
Grand prize is a trip for two to an Open Source event anywhere in
the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jscheme-user mailing list
https://lists.sourceforge.net/lists/listinfo/jscheme-user
Loading...