Click here to Skip to main content
16,022,901 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
At Netbeans IDE .. Using java language .. despite there is no bugs in the project ...
but when i run the project , a message appear to me which is :

run:
java.lang.SecurityException: Prohibited package name: java.pkg102
	at java.lang.ClassLoader.preDefineClass(ClassLoader.java:662)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:761)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:495)
Error: A JNI error has occurred, please check your installation and try again
Exception in thread "main" C:\Users\Clown\AppData\Local\NetBeans\Cache\8.1\executor-snippets\run.xml:53: Java returned: 1
BUILD FAILED (total time: 1 second)



i know there is a problem in installation but i reinstall it again but that message keep exist when i run the project.
i can not run the project to test my project .

What I have tried:

i tried to reinstall the program but nothing change
Posted
Comments
Mohibur Rashid 10-Aug-18 3:22am    
try rebuilding the project.
`C:\Users\Clown\AppData\Local\NetBeans\Cache\` may be cache is broken.
3bdelrahman 11-Aug-18 6:53am    
what you mean by rebuilding the project ? , delete it all and write it again ?
and if "Cache" is broken , what should i do ?
I am thinking of deleting the whole Cache folder but i am afraid that is wrong , what you think ?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900