![]() works everywhere, IDEA, unit test and JAR file. For more details, refer to the JNLP specification, section 5.4 'Signed Applications' and section 4.7 'Extension Resources. ![]() InputStream is = this.getFileFromResourceAsStream(filePathInJAR) įpyInputStreamToFile(is, new File(filePathInJAR) ) If you need to use JARs signed with different certificates, you can put them in a component extension JNLP file, and reference it from the main JNLP file. It should always refresh the jnlp file type. This may only occur on a machine with a number of JRE installed. You really shouldnt rely on this path being well-known in your applications code. ![]() The OpenJDK packages shipped by Debain, for instance, bundle netx, which stores its files in /.netx/cache/.The Wikipedia entry has a list of known implementations other than Suns. When I run my code(below) with my jar java -jar myprogram.jar it extracts the file from jar(Jar does what I need) List result = this.getPathsFromResourceJAR("tokenconfig.json") įilePathInJAR = filePathInJAR.substring(1, filePathInJAR.length()) jnlp association is not there or corrupted then the install (uninstall/reinstall) does not repair it. There is more to JNLP than just Suns implementation.
0 Comments
Leave a Reply. |