build.xml

java.lang.ClassNotFoundException when running java -jar

邮差的信 提交于 2019-12-21 19:53:02
问题 I'm using ant to build my build.xml file, it compiles ok, but then getting a runtime java.lang.NoClassDefFoundError when running the resulting jar via " java -jar my_jar.jar ". It seems like this comes up a lot but none of the related questions' solutions worked for me. My classpath for javac contains only " /usr/local/lib/libthrift.jar " and the main .java file imports a bunch of thrift packages such as org.apache.thrift.transport.TTransportException . When I try running the program via:

How to recompile with -Xlint:unchecked in Ant build task?

两盒软妹~` 提交于 2019-12-21 03:22:11
问题 When I run the "compile" target of my Ant "build.xml" file, then I get the following message: Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. My compile target is the following: <target name="compile"> <javac srcdir="${src.dir}" destdir="${classes.dir}" debug="true" debuglevel="lines,source" includeantruntime="false"> <classpath refid="class.path" /> </javac> <javac srcdir="${test.dir}" destdir="${classes.dir}" debug="true"

Netbeans Export to Jar, include all library files

你。 提交于 2019-12-18 14:59:28
问题 What I really need is an equivalent of this from Eclipse with Netbeans: I want to Extract required libraries into generated JAR so I can distribute it without the need of including the lib folder everywhere it goes. Here's the original question. I'm trying to build a jar out of Netbeans that will package all the library files inside it. I've heard it's possible with Eclipse by choosing Export. With Netbeans, if I "Clean and Build" it will create an executable jar in the dist folder, but all

How to modify build.xml to run multiple files in that order

一曲冷凌霜 提交于 2019-12-14 03:16:54
问题 I have implemented an echo server Client : connects to server, sends string data to server. Server : prints incoming data, sends back data to client I need to run both server and client using ant in cmd. How do I make the same build.xml file run both server and client. Can I set both targets in the same file or do I need to use different build.xml files. Please find below, build.xml file that I am using, which runs the echo server. I need to run the EchoClient.java as well. How do I modify

build.xml ignoring <echo> tags and if options

我与影子孤独终老i 提交于 2019-12-13 07:25:55
问题 I have a sencha Ext.js project and I am trying to get user input and take action based on that user input in my build.xml file. Here's my build.xml : <?xml version="1.0" encoding="utf-8"?> <project xmlns:if="ant:if" xmlns:unless="ant:unless" name="PSOGN" default=".help"> <import file="${basedir}/.sencha/app/build-impl.xml"/> <target name="-after-build"> <echo>57 ...</echo> <property name="realperl" value="/usr/bin/perl"/> <echo>59 ...</echo> <exec executable="/bin/hostname" outputproperty=

Using the nested element module in cvs task in ant build.xml

蓝咒 提交于 2019-12-12 17:43:19
问题 I have problems connecting to CVS using ant build.xml. I figured out the reason was whitespaces in package attribute of CVS task as: <cvs cvsRoot=":pserver:user@xx.xxx.xxx.xx:/CVSREPO_CCP_MIG" dest="${basedir}" package="My Test Project"/> I learned from the ant website( http://ant.apache.org/manual/Tasks/cvs.html ) that we may Use a nested <module> element if you want to specify a module with spaces in its name. This specifies a package/module to work on, unlike the package attribute, modules

ant build failed xxx\xxx\build.xml:49: Java returned: -1

﹥>﹥吖頭↗ 提交于 2019-12-11 20:20:46
问题 I am trting to build Blackberry project and generate the cod file. My environment is Windows 7 and the apache-ant version is 1.8.2. I have encountered two problems and they all lead to failure. The command I used to build is "ant -Dbuild_env=prod" Below is part of the code in the build.xml file. <property file="build.properties" /> <property environment="SystemVariable"/> <!--<property name="jde.home" value="${SystemVariable.JDE_HOME}"/> --> <property name="jde.home" value="E:\eclipse

Java splash command line used in javafx build.xml not working

£可爱£侵袭症+ 提交于 2019-12-11 11:08:28
问题 I read the Oracle doc How to Create a Splash Screen,follow the guide, I can make my javafx application show a splash before preloader start on java -jar command. Then, I add a jvmarg to fx:Platform of fx:depoly in the build.xml file,the jvmarg was <fx:jvmarg value="-splash:res/img/logo.png"/> , hopely ,I want to show the splash before application preloader start when I launch the application through myApplication.exe that build by fx:deploy , but ,it seems not working. I also tried with add

How to get Jenkins working with binaries from COMPOSER_HOME/bin?

六眼飞鱼酱① 提交于 2019-12-11 04:44:23
问题 I'm working on a project and want to use Jenkins for it. The config should be done by a simple build.xml with a fiew targets: <?xml version="1.0" encoding="UTF-8"?> <project name="MyProject" default="full-build"> <property name="phpcs" value="phpcs"/> <property name="phpdox" value="phpdox"/> <target name="full-build" depends="lint, phpdox" description="Performs static analysis, runs the tests, and generates project documentation"/> <target name="lint" description="Perform syntax check of

Problems with build.xml when using the Android ADK to communicate with an Arduino Mega ADK

耗尽温柔 提交于 2019-12-08 08:20:46
问题 So a few days ago I got my hands on an Arduino Mega ADK board, and the last couple of nights I have been setting up my development environment, getting to grips with the tools etc. The tools and libraries all work fine, for example I can get a program written in the Processing IDE to compile and run on an Asus Eee Pad Transformer TF101 running Android 4.03. But when I get it to try to compile and run one of the pre-written examples, it gives me a compiler error: Android SDK Tools Revision 20