This is the mail archive of the
kawa@sourceware.cygnus.com
mailing list for the Kawa project.
Changing classpath whilst Kawa runs
- To: kawa at sourceware dot cygnus dot com
- Subject: Changing classpath whilst Kawa runs
- From: "Nic Ferrier" <nferrier at tapsellferrier dot co dot uk>
- Date: Mon, 06 Mar 2000 01:05:20 +0000
I'm hoping someone can help me with a problem I've got dynamically
setting the classpath using Kawa.
I have java libraries all over the place in directories and jar files
(because I work on lots of versions of lots of projects).
I use Kawa for scripting mostly and so thought that a Kawa func to
add dirs dynamically to the classpath would be usefull (maybe even
using completion!) - so I wrote a func around this:
(invoke-static <java.lang.System> 'setProperty "java.class.path"
classpath)
This works... at least it seems to.
The property gets updated as you would expect but Kawa can't find any
code in any added classpath directories or jar files.
Kawa seems only to deal with the classpath as set on invocation.
Is this a bug? or a feature?
If it's a bug I'll fix it - if it's a feature - why is it a feature?
Please help. I need to be able to do this for the work I'm doing with
Kawa and servlets apart from anything else.
Nic Ferrier