Atitit.java jar Hell solution -----Djava.ext.dirs in IDE envi.
Atitit.java class Flect Solu jar hell use-djava.ext.dirs=d:\workspace space \atiplatf\web-inf\lib_slf4j1.5.6
Phenomenon.. The same source code , a use of slf4j 1.5.6 A use of the 1.7 version of the ...
Not a default use of the 1.7 version of the :
not a later one. PushTestV2 used by 1.5.6 version of slf4j :
To do the quack set up. debug>setting>> vm param
-djava.ext.dirs= "D:\workspace space \atiplatf\web-inf\lib_slf4j1.5.6;d:\workspace space \atiplatf\web-inf\lib "
The middle . not a single one. Lib slf1.5.6 put the front of the orchid .. It 's not going to be the first load of a blue ...
author:: Nickname:Old Wow's claws( Full Name::AttilaxAkbar Al Rapanui Attilaksachanui) Kanji Name:Ayron, email:[email protected]
Reprint please indicate source: http://www.cnblogs.com/attilax/
Public class PushTestV2 {
static final  LOGGER  Span style= "Font-family:consolas; Color: #0000c0; font-size:12pt; " >log = loggerfactory. (nativehttpclient. );
public static executorservice ; // = Executors.newfixedthreadpool (+);
public static   int   sleepmillsec =5;
public static   void main (string[] args ) apiconnectionexception, apirequestexception {
System. out . println (System. GetProperty ("Java.ext.dirs"));
It is well known that the directory specified by System Properties Java.ext.dirs in JAVA is loaded by the Extclassloader loader, and if your program does not specify that system property (-djava.ext.dirs=sss/lib), the loader defaults to loading $java_ All jar files under the Home/lib/ext directory. But if you manually specify the system properties and forget to add the $java_home/lib/ext path, then Extclassloader will not load the jar file under $java_home/lib/ext, which means you will lose some functionality, For example, Java comes with the encryption and decryption algorithm implementation.
Use Java.ext.dirs System Properties! -Push cool. htm
Atitit.java jar Hell Solution-----Djava.ext.dirs in IDE envi.