Executing Jar Files
Tagged with: commad, execute, jar, java, sun
Monday, January 14th, 2008 11:52 PM
Execute a Java jar file
java -jar [file_name.jar]
Execute a Java jar file
java -jar [file_name.jar]
Download the installer from http://www.java.com/en/download/manual.jsp
cd /usr/local/
mkdir java
cd java
sh /home/user/location_of_jre_installer/jre-6u3-linux-i586.bin
cd /usr/local/firefox/plugin/ [The folder where firefox is installed]
ln -s /usr/local/java/jre1.6.0_03/plugin/i386/ns7/libjavaplugin_oji.so
The build.xml file to concatenate files using ant. This can be executed using the command ‘ant “ConcatAll”‘
<?xml version="1.0" encoding="UTF-8"?>
<project name = "MyProj" basedir = "." >
<target name = "ConcatAll" >
<concat destfile = "final.txt" fixlastline = "yes" >
<filelist dir = "."
files = "first_file.txt
second_file.txt
third_file.txt"/>
</concat>
</target>
</project>