executable-jar

How can I get an executable file of a Java program? [duplicate]

点点圈 提交于 2019-12-01 10:11:50
Possible Duplicate: How can I convert my java program to an .exe file ? I'm trying to export a program written in Java 6 to a JAR file. My project contains one Java library from the Internet and some Java source files. When I create the JAR file, the classpath should be set by default and the end-user should be able to run the project directly from either the command prompt or some other source. My goal is to export everything to a JAR file, if that's possible. Also, the program output should be given at the command prompt. How can I export my program in this way? You need to write a META-INF

Jar to exe with an external library

China☆狼群 提交于 2019-12-01 09:56:26
I've been trying to convert a jar to exe. The program - the jar - uses a bluetooth library 'Bluecove' which is another jar in some directory. The program also uses Java Swing, typically JFrame and stuff. The program works perfectly when run from within Netbeans or Eclipse. It's time for me to deploy it, hence I need to convert it to exe. But I've been unable get the final executable to link with 'Bluecove'. I tried JSmooth and Launch4j , but with both, though I could complete the process and create the 'exe', the final program isn't running, because it can't find the Bluecove classes. Any

Creating one jar file that for execution from Java/Clojure

落花浮王杯 提交于 2019-12-01 09:45:34
问题 I'd like to create one jar file to execute that is implemented with java and clojure. This is the step that I took. Making my java code call clojure code I could generate a jar file (ThingOne-1.0.0-SNAPSHOT-standalone.jar) that has clojure core and my clojure code, and I also could get a class file (HelloJava.class) that uses the clojure code in the jar file by following this site - http://walkwithoutrhythm.net/blog/2012/03/26/how-to-call-clojure-1-dot-3-functions-from-java/ The java code is

How can I get an executable file of a Java program? [duplicate]

和自甴很熟 提交于 2019-12-01 09:03:15
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: How can I convert my java program to an .exe file ? I'm trying to export a program written in Java 6 to a JAR file. My project contains one Java library from the Internet and some Java source files. When I create the JAR file, the classpath should be set by default and the end-user should be able to run the project directly from either the command prompt or some other source. My goal is to export everything to a

Jar to exe with an external library

╄→尐↘猪︶ㄣ 提交于 2019-12-01 08:51:58
问题 I've been trying to convert a jar to exe. The program - the jar - uses a bluetooth library 'Bluecove' which is another jar in some directory. The program also uses Java Swing, typically JFrame and stuff. The program works perfectly when run from within Netbeans or Eclipse. It's time for me to deploy it, hence I need to convert it to exe. But I've been unable get the final executable to link with 'Bluecove'. I tried JSmooth and Launch4j , but with both, though I could complete the process and

eclipselink PersistenceUnitLoadingEception in executable JAR

半世苍凉 提交于 2019-12-01 05:31:32
I am developing a stand-alone java application which uses eclipselink. It is all fine when I execute the app from eclipse IDE. But I've exported an executable JAR file, and since than I can not make eclipseLink work. I have found similar issue in the Eclipse community forum here , but yet not too handy: Please help, My exception is the following: 01 dec. 2010 22:47:31,199 INFO Configuration:97 - Iniciate database Exception in thread "main" java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke

eclipselink PersistenceUnitLoadingEception in executable JAR

烂漫一生 提交于 2019-12-01 03:13:14
问题 I am developing a stand-alone java application which uses eclipselink. It is all fine when I execute the app from eclipse IDE. But I've exported an executable JAR file, and since than I can not make eclipseLink work. I have found similar issue in the Eclipse community forum here, but yet not too handy: Please help, My exception is the following: 01 dec. 2010 22:47:31,199 INFO Configuration:97 - Iniciate database Exception in thread "main" java.lang.reflect.InvocationTargetException at sun

How to Run a Java Application Using MySQL DB on a Computer Without MySQL Installed?

倾然丶 夕夏残阳落幕 提交于 2019-12-01 01:56:41
I created a java application that is a front end for a MySQL Database using NetBeans and JDBC. Now after creating the jar file it runs smoothly on my computer (Since I have the MySQL installed) but, if I run the jar on a different computer it won't work since it does not have the DB the application is using and not even MySQL installed. So the question is, is it possible to add the database to the executable jar so it will run on any computer without the need for any installation of any software (Except for JRE of course) ? If yes, how do I go about doing so? Thanks everyone for the help in

How to Run a Java Application Using MySQL DB on a Computer Without MySQL Installed?

感情迁移 提交于 2019-11-30 21:16:01
问题 I created a java application that is a front end for a MySQL Database using NetBeans and JDBC. Now after creating the jar file it runs smoothly on my computer (Since I have the MySQL installed) but, if I run the jar on a different computer it won't work since it does not have the DB the application is using and not even MySQL installed. So the question is, is it possible to add the database to the executable jar so it will run on any computer without the need for any installation of any

Modify Executing Jar file

蹲街弑〆低调 提交于 2019-11-30 19:10:18
Hello Stack Overflow friends. I have a simple problem which i fear doesnt have a simple solution and i need advice as to how to proceed. I am developing a java application packaged as and executable JAR but it requires to modify some of its JAR file contents during execution. At this stage i hit a problem because some OS lock the file preventing writes to it. It is essential that the user sees an updated version of the jar file by the time the application exits allthough i can be pretty flexible as to how to achieve this. A clean and efficient solution is obviously prefereable but portability