Y
Y
Yuri Averyanov2019-01-19 00:36:42
Java
Yuri Averyanov, 2019-01-19 00:36:42

What is the compiler complaining about?

java.lang.SecurityException: Prohibited package name: java.ru.job4j
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:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run (URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
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"

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
al_gon, 2019-01-19
@aversys

Whose package name do you have that starts with java!?

D
Denis Zagaevsky, 2019-01-19
@zagayevskiy

It is not allowed to have your own package java. Put in another bag.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question