Compile-java

From PTAGISWiki

Jump to: navigation, search

How to compile java code for PTAGIS 11/19/2004 From Marton Nagy

However the best way to compile the java files is to use the bin/make.sh file, which in turn uses bin/config.sh to set a number of variables (including JAVA_HOME and PATH). So, create a ptagis working directory somewhere, copy there the full src directory from /dsk2/ptagis-1.0/src (or at least the files you want to compile) and copy the bin directory from /dsk2/ptagis-1.0/bin (or at least config.sh, make.sh and run.sh; or if you are on windows config.bat, make.bat and run.bat). Then edit the config.sh file and verify that the paths all set up correctly. If so, you can compile the file with:

bin/make.sh src/util/SEFInterface.java

That will create one or more class files in classes/util which can then be run with the command:

bin/run.sh util.SEFInterface <application parameters>
Personal tools