开发者

PHP Environment variable

开发者 https://www.devze.com 2023-01-14 08:38 出处:网络
I am using PHP Java Bridgeon a windows and linux开发者_如何学Go server. Now I want to modify the

I am using PHP Java Bridgeon a windows and linux开发者_如何学Go server. Now I want to modify the CLASSPATH. When I do a phpinfo(), I see a CLASSPATH under environment variables section and when I output the java.lang.system properties there is a property called java.class.path.

First of all what is the difference between the two? How do I modify both of them? Can they be modified programatically ?


I don't know about the phpinfo() information, but the System.property can't be set (to any effect) directly. It is effectively read-only and taken from the environment CLASSPATH variable and -classpath command line option when Java is launched.

You can effectively change the classpath used to load classes by creating your own classloaders or class loader instances (see URLClassLoader) and using it to load from dynamic locations.

0

精彩评论

暂无评论...
验证码 换一张
取 消