How to get rid of NetBeans java.io.FileNotFoundException?

The code:

package epshell;
public class Main {
    public static void main(String[] args) {
    System.out.println('hej');
    }
}

Error: java.io.FileNotFoundException: C: \ Users \ ; 5: A59 57 = 8:> 2 \. Netbeans \ 6.9 \ ant \ nblib \ org-netbeans-modules-mobility-project.jar (file name, directory name, or incorrect volume label syntax)

My username is in Russian, how can I fix the error?

+3
source share
2 answers

Edit the file netbeans.confin the folder etc. If you have x86, it is located in

C:\Program Files\NetBeans 6.9.1\etc\netbeans.conf

For x64 OS, it is in

C:\Program Files (x86)\NetBeans 6.9.1\etc\netbeans.conf

In the second line, Netbeans sets the default user to something like:

netbeans_default_userdir="${HOME}/.netbeans/6.9"

Change it to somthing like:

netbeans_default_userdir="C:/Users/yoz1k/.netbeans/6.9"

, , HOME. / netbeans.

, .netbeans , . C:\.netbeans netbeans_default_userdir.

Java SDK, porperty netbeans_jdkhome netbeans.conf JDK, Netbeans.

+2

NetBeans --userdir <path>, <path> ( - ).

: http://wiki.netbeans.org/FaqAlternateUserdir

0

Source: https://habr.com/ru/post/1792740/


All Articles