java - Add URL to classpath via command line -


i'm trying achieve equivalent this:

java.exe -cp "c:\my_test\my_jar.jar;c:\my_test\lib\*;" com.test.main 

but using url this:

 java.exe -cp "http:\\192.168.1.12\my_test\my_jar.jar;http:\\192.168.1.12\my_test\lib\*;" com.test.main 

the error is: could not find or load main class, if http:\\192.168.1.12\my_test\my_jar.jar can see main class there. there way can via command line?

p.s: can reach http:\\192.168.1.12\my_test\my_jar.jar via browser

the classpath composed of jar files , directories. not of http urls. you'll have programmatically create urlclassloader load classes server way.


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -