java - How to make a jar file from code? -
i have java code written in text file, want create jar file use file library in android project. best way make jar file point. please note have code written in textfile , saved .txt. if rename file .java , use code
jar cf filename.jar file(s)
a jar file created when decompile in java decompiler doesnt show packages , codes that's why unable use it's methods. best way this? need help
if want use classes in library must compiled , have manually create packages subfolders.
so : 1. make folder 2. create each package subfolderds in (com/foo/bar/xxx) 3. compile each of .java files , put them correct subfolders 4. zip folder , rename .jar extension
but hard code, why don't create ide ?
Comments
Post a Comment