I created a JAR file with some classes on it. My question is...how do i use it? How do I use or import the classes in the JAR file to the application i'm writing? Do i use the JAR file as is or am I always suppose to extract ?
Printable View
I created a JAR file with some classes on it. My question is...how do i use it? How do I use or import the classes in the JAR file to the application i'm writing? Do i use the JAR file as is or am I always suppose to extract ?
also...will i need to do something about the set paths and stuff
Believe this is it, but not sure:
javac.exe -classpath <pathtofile><jarname>.jar;. <program>.java
Well, First you have to set classpath from the files, class can be access nad ya you need to import it as well.