OK, I've been testing the problems are these:
I have 2 packages X, Y.
X contains classes 1,2,3,4,5
Y contains A.
Class 1 = main class.
It loads class A.
Class A extends from Class 2 and also imports classes 3,4.
Now I install package X under classpath /a/b/c.
I place package Y under another...
I'm trying to implement dynamic class loading using:
Class.forName(className, true, Thread.currentThread().getContextClassLoader());
Class A (which is a jar file residing in the /jre/lib/ext dir ) that I'm loading extends class B (which is packaged as a separate package with the main...
I've got a .sh script that uses various functions within it. It looks something like this:
x="text.sh $a"
function run
(
a=1
exec $x
)
run
When I run the script, the script complains that $a is empty. Why does the value of '1' not get passed when $x is executed???
I'm using ksh with the following script snippet:
SERVER_PREFIX="Server:"
read role <someFile
name=${role}#$SERVER_PREFIX}
This works fine but when I run it in Bourne shell, I get an error.. 'bad subsitution' for the last line of script.
Does anyone know what the correct syntax is?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.