I want to upload my POJO code into Drools Guvnor. Problem here is POJO code should be only in .jar file. How would I convert my POJO code into jar file so that I can upload it easily in Drools Guvnor.
I would recommend learning the basics of Java before delving into Drools and Guvnor!
Here's the Java tutorial on creating Jar files:
http://docs.oracle.com/javase/tutorial/deployment/jar/build.html
... but you would be better off using Maven to do your builds: