Problems with running and compiling application
Hi! I have some troubles with one java application
Application called CASTOR consist of two other applications JiST/SWANS and PROTOPEER
I need it compile and run but I have no idea how to do it, I'm using Ubuntu 12.
In castor_simulator.zip archive you can find all info about this applications and source code.
Link for this application: http://dl.dropbox.com/u/25369700/castor_simulator.zip
Pls, give me hint how I can run it.
Re: Problems with running and compiling application
You need to compile it. Your best bet is something like ant or some other automated build tool. Otherwise you'll have to import the code into your IDE to compile.
Re: Problems with running and compiling application
but for Ant I need build.xml file isnt it?
Re: Problems with running and compiling application
Yes, you'll need that. There are examples out there that should be very simple to modify. To get you started:
Code :
<?xml version="1.0" encoding="UTF-8"?>
<project name="project_name" default="compile" basedir=".">
<!-- location properties -->
<property name="build.dir" location="build" />
<property name="src.dir" location="src" />
<!-- compile time value properties -->
<property name="compile.debug" value="true" />
<property name="compile.optimize" value="false" />
<property name="compile.deprecation" value="true" />
<property name="compile.source" value="1.6"/>
<property name="compile.target" value="1.6"/>
<property name="compile.checked" value="-Xlint:-path"/>
<path id="the.jars">
<fileset dir="lib">
<include name="bcel-5.2.jar" />
<include name="bsh-2.0b4.jar" />
<include name="colt.jar" />
<include name="jargs.jar" />
<include name="jython.jar" />
<include name="log4j-1.2.15.jar" />
</fileset>
</path>
<target name="compile">
<mkdir dir="${dest.classes.dir}"/>
<javac srcdir="${src.dir}"
destdir="${dest.classes.dir}"
debug="${compile.debug}"
deprecation="${compile.deprecation}"
optimize="${compile.optimize}"
source="${compile.source}"
target="${compile.target}"
includeAntRuntime="false">
<compilerarg value="${compile.checked}" />
<classpath refid="the.jars" />
</javac>
</target>
<!-- clean -->
<target name="clean" depends="checks">
<delete dir="${dest.classes.dir}"/>
</target>
</project>
this is completely untested but is based on a build.xml I use.
Re: Problems with running and compiling application