Why Appletviewer throws error with this:
thread = new Thread(this,”main thread”);
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I suspect you Thread is trying to do one of these in your Thread:
system.
system, either by using the
File.delete() method, or by calling
system-level rm or del commands.
system, either by using the
File.renameTo() method, or by calling
system-level mv or rename commands.
system, either by using the
File.mkdirs() methods or by calling
the system-level mkdir command.
including size, type, and
modification timestamp.
computer other than the host from
which it originated.
connections on any port on the client
system.
untrusted window banner.
directory name through any means,
including trying to read the system
properties: user.name, user.home,
user.dir, java.home, and
java.class.path.
using the Runtime.exec() methods.
either System.exit() or
Runtime.exit().
system using the load() or
loadLibrary() methods of the Runtime
or System classes.
is not part of the same ThreadGroup
as the applet.
functions, including
ContentHandlerFactory,
SocketImplFactory, or
URLStreamHandlerFactory.
packages on the client system.
You have two solutions
your JRE
See this for security and applets