我记得可以在jar的manifest.mf里写classpath,但是swt不只要jar,还要swt-*.dll在*nix中是swt-*.soLet's say you split the inter-dependent classes for a stock trade application, into three jar files: main.jar, buy.jar, and sell.jar. If you specify the Class-path attribute in the main.jar manifest as: Class-Path: buy.jar sell.jar then you can use the i option to speed up your application's class loading time: C:\Java> jar i main.jar An INDEX.LIST file is inserted to the META-INF directory which will enable the application class loader to download the specified jar files when it is searching for classes or resources.
Class-Path: buy.jar sell.jar
then you can use the i option to speed up your application's class loading time:
C:\Java> jar i main.jar
An INDEX.LIST file is inserted to the META-INF directory which will enable the application class loader to download the specified jar files when it is searching for classes or resources.
我的MSN: netver(at)hotmail.com