Change your package name. java
as a package name is prohibited.
Edit: Move your Main.java
file in a (source) directory that doesn’t start with java
or javax
and use the directory structure names to change your package name in the code.
More Related Contents:
- How can I solve “java.lang.NoClassDefFoundError”?
- What is the convention for word separator in Java package names?
- Java packages com and org
- Running java in package from command line
- What is the purpose of defining a package in a Java file? [closed]
- Are there best practices for (Java) package organization? [closed]
- What is the default package in which my classes are put if I don’t specify it?
- How to include the Spongy Castle JAR in Android?
- Why should java package name be lowercase?
- How to compile java package structures using javac
- Compiling multiple packages using the command line in Java
- Do unused import and objects have a performance impact?
- What strategy do you use for package naming in Java projects and why? [closed]
- Java Package Does Not Exist Error
- Package structure for a Java project?
- Java Package Vs Folder-Structure? what is the difference
- How to wildcard include JAR files when compiling?
- Extract links from a web page
- How to get current class name including package name in Java?
- How to run a .class file that is part of a package from cmd?
- Difference between Package and Directory in Java
- Why subclass in another package cannot access a protected method?
- URLClassLoader and accessibility of package-private methods
- Java error – bad source file: file does not contain class x . Please remove or make sure it appears
- Java: Use import or explicit package / class name?
- Call protected method from a subclass of another instance of different packages
- Why can’t my subclass access a protected variable of its superclass, when it’s in a different package?
- Why do java source files require package declarations?
- How to correctly get image from ‘Resources’ folder in NetBeans
- Android requires compiler compliance level 5.0 or 6.0. Found ‘1.7’ instead. Please use Android Tools > Fix Project Properties