J2ME - Untrusted domain is not configured

I've recently taken up my J2ME development and was trying to test the NetBeans IDE 5.0 with the Mobility Pack 5.0. I first tested the installation on a computer at my office with no problems. The Hello World application worked like a charm. But when trying the same procedure at home I ran into a strange exception when running the Hello World test.

java.lang.SecurityException: untrusted domain is not configured
   at com.sun.midp.security.Permissions.forDomain(Permissions.java:530)
   at com.sun.midp.dev.DevMIDletSuiteImpl.create(DevMIDletSuiteImpl.java:148)
   at com.sun.midp.dev.DevMIDletSuiteImpl.create(DevMIDletSuiteImpl.java:91)
   at com.sun.midp.main.Main.runLocalClass(Main.java:453)
   at com.sun.midp.main.Main.main(Main.java:126)

That was strange enough, but when trying to google the issue it got even wierder. Only a few users (in the whole wide world) had this problem and they almost never got any clear answers on how to solve it.

After many struggling hours I realized that almost every user that got this problem used languages other than English. Could this be an encoding problem? Oh yes... it turned out that you can't run the wireless toolkit when having a user folder containing "strange letters" (like the swedish åäö).

The solution

One solution is of course to create a new user without "strange letters" but for lazy people like myself the best workaround would be to specify a new user folder when starting NetBeanes.

Example:

C:\Program\netbeans-5.0\bin\netbeans.exe --userdir "c:/userfolder"

Related links


Comment this note:

Your name:
Your email (hidden):
Message:
Enter the validation code :
Private! (visible for webmaster only)

Allen 2009-10-03 23:11:43

Google google, yahoo yahoo

Marko 2007-09-12 20:54:40

Thanks, Finnish language use "strange letters" too.

Mikael T 2007-06-16 14:04:31

That makes alot of sens I run perfectly on an XP english mashine, but on a XP swedish the same code failed, so I go for your soulution ;-) thanks

Be_Mons 2007-03-27 02:01:12

YESS!!! it works...."·!2#|@#

Kevin.yuan 2007-01-31 13:55:01

Thanks, I sovled my strange problem

View all