I have updated my ant build.xml file to include a new file and a new folder. After creating the .jar I check if they exist in the jar by 'unzip\extract', ... |
I've compiled a java project into a Jar file, and am having issues running it.
When I run:
java -jar myJar.jar
I get the following error
Could not find the main class: myClass
The class file ... |
I wonder if this is possible with ant and java:
I have a Java project which looks like this:
./
build.xml
src/
com/
...
|
I put "stax-utils.jar" in the extensions directory ([JAVA_HOME]/jre/lib/ext), but ant's java task can't find it, giving:
java.lang.NoClassDefFoundError: javanet/staxutils/IndentingXMLStreamWriter
Strangely, it works for compilation: ant's javac task can find it. The problem is ... |
I am trying to rearchitect my build technique for creating Java jar files which depend on common 3rd party jar files. (GlazedLists, Apache Commons, etc.)
I had been chucking them all into ... |
I've programmed an application that take about 300 kilobytes.
The jar files that it uses (library) take about 10 megz.
These library jar files are used in other applications I wrote and ... |
Consider the following directory structure:
./source/com/mypackage/../A.java
./extensions/extension1/source/com/mypackage/../T.java
./extensions/extension2/source/com/mypackage/../U.java
...
./extensions/extensionN/source/com/mypackage/../Z.java
I want to produce a source jar with the following contents:
com/mypackage/../A.java
com/mypackage/../T.java
com/mypackage/../U.java
...
com/mypackage/../Z.java
I know I could use a fileset for each source directory.
But is there an easy solution using ... |
|
I sign jar files with the Ant signjar task and now I want to test before deploy.
I can check with
jarsigner -verify sbundle.jar
but I do not know if it ... |
My JAR files must be signed for a webstart application. It would be nice to also have them packed to minimize the download time. I'm trying to configure an Ant task ... |
I am trying to overwrite the default icon of installer JAR created by IzPack, with one from my application:
<jar update="yes"
jarfile="${pwd}/dist/${release}_installer.jar">
<zipfileset src="${pwd}/dist/app.jar" includes="com/izforge/izpack/panels/**"/>
<zipfileset src="${pwd}/dist/app.jar"
...
|
I created a keystore using keytool, but the thing is, we're using a JDK remotely ( and I don't have write priviledges on the server ).
I noticed that ant has ... |
I have a jar file with multiple executable classes, how can I run the main method of a using an ant target ?
Thanks
|
I am getting the error:
[signjar] jarsigner: attempt to rename
C:\workspace\line_editor\lib\icon.jar
to
C:\workspace\line_editor\lib\icon.jar.orig
failed
when attempting to self sign a set of jars with ant ... |
how to find the name of jar which contains the specific class through ant script?
|
HI,
I am using ant build script to build my java app and utilizing Ivy to manage its dependency.
As my application is dependent/subset of other application(Main App), when running it, I ... |
I'm new to Ant buildfiles, and I've managed to set up my buildfile to create my build directory structure, compile all my files, and jar them into an jar with a ... |
I looked through the site at all the common posts but my question differs slightly:
What is the best practice for packing a simple Java application that has many other jar files ... |
I'm developing swing based application in java at the end i want a executable jar file for this project.I'm developing with the NetBeans IDE it will create a jar file but ... |
We use ANT to create jar files. In order to create 100% reliable builds (no matter on what machine they are generated), we want the files in the generated jar files ... |
I am having a problem producing a working jar file. I would like to end up with a jar file that can run itself by using the command java -jar myjar.jar
So ... |
I have created a java library project. The binaries are available at <project-dir>/bin. The test classes are available at <project-dir>/bin/com/myproject/test. I need to exclude archiving of my test classes. So, I ... |
I already made a running program which is calculator in IntelliJ IDEA and make a test and it goes fine. My problem is that how to setup an ANT file to ... |
I'm working in a project where we need to encrypt the .jar file so no one can access to the .class files which inside the jar file.... is there any java ... |
I am a Apache Ant novice and I have created a Java application that contains, among many files, a sys.properties file. The location of this file is in the root and ... |
Summary
How can you make ant repeatedly generate byte-identical jar files from the same .class files?
Background
Our build process does the following:
- gets web-services-definition (wsdl) files from another application's source repository
- runs wsdl2java to ...
|
|
|
Like I said, it's all in the documentation. There's little point me telling you exactly what to do, because you clearly don't know what you're doing with Ant yet. You'll only be back here 10 more times saying "ok, now what?". Do yourself a favour, go read the documentation, or one of the millions of Ant tutorials kicking about t'internet. Or ... |
|
|
|
I have written a java program and my professor has requested that i send him an appropriate jar file, or ant file. I tried creating a jar file, but it didn't seem to run properly, does anyone know anything about ant? I am using eclipse and it seems to have ant built in. |