1. Use jar to package the legacy binary into platform dependent jar files. Use jarsigner to sign the binary package jar file Before using jarsigner, you may need create some keystore with keytool. Some examples are: keytool -genkey -keystore abc.ks -alias abc -validity 365 keytool -genkey -keystore securityKM.ks -alias master -validity 365 keytool -selfcert -keystore securityKM.ks -alias master -validity 365 keytool -export -file securityKM.cert -keystore securityKM.ks -alias master -v keytool -printcert -file securityKM.cert keytool -import -file securityKM.cert -alias master -keystore abc.ks keytool -list -keystore abc.ks 2. Prepare the JNLP file with platform dependent resource properties. An example as: 3. Client click the JNLP and download the jar file. Using the code below to load and unpack binary String os = System.getProperty("os.name"); ClassLoader classLoader = getClass().getClassLoader(); URL url; int n; byte[] b = new byte[8092]; InputStream is; FileOu...
Integration of Knowledge and Action (知行合一)by wandering around the world