I need to connect the properties file which is not near the class where I use ResourceBundle . I put the file next to the class, everything works. The class is in src - ru.alex.Test.java , and I need to connect the files from web/lang . Tobish properties files are outside the src folder. I use IDEA . I tried to prescribe the path to the web - do not get it, tell me this can be done?
code:
ResourceBundle messages = ResourceBundle.getBundle("ru.tsyklop.lang", currentLocale);