executable-jar

Generated JAR file is not executing

懵懂的女人 提交于 2019-12-12 03:42:30
问题 I have a java project which reads data from an the excel sheet (specified by the user), performs some filtering and creates a few text files and then writes the modified data to the text files. The project is working fine and now I want to create a jar file for it. I created the jar file but it did not run. As far as the code is concerned it is running without any errors.I have used Netbeans for GUI. I also saw related questions which said it is not possible to create a text file from a

crontab not running java

折月煮酒 提交于 2019-12-12 03:37:54
问题 I have a .jar which I can run perfectly via the command line. I need this to be running continuosly every 5 mins, so i did crontab -e where I added this line */5 * * * * java -jar /var/www/java/executable.jar if I go grep CRON /var/log/syslog I do see where the job was executed, but it never was since I have a logger inside the java file and the first thing it does is append to the logger the time, which is not doing so. What can be the possible error? 回答1: The most common error is that the

Executing compiled jar file from .NET (System.Diagnostics.Process)

浪子不回头ぞ 提交于 2019-12-12 02:35:47
问题 Trying to integrate the google closure compiler in a batch job of mine and having difficulty getting it to work. Using command prompt I can enter the following command and get my scripts compiled. (The command is a self explanatory example) java -jar "compiler.jar" --js_output_file="myOutput.min.js" --js="input1.js" --js="input2.js" I have tried to replicate this using the System.Diagnostics.Process object but thus far have failed. I have tried Dim command As String = BuildCommand

Gradle, Tika - Exclude some dependency packages making a “fat jar” too fat

心已入冬 提交于 2019-12-12 01:25:17
问题 I'm making an app which creates Lucence indices on a handful of well-known document formats (.docx, .odt, .txt, etc.). Tika is ideal for extracting the text but it appears to be the culprit in making my fat jar balloon to 62 MB. To make the fat jar I'm doing this in my build.gradle: buildscript { repositories { jcenter() } dependencies { // fatjar classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.4' } } apply plugin: 'com.github.johnrengelman.shadow' shadowJar { baseName = project

Java - Jar could not find included libraries and main class

安稳与你 提交于 2019-12-11 23:15:42
问题 I am currently trying to make a Jar with all my libraries included. What I have done, I have created folders like this : eancopy (which contain all my classes) lib (containing all my libraries : mongo, jedis...) META-INF/MANIFEST.MF My main class is named process (within the package eancopy) My manifest is like this: Manifest-Version: 1.0 Ant-Version: Apache Ant 1.8.2 Class-Path: lib\commons-pool-1.5.6.jar lib\jedis-2.0.0.jar lib\mongo-2.6.3.jar Created-By: 1.6.0_24-b07 (Sun Microsystems Inc.

Using maven ant plugin in javafx application, How to add Dependencies in javaFX jar. Still facing class not found exception

牧云@^-^@ 提交于 2019-12-11 20:58:45
问题 I using this guide added my dependencies to main jar JavaFX jar with dependencies bundled i am facing dependencies issue which causing Class not found exception. My Pom is exactly like mentioned in above link. i use dependencies plugin to copy dependencies to lib folder in target. Here is my stack trace Try calling Class.forName(com.client.main.App) using classLoader = j ava.net.URLClassLoader@3c9076d found class: class com.client.main.App launchApp: Try calling com.sun.javafx.application

cannot recup dependency with maven assembly plugin

非 Y 不嫁゛ 提交于 2019-12-11 20:42:02
问题 I have a problem with maven assembly plugin, and I cannot understand why. I wish to create an executable jar but there is something missing in the generated jar. Actually, the generated jar does not contain a dependency which is actually refered to in the pom (common-loggins), whereas all other dependencies are present in the generated jar. At the execution of the jar, I get a "NoClassDefError" on the commons-logging class. I have included a simplified pom, so you can test to see the problem.

JOGL Jar runs fine on my development machine, but slowly on others? Even if they have better hardware

久未见 提交于 2019-12-11 19:30:09
问题 I am currently messing around with JOGL and JBullet with some success. I'd like to share what I've created with my friends. I created a jar file and a .bat to open it with the argument -Dsun.java2d.noddraw=true. The jar runs perfectly on my machine. It opens and runs on my friends system and my laptop, but at an extremely low frame rate. What is the cause of this and how can I fix it? Also for some reason it loads the wrong textures for some objects, again only when ran on another system.

Jar file can't write files to local machine

核能气质少年 提交于 2019-12-11 18:24:34
问题 I know Java Applets have a bunch of restrictions as to what they can and cannot access, but I thought JARs were different. For the record, I'm new to JAR files and the like. I have written a GUI for a data entry tool, and I would like to be able to write the formatted data to a text file. This works when the program is run from Eclipse. However, once packaged in a JAR file, I can no longer get the write-to-file piece to work. It doesn't error out either. There's no single line of code to

Gradle - Multiple Jar from single project

隐身守侯 提交于 2019-12-11 15:59:03
问题 Context: To create multiple executable jar's from a single project - multiple package gradle project Issue: I refer to the solution provided in Link, this helps in generating the jar in build->libs folder, but when I try executing the jar nothing happens Note: Even if I make the package name same as java file name, the generated jar does not execute. Also I notice the file size of all the jar's generated is the same. Hope the issue faced is clear & await inputs as to where I am making a