This is the mail archive of the kawa@sourceware.cygnus.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Changing classpath whilst Kawa runs


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]