Browsed by
Category: Java

Jar Files are not working properly

Jar Files are not working properly

  Problem – Jar (.jar) files are not working as it should be they are opening in Nokia Pc Suite or in other program. Solution ‚Äď Easiest way to solve this problem 1.¬†¬†¬† Uninstall the program in which they are opening. 2.¬†¬†¬† Now change the open with setting of .jar file a.¬†¬†¬†¬† Set it to Java(TM) SE Platform. b.¬†¬†¬† Mark Always open in this program 3.¬†¬†¬† Now again install the program 4.¬†¬†¬† This time jar files will work properly.

java.lang.NullPointerException in Java

java.lang.NullPointerException in Java

java.lang.NullPointerException in Java In Java “java.lang.NullPointerException” exception is the one that every beginner¬†face once a while. The reason is variable at which the error¬†occurred, does not contain any value or object reference. 1. If u define any reference variable and don’t create any object for that variable¬† 2.¬†If u define any reference variable globally but when u create the object then again define it Example:- Object a; // declare an object a.hashcode(); // trying to call a method on the…

Read More Read More