[
トップ|
一覧|
単語検索|
最終更新|
バックアップ|
ヘルプ]
- 追加された行はこの色です。
- 削除された行はこの色です。
*java.net.URLClassLoader
*java.net.[[URLClassLoader]]
jar:<url>!/{entry}
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLClassLoader;
class URLClassLoaderSample {
public static void main(String[] args) {
try {
URL[] urls = new URL[1];
urls[0] = new URL("jar:file://home/hoge/jdbc.jar!/");
ClassLoader parent = ClassLoader.getSystemClassLoader();
URLClassLoader urlClazzloader = new URLClassLoader(urls, parent);
Class clazz = urlClazzloader.loadClass("jdbc.DriverClass");
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (ClassNotFoundException e) {
e.printStackTrace();
}
}
}
Modified by MT22(Moriwaki Takashi)
"PukiWiki" 1.3.7 Copyright © 2001,2002,2003 PukiWiki Developers Team. License is GNU/GPL.
Based on "PukiWiki" 1.3 by sng
Powered by PHP 7.4.33
HTML convert time to 0.004 sec.