Scrapbook Tutorial Exception [message #1073289] |
Wed, 24 July 2013 13:24 |
|
Hi, I am trying to complete the Eclipse tutorial for Beginners, and I am working on lesson 3. The lesson introduces the scrapbook on Eclipse, but I am getting an exception whilst trying to follow the tutorial. I have followed the tutorial to the letter and I have not skipped any steps.
I have attached 2 screenshots, the first showing the code I am trying to inspect, and the second showing the exception. I have copied the output from the console window below.
java.lang.SecurityException: Prohibited package name: java.tutorial.work
at java.lang.ClassLoader.preDefineClass(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at CodeSnippet_3.run(CodeSnippet_3.java:4)
at org.eclipse.jdt.internal.debug.ui.snippeteditor.ScrapbookMain1.eval(ScrapbookMain1.java:28)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.jdt.internal.debug.ui.snippeteditor.ScrapbookMain.evalLoop(ScrapbookMain.java:54)
at org.eclipse.jdt.internal.debug.ui.snippeteditor.ScrapbookMain.main(ScrapbookMain.java:35)
I would be really grateful if someone could point me in the right direction as to what I may have done wrong?
Kind Regards
|
|
|
|
Re: Scrapbook Tutorial Exception [message #1073488 is a reply to message #1073332] |
Wed, 24 July 2013 22:58 |
|
David Wegener wrote on Wed, 24 July 2013 10:32Starting a package name with java is prohibited. You need to name you package something else.
Thank you very much! I will remember that forever now. Seriously, that has really helped me and has also given me great faith in this forum.
Kind Regards
Matt
|
|
|
Powered by
FUDForum. Page generated in 0.08072 seconds