When I try to run HelloWorld by typing "java java.HelloWorld" I get the following message. Exception in thread "main" Java.Lang.SecurityException rohibited package name:java at java.lang.ClassLoader.defineClass <ClassLoader.java:246> at java.security.secureClassLoader.defineClass <SecureClassLoader.java:123> this is only two of the 11 lines like this. If it's necessary to see them all, I can write them all out. I'm hoping someone can help me. thanks [ May 28, 2002: Message edited by: David Malott ] [ May 28, 2002: Message edited by: David Malott ]
Try this: 1. Make a directory called "temp" somewhere 2. In this directory create and edit a file called "HelloWorld.java" with these contents:
3. From the command line, from the "temp" directory you've created, compile the file like this: javac HelloWorld.java 4. From the command line, from the "temp" directory you've created, attempt to run the file like this: java -classpath . HelloWorld Any success?
Joined: Dec 10, 2001
I can duplicate your error message when I try to compile and run this: