View RSS Feed

Recent Blogs Posts

  1. What are ear, war and jar files

    by , 01-01-2012 at 04:34 PM
    ear, jar and war are standard application deployment archive files. As they are considered standard therefore any kind of application server is well aware that how to deploy or unpack them.

    An EAR file (standard JAR file) has an “.ear” extension, which is also known as Enterprise Archive file. J2EE application along with its modules is delivered into EAR file. Other JAR files couldn’t be present in JAR files. However, WAR and EAR files possess JAR files. An EAR file has all WARs and ...

    Updated 01-15-2012 at 08:32 AM by J2EE

    Tags: ear, jar, war Add / Edit Tags
    EAR , WAR
  2. Importing junit.jar

    by , 05-21-2011 at 11:52 PM (My Java Tips)
    Before you start writing unit tests, you must import junit.jar, so we have access to the testing framework. Follow these steps to import the required jar:

    • Right-click on the project name, and choose Properties.
    • In the tree on the left, select Java Build Path.
    • Next, choose Add External JARs… and browse to find junit.jar.

    It will be located in "<eclipsedir>\plugins\org.junit_<version number>\junit.jar".

    Once you successfully ...
    Tags: jar Add / Edit Tags
    Eclipse , JUnit
  3. Safe JAR file migration in Eclipse

    by , 05-21-2011 at 11:48 PM (My Java Tips)
    Its always a good idea to include refactoring information into the JAR file when you are exporting it from Eclipse. Eclipse’s JAR Export Wizard offers this option.

    Here is how it works:

    • File > Export
    • Select JAR file
    • Select: Export refactorings for checked projects

    This is very useful because then all the clients that are using older version of JAR will be able to migrate an old version of the JAR file to a new one using the Refactor > Migrate ...
    Tags: jar, refactoring Add / Edit Tags