I am unable to execute a JAR file from the command line. It is returning a ClassNotFoundException and is referencing the database driver class. The application runs fine within Netbeans.
C:\temp> java -classpath C:\Temp\db2jcc.jar;C:\Temp\CatalystIncomingWire.jar -jar .\CatalystIncomingWire.jar file.txt
C:\temp> java -classpath .\db2jcc.jar -jar .\CatalystIncomingWire.jar file.txt
java -jar .\CatalystIncomingWire.jar file.txt
Code that loads the driver
//Create DB2 connection
Class.forName("com.ibm.db2.jcc.DB2Driver");
Connection conn = DriverManager.getConnection("jdbc:db2://keystone:50000/"+db,"user","pass");
It will read a file and output a new one. Works fine within netbeans.