Java Error Messages and Solutions
Pages - Menu
(Move to ...)
Home
▼
Thursday, May 19, 2011
attempting to assign weaker access privileges
›
Java error "attempting to assign weaker access privileges" can happen when we override a superclass method in the subclass if the ...
2 comments:
modifier private not allowed here
›
Java error "modifier private not allowed here" can occur for any of the following reasons: 1. An outer class declared as private...
4 comments:
Tuesday, May 17, 2011
No Persistence provider for EntityManager named
›
Are you using JPA and getting the error "Exception in thread "main" javax.persistence.PersistenceException: No Persistence pr...
is not a known entity type
›
To understand the error, let us assume that we have the following classes: 1) An entity class package person.entity; import java.io.Seri...
1 comment:
Monday, May 9, 2011
Color parameter outside of expected range: Red Green Blue
›
Java error "Color parameter outside of expected range: Red Green Blue" can be encountered when we use the java.awt.Color class wit...
modifier static not allowed here
›
Java error "modifier static not allowed here" can occur for any of the following reasons: 1. Constructor is declared as static(...
1 comment:
illegal combination of modifiers: abstract and static
›
An abstract method cannot be static because the abstract method must be overridden i.e, body of the abstract method must be defined before i...
1 comment:
interface methods cannot have body
›
Java error "interface methods cannot have body" occurs when body of the method within an interface is defined. See the code belo...
1 comment:
interface expected here
›
The code below leads to an error "interface expected here" public interface MyInterface extends Thread { } Here an interface ...
no interface expected here
›
Any Java code as below will lead an error "no interface expected here" import java.io.Serializable; public class Person extends...
‹
›
Home
View web version