Saturday, September 20, 2014

Published 9/20/2014 by with 0 comment

Illegal modifier for parameter ... only final is permitted

A local variable, i.e., method level variable or a parameter cannot be declared as static or public/private/protected. So local variables must be declared without these modifiers. For example, the following code is wrong:     void methodA(static int param) {         System.out.println(param);     }     void methodB(private int param) {  ...
Read More
    email this       edit

Wednesday, June 11, 2014

Published 6/11/2014 by with 1 comment

This method requires a body instead of a semicolon

The reason for the error "This method requires a body instead of a semicolon" is same as described in the post missing method body, or declare abstrac...
Read More
    email this       edit
Published 6/11/2014 by with 6 comments

Font ' net/sf/jasperreports/fonts/pictonic/pictonic.ttf ...' is not available to the JVM

The full error message is: Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError        at net.sf.jasperreports.engine.fill.JRBaseFiller.(JRBaseFiller.java:184) … Caused by: net.sf.jasperreports.engine.util.JRFontNotFoundException: Font '                     ...
Read More
    email this       edit