java test - package a java app for running on another linux box -


i have java test app. code sample import section follows. created quick/short bash script build app/run app. works. java test runs.

i'm trying figure out how quickly/easily "package" java app (and associated files) run java test on linux box.

pointers solutions 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 @ 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 simple doing tar? package thing? trying head around how works small projects in java.

update::

the test cmdline. there's no using of ide/eclipse.

i run test using run/cmdline:

javac -classpath '/usr/share/java/json_simple-1.1.jar:/opt/selenium/selenium-server-standalone.jar:/apps/parseapp2/' ms1.java 'foo' 

if using eclipse, go file > export > java > executable jar. type in name , select class contains main method.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -