I have been provided with a jar file that has methods that I need to use. I extracted the jar file to my c: and found
the following directory structure:
c:/com/methods/lawsec/
and a whole bunch of classes.
So naturally I have an import statement in my java code:
import com.methods.lawsec.*
to compile I have:
but I get error:
What is the correct import statement so I can use the methods in the jar file? I have not received any documentation from the vendor on this API.
Thanks
the following directory structure:
c:/com/methods/lawsec/
and a whole bunch of classes.
So naturally I have an import statement in my java code:
import com.methods.lawsec.*
to compile I have:
Code:
javac -classpath /path/to/jar/my.jar myTest.java
but I get error:
Code:
myTest.java:3: package com.methods.lawsec does not exist
import com.lawson.lawsec.*;
^
What is the correct import statement so I can use the methods in the jar file? I have not received any documentation from the vendor on this API.
Thanks