Posts Tagged With: java

Executing Jar Files

Tagged with: , , , ,

Execute a Java jar file


java -jar [file_name.jar]
No Comments »

Install Java JRE in Linux and Use it as a Firefox Plugin

Tagged with: , , , , , , ,

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
No Comments »

Using Ant to Concatenate files

Tagged with: , , , , , ,

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>
No Comments »