将.class转换为jar,将.class转换为exe [英] Conversion of .class to jar and .class to exe

查看:524
本文介绍了将.class转换为jar,将.class转换为exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何转换:


  • 使用cmd将类文件转换为jar文件?

  • class文件到exe文件?

  • jar文件到exe?

我可以将exe文件转换为jar文件?

Can I convert exe file to jar file?

推荐答案

jar文件的类文件


用法:jar {ctxu} [vfm0M] [jar-file]

Usage: jar {ctxu}[vfm0M][jar-file]

[manifest-file] [-C dir] files ...

[manifest-file] [-C dir] files ...

选项:

-c  create new archive

 -t  list table of contents for archive

 -x  extract named (or all) files from archive

 -u  update existing archive

 -v  generate verbose output on standard output

 -f  specify archive file name

 -m  include manifest information from specified manifest file

 -0  store only; use no ZIP compression

 -M  do not create a manifest file for the entries

 -i  generate index information for the specified jar files

 -C  change to the specified directory and include the following


文件如果有的话file是一个目录,然后递归处理。清单文件名和存档文件名需要以'm'和'f'标志指定的相同顺序指定。

file If any file is a directory then it is processed recursively. The manifest file name and the archive file name needs to be specified in the same order the 'm' and 'f' flags are specified.


示例1:将两个类文件存档到名为classes.jar的存档中:

Example 1: to archive two class files into an archive called classes.jar:

`jar cvf classes.jar Foo.class Bar.class` 


示例2:使用现有的清单文件'mymanifest'和archive

Example 2: use an existing manifest file 'mymanifest' and archive


foo /目录中的所有文件变成'classes.jar':

all the files in the foo/ directory into 'classes.jar':



jar cvfm classes.jar mymanifest -C foo/ .

将jar文件转换为.exe文件

Convert jar files to .exe file

1) JSmooth .exe wrapper

2) JarToExe 1.8

3) 执行者

4)高级安装程序

将.class转换为.exe在这里详细讨论

这篇关于将.class转换为jar,将.class转换为exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆