in eclipse follow this..
right click on your project-> build path -> add external archives ->
select your jar all ok. run your class.
in cmd follow this..
c:your folder>javac -cp your_path_of_mysql-connector.jar MysqlCon.java
The Lucene Analyzers are no longer in the Lucene core. Download the
JAR (or add to your Maven dependencies) for the corresponding version
How about a CL program that explicitly sets the classpath and then
calls your RPG program?
This page may also be helpful.
You are not creating a new Instance of temp everytime you call below,
the same list is added into the list, which you are clearing.Remember
it is the reference of the list which is added.
public static void addToList(int num,
//Splits the two parts of the number and inserts the arraylist
into the proper arraylist
sortingList = a;
Both references, sortingList and a are pointing to the same ArrayList
Check this question to see how to see how to clone the list: How to
clone ArrayList and also clone its contents?