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); 

    1 answer 1

    So look

     ResourceBundle.getBundle("ru.tsyklop.lang", currentLocale); 

    this

     ResourceBundle.getBundle("путь к файлу", название файла); 

    if the file is in a different directory, then write the name of this directory.