S
strus_82
Hello,
I have a question related to CLASS PATH - is there a possibility to
add some path to CLASS PATH during a runtime of application?
I've tried the following:
Properties properties = System.getProperties();
String key = "java.class.path";
String value = "d:\\some\\new\\path\\;" + properties.getProperty(key);
System.setProperty("java.class.path", value);
and then using a reflection mechanism I've tried to execute some
method but it doesn't work properly (seems like the class path is not
updated).
When I set the CLASS PATH during the execution of program the method
works fine.
thanks in advance,
M.
I have a question related to CLASS PATH - is there a possibility to
add some path to CLASS PATH during a runtime of application?
I've tried the following:
Properties properties = System.getProperties();
String key = "java.class.path";
String value = "d:\\some\\new\\path\\;" + properties.getProperty(key);
System.setProperty("java.class.path", value);
and then using a reflection mechanism I've tried to execute some
method but it doesn't work properly (seems like the class path is not
updated).
When I set the CLASS PATH during the execution of program the method
works fine.
thanks in advance,
M.