|
|
|
Classloader и jar архивы
|
|||
|---|---|---|---|
|
#18+
Все привет. Если проблема с ClassLoader, он не ищет классы в jar архивах. Код: public Class<?> findClass(String name) { try { File f = new File(path + name.replace('.', '/') + ".class"); if (f.exists() == false) super.findSystemClass(name); InputStream r = new FileInputStream(f); byte[] bytes = new byte[(int) f.length()]; r.read(bytes, 0, (int) f.length()); return defineClass(bytes, 0, (int)f.length()); } catch (Exception e) { throw new RuntimeException(e.toString()); } } Подскажите как можно сделать? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 29.02.2012, 15:11:52 |
|
||
|
|

start [/forum/topic.php?fid=59&msg=37684566&tid=2132446]: |
0ms |
get settings: |
14ms |
get forum list: |
32ms |
check forum access: |
5ms |
check topic access: |
5ms |
track hit: |
53ms |
get topic data: |
20ms |
get forum data: |
5ms |
get page messages: |
70ms |
get tp. blocked users: |
2ms |
| others: | 343ms |
| total: | 549ms |

| 0 / 0 |
