Friday, May 7, 2010

Add External JAR in j2me-polish Project

To use any external jar in a j2me-polish project following steps need to be taken:

  • Copy jar file in j2me-polish/import/ folder
  • Add jar file in project libraries
  • Update build.xml file by adding attribute 'binarylibraries="jarname1.jar;jarname2.jar"' inside < build > tag. (Multiple jars can be defined by placing semi-colon between jars)


Tuesday, May 4, 2010


Don't do this foolish mistake again :|

I was trying to get the class instance using Class.forname(...) but continuosly getting IllegalAccessException.

At the end I found that the class I am trying to call has a private constructor in it. So it cannot be possible to create an instance of class with private constructor.