简体   繁体   中英

Java PropertiesConfiguration

I built project to exe file, when i run exe file it has error:

java.lang.ClassNotFoundException: org.apache.commons.configuration.PropertiesConfiguration.

Could you tell me why?

Thanks.

Your commons-configuration jar file missed in your classpath. Please make sure required jar is in classpath and redeploy again.

您是否将必需的lib包含到exe文件中?

Try the following:

  1. create a folder with all your needed libraries
  2. in a shell ( cmd.exe ) run: set CLASSPATH=%CLASSPATH%;<path to libraries folder>
  3. run your executable

hth

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM