I'm very new to Java and i want to create a Java Applet. My .jar File is signed and the Package with .class ... is in the folder java (--> java.lal.class). But I got only this error:
SecurityException
Prhibited package name: java
Java Code:
package lal;
import java.applet.Applet;
import org.json.JSONException;
import org.json.JSONObject;
import org.json.XML;
public class lal extends Applet {
/**
* @param args
* @throws JSONException
*/
public static void main(String[] args) throws JSONException {
String jsonStr = "SOME JSON DATA :) ";
JSONObject jsonObj = new JSONObject(jsonStr);
System.out.println(XML.toString(jsonObj));
}
}
HTML Code:
<applet code="java.lal.class" width="700" height="750">
</applet>