java - how to have an external Jar or windows .exe made from an external jar download a file from the internet and write to the hard disk? -
i trying make external jar or windows .exe (i know how make both of those) need know how write hard disk commonly known c drive
i not sure if got question correct here explanation.
jar file contains byte code. if go , open jar find .class files rather .java files. jar file executable file(if not can set executable bit 1). there no .exe file in java. makes java platform independent. if want execute program run jar file java program.
$>java -jar [jar file name]
now if meant converting jar file contents(.class files) source code(.java files) not possible(similar cant find source code .exe file). common sense dictates why want have source code of application has developed.unless of-course foss in case have source code download separately.to know byte code , how works can refer link.
Comments
Post a Comment