简体   繁体   中英

Eclipse/ intelliJ import custom resources (java)

I want to import a Tools.zip resource into eclipse or intelliJ, but it just won't work. I have set the classpath to C:\\Program Files\\Java\\Tools.zip and in the program I wrote "import Tools.IO.IOTools, which are the subfolders in the tools archive.

But in both eclipse and intelliJ "Tools" is red and I can't use any of the files in the archive. I also tried to unpack it but it was in vain. I am certain, that it should work because other students have it imported in the exact same way. Do you know, what I'm doing wrong? Is it maybe something related to administrator rights?

我看到存档包含Java源文件,将它们解压缩到您的主源文件夹中应该可以工作。

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