Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Scrapbook Tutorial Exception(Experiencing an exception whilst following Eclipse Tutorial for Beginners Lesson 3)
Scrapbook Tutorial Exception [message #1073289] Wed, 24 July 2013 13:24 Go to next message
Matthew Cottam is currently offline Matthew CottamFriend
Messages: 2
Registered: July 2013
Location: UK
Junior Member
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 #1073332 is a reply to message #1073289] Wed, 24 July 2013 14:32 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1445
Registered: July 2009
Senior Member
Starting a package name with java is prohibited. You need to name you package something else.
Re: Scrapbook Tutorial Exception [message #1073488 is a reply to message #1073332] Wed, 24 July 2013 22:58 Go to previous message
Matthew Cottam is currently offline Matthew CottamFriend
Messages: 2
Registered: July 2013
Location: UK
Junior Member
David Wegener wrote on Wed, 24 July 2013 10:32
Starting 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. Smile Seriously, that has really helped me and has also given me great faith in this forum.

Kind Regards

Matt
Previous Topic:trouble
Next Topic:Project relocation through RCS
Goto Forum:
  


Current Time: Thu Apr 25 07:11:03 GMT 2024

Powered by FUDForum. Page generated in 0.08109 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top