I have created a runnable jar file with a JSON Object "J" as return type in a method A() of Class A. JSON Obj was in a package a.b
. Now my question is that, When I import the jar in any other project the return type JSON obj needed to be placed in the same package path(i.e., a.b
) provided in the jar.Else compile error occurs if the path is changed something like a.b.c.json
. Am I following the correct procedure to retrieve JSON object or else is there any other procedure??
Class A{
public Json A(){
return Json;
}
}