enginear
enginear

Reputation: 39

Netbeans IDE 7.4 ctrl+space bug

My problem is when I'm using ctrl+space on Netbeans my IDE generates my codes with 'ı' character like voıd or publıc and I have fix with my hand. When I'm coding in Java, when I want to generate getters and setters automatically, Netbeans generates these methods with Turkish characters (replaces the english i with 'ı'), such as voıd or ınt and publıc. How can I fix that bug? Here is part of my trouble:

public ınt getAge() {
    return age
}

publıc voıd setAge(ınt age) {
    this.age = age;
}

Upvotes: 1

Views: 117

Answers (2)

hityagi
hityagi

Reputation: 5256

The same was reported as a bug

See if this can help you

Which says :

Netbeans automatically uses the Windows system default language as the default user interface language. I believe that it means to be a nice feature for localization. But I personally find it uncomfortable because I have been used with English interface.

After I did some Google search, I learned a few tips to set the Netbeans UI language.

  1. Temporary Solution

    Add "--locale en:US" at the end of Netbeans startup command.

    "C:\Program Files\NetBeans 6.0.1\bin\netbeans.exe" --locale en:US

  2. Permanent Solution

    Go to Netbeans installation directory, for example,

    C:\Program Files\NetBeans 6.0.1\etc

    Open "netbeans.conf" and find netbeans default option line

    netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Xverify:none -J-Dapple.laf.useScreenMenuBar=true"

    Add "-J-Duser.language=en -J-Duser.region=US" to the end of this line

    netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Xverify:none -J-Dapple.laf.useScreenMenuBar=true -J-Duser.language=en -J-Duser.region=US"

Upvotes: 1

Sierox
Sierox

Reputation: 459

This is a common problem with foreign languages. I have faced this since I'm also from Turkey. Here is how to fix it:

Go to the NetBeans IDE install directory. Go to the folder etc and open netbeans.conf with a text editing program such as Notepad or Notepad++. Then find netbeans_default_options=, preferably with CTRL+F and add -J-Dfile.encoding=UTF-8 to the existing values. After that, just save and reload Netbeans IDE.

Upvotes: 0

Related Questions