I created a custom jar file for the purpose of learning how to build my own jar file. So, basically, it is a hello world jar. I followed the steps from this URL. The following is my program:
public class TEST_JAR {
public static void main(String[] args){
}
public void helloWorld(){
System.out.println("This the new JAR WORLD!!");
}
}
This is the Manifest.txt file:
Manifest-Version: 1.0
Created-By: 1.8.0_111 (Oracle Corporation)
Main-Class: TEST_JAR
The JAR file is creating successfully. But when I use it in another application, the import statement is not showing the class file to import. I am using IntelliJ-IDEA.
Any clues on what is going wrong?