jar

How can I sign and deploy a JavaFX application into a single .JAR?

独自空忆成欢 提交于 2020-01-14 12:44:15
问题 I'm still learning the ins and outs of JavaFX. One major difference is that in the dist folder (in addition to the library) I find besides the .jar file, an HTML file and a JNLP file, neither nor of which is any use to me (this will be a desktop application). I found the following (Properties omitted because of sensitive/irrelevant information): <delete dir="${store.dir}"/> <mkdir dir="${store.dir}"/> <jar destfile="${store.dir}/temp_final.jar" filesetmanifest="skip"> <zipgroupfileset dir=

How can I sign and deploy a JavaFX application into a single .JAR?

巧了我就是萌 提交于 2020-01-14 12:42:50
问题 I'm still learning the ins and outs of JavaFX. One major difference is that in the dist folder (in addition to the library) I find besides the .jar file, an HTML file and a JNLP file, neither nor of which is any use to me (this will be a desktop application). I found the following (Properties omitted because of sensitive/irrelevant information): <delete dir="${store.dir}"/> <mkdir dir="${store.dir}"/> <jar destfile="${store.dir}/temp_final.jar" filesetmanifest="skip"> <zipgroupfileset dir=

Java 7 Manifest Security Changes

旧时模样 提交于 2020-01-14 10:27:09
问题 With recent changes to Java 7s security checks, I'm updating our webstart application to allow it to run without warnings. Our webstart application consists of a number of jar files, only a few of which are developed by us, we use a number of 3rd party jar files (log4j, swingx, ...) Our previous setup used a self signed certificate, with which we signed all jar files. We have now purchased a signing certificate from a proper CA. The steps I've taken so far are: Unpack the jar files Strip out

Where to deploy a jar dependency of my webservice?

一笑奈何 提交于 2020-01-14 10:23:13
问题 My webservice depends upon a jar (which contains a custom Exception class among others). When I deploy simply my webservice without this jar, axis2 complains that the Exception class is not known. So I guess that I must deploy my jar too... But I feel reluctant to put it in: tomcat\webapps\axis2\WEB-INF\lib , since it's already filled with lots of axis2 and 3rd party jars... i'd prefer something like tomcat\webapps\axis2\WEB-INF\usr\lib Where would you put it ? 回答1: Consider deploying your

Where to deploy a jar dependency of my webservice?

人走茶凉 提交于 2020-01-14 10:22:48
问题 My webservice depends upon a jar (which contains a custom Exception class among others). When I deploy simply my webservice without this jar, axis2 complains that the Exception class is not known. So I guess that I must deploy my jar too... But I feel reluctant to put it in: tomcat\webapps\axis2\WEB-INF\lib , since it's already filled with lots of axis2 and 3rd party jars... i'd prefer something like tomcat\webapps\axis2\WEB-INF\usr\lib Where would you put it ? 回答1: Consider deploying your

Can't access resource in a JAR on all computers

三世轮回 提交于 2020-01-14 08:35:33
问题 I'm writing an application (specifically a plugin for the Bukkit Minecraft server). Doing this requires that I access a .properties file from the JAR of the application. This is where I encounter a strange problem. When I test the program on my development PC, it runs just fine. The .properties file gets loaded and everything is fine. However, on the other computer that I test it on, I try to start the app, and it can't loaded the properties, and the InputStream is null . Here is the method

How to patch a Java program?

杀马特。学长 韩版系。学妹 提交于 2020-01-14 07:49:29
问题 Recently I applied a fix to a Java desktop application. I did this by changing the code in one of my classes, compiled it and sent the new jar to the production environment. I'm now asked if it is possible to just patch the jar in production by just copying the compiled class that I fixed, or even create a patching program/script that will be able to update just the modified files. Additional info: The patch does not have to be applied in run time. Meaning the patch can be done as a separate

How to allow JOptionPanes to show in a Windows Service

半腔热情 提交于 2020-01-14 05:48:05
问题 The program I created deletes all files in a folder then displays a JOptionPane. It runs fine as a jar file but not when I create a service out of it. When I run the service it deletes the files but does not display the JOptionPane. I've already tried the: "Allow service to interact with desktop" package testPackage; import java.io.File; import javax.swing.JDialog; import javax.swing.JOptionPane; public class TestPack{ private static void deleteAll(File del) { if (!(del.isDirectory())) { del

weird behavior when loading jar inside a jar in Java Web Start

流过昼夜 提交于 2020-01-14 04:15:28
问题 Hell All, So I have been facing this behavior for quite some time and I am sure some else has also faced it and know the solution. I am exporting my application jar as a runnable jar using eclipse and obviously this application have many other jar and so I am exporting with option packed other jar inside the main jar. The problem is when I am starting my application it is not loading the file from db2jcc.jar and few other jar but If I deploy db2jcc.jar as separate jar application running fine

iajc fails to weave aspects from a jar but succeedes from class files

牧云@^-^@ 提交于 2020-01-14 03:13:30
问题 So I defined iajc task for my project that does intertype declarations just fine, then there is a separate jar task that creates a project.jar. Then there is iajc task for junit test target, this task references the project.jar with the goal of weaving its ITDs into test classes like so: <aspectpath> <pathelement path="${dist}/project.jar"/> <fileset dir="${lib.aspect}"> <include name="**/*.jar" /> <include name="**/*.zip" /> </fileset> </aspectpath> That does not work - compiler produces