I'm building java applet in notepad++ not in some IDE
There's your fault. WHY?
Add a file "policy.policy" to the project and put in there the following:
grant {
permission java.security.AllPermission;
};
the start the app with the argument:
java -Djava.security.policy=policy.policy MyFunkyApplication