V
voger
My problem is that i want to make a ftp client and i want that client to
be run from a java shell. The problem is that both of them need
classloaders to load commands. If i try to load my ftp client from
within the shell i delegates the classes to shell's class loader. And
then i get a casting error. The shell is not made by me so i can't touch
it's classes.
My application runs fine on it's own when i try to run it from command
line (using .class files from a directory or packed to a .jar). My class
loader is an extension of java.lang.Class loader. Is there any way not
to delegate to the parent class loader? And how can it make look only
within it's own .jar or package? Can anyone point me to any resources?
Google confused me a bit.
I am very new to this so any help would be welcome.
be run from a java shell. The problem is that both of them need
classloaders to load commands. If i try to load my ftp client from
within the shell i delegates the classes to shell's class loader. And
then i get a casting error. The shell is not made by me so i can't touch
it's classes.
My application runs fine on it's own when i try to run it from command
line (using .class files from a directory or packed to a .jar). My class
loader is an extension of java.lang.Class loader. Is there any way not
to delegate to the parent class loader? And how can it make look only
within it's own .jar or package? Can anyone point me to any resources?
Google confused me a bit.
I am very new to this so any help would be welcome.