From: Geoffrey K. <ge...@kn...> - 2003-06-03 22:51:49
|
I found this old message, which helped me extend my CLASSPATH. But (load "using/run.scm") is now needed before (load=20 "elf/classpath.scm"). Otherwise you get: ($ "java.class.path" ) SchemeException:[[ERROR: undefined variable "$"""]] Geoffrey -- Geoffrey S. Knauth | http://knauth.org/gsk FROM: Ken Anderson DATE: 02/12/2002=A014:27:53 SUBJECT: [Silk-user] Dynamic classpath In the latest version of Jscheme the class path used by silk.Import can=20= be extended. See the code in elf/classpath.scm. So, for example, you can start from the jar and grow the classpath as=20 your application requires. Here's an example: D:\temp\silk\silkweb>java -jar jscheme.jar Jscheme 4.3.3 (02/11/2002) > (load "elf/classpath.scm") #t > (extendClassPath "d:/java/junit3.7/junit.jar") #null > (junit.swingui.TestRunner.main (array String.class)) #null > This brings up the JUnit GUI. Also, if you need to recompile a class loaded through the extended class path you can run (replaceClassLoaders) to get a new set of class=20 loaders so recompiled classes can be loaded through them. (Any old objects will behave the old way of course). Let me know if you have any problems. One current limitation is you can't recompile and reload any core=20 Jscheme classes. A small price to pay for this magic. _______________________________________________ Silk-user mailing list |