Atitit.java jar Hell Solution-----Djava.ext.dirs in IDE envi.

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.