Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了一个应用程序 - Instant Messenger - 连接到 MySQL,它需要 MySQL 驱动程序,所以我附上了这个外部库,这个程序运行良好。但我想将此应用程序重新创建为 Applet 并将其存档到 .jar 我如何编辑清单以将驱动程序包含在 Applet 中?
我知道我可以使用(对于桌面应用程序)Class-Path: external.jar 但它也适用于小程序吗?
谢谢大家。
编辑:或者有另一种方法如何将外部 jar 封装到 Applet 中?例如使用 HTML 代码?
如果您使用的是命令行,则只需键入即可jar打印:
jar
示例 2 允许您指定将用作清单的文件。
在 JAR 文件中编辑清单文件的更简单方法如下: