How to access to resources in external resource folder in Java 9 modular project [duplicate]
- 阅读更多 关于 How to access to resources in external resource folder in Java 9 modular project [duplicate]
问题 This question already has answers here : Accessing resource files from external modules (2 answers) How to work with resources in Java 9 modules (1 answer) Java 9 Module system Resources files location (2 answers) Closed 2 years ago . When I have the following code that attempts accessing to a resource: foo/Main.java package foo; import java.io.*; public class Main{ public static void main(String... args) throws IOException{ try(BufferedReader in = new BufferedReader(new InputStreamReader(