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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -