简体   繁体   English

安装org.apache.commons.io?

[英]Install org.apache.commons.io?

I have a program that is trying to use the org.apache.commons.io.FileUtils static method 我有一个程序试图使用org.apache.commons.io.FileUtils静态方法

readFileToString()

I have downloaded the commons.io package from the Apache website but I don't know how to get my program to find the package. 我从Apache网站下载了commons.io包,但我不知道如何让我的程序找到包。 I am not currently using an IDE, but am using Notepad ++ and using a simple batch file to compile, and another batch file to run. 我目前没有使用IDE,但我正在使用Notepad ++并使用简单的批处理文件进行编译,并运行另一个批处理文件。

You must set a classpath in both 您必须在两者中设置类路径

  1. compile process (javac) and 编译过程(javac)和
  2. runtime (java) 运行时(java)

see a similar topic . 看到一个类似的话题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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