I have a Java test app. The code sample for the import section follows. I created a quick/short bash script to build the app/run the app. Everything works. The Java test runs.
I'm trying to figure out how to quickly/easily "package" the Java app (and all the associated files) to run the Java test on another Linux box.
Pointers to solutions would be appreciated.
Test code:
import java.sql.*;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Date;
import org.json.simple.*; // json package, download at http://code.google.com/p/json-simple/
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.lang.String.*;
public class ms1 {
private Connection conn = null;
private Statement stmt = null;
.
.
.
Is it as simple as doing a tar? Is this a package thing? Trying to get my head around how this works for small projects in Java.
update::
The test is all from the cmdline. There's no using of an IDE/Eclipse.
I run the test using the run/cmdline:
javac -classpath '/usr/share/java/json_simple-1.1.jar:/opt/selenium/selenium-server-standalone.jar:/apps/parseapp2/' ms1.java 'foo'