I built a java program that consists of 2 files. The one that contains the main is SnortMonitor.java and it uses Database.java to connect to the database and run a query. I migrated it from my windows machine to the linux machine where it needs to be. I am able to compile it and run it just fine on both machines.
My ultimate goal, which is my next step, is finding a way to make this into an executable with will constantly run on this linux machine. The program is designed to scan each record of a database and send certain information to another machine, I need it to run constantly so that it is constantly sending this information to this other machine, or something like every 3-5 seconds.
One Footnote: For some reason that is beyond my knowledge, I ended up with SnortMonitor.java, Database.java, SnortMonitor.class and Database.class once I finished compiling and running on linux, I'm not sure if this makes a difference, I'm very new to linux.
.classfiles are the output of the java compiler. So if you feed in a.javasource file, you'll get a corresponding.classfile which is what the Java Virtual Machine (JVM) executes, so that's perfectly normal (and to be expected after compilation)