Hey folks,
Been thinking and searching about this question for a while, and I've never seen a very good answer. My problem is that I would like to be able to click "clean and build" and have my project ready to run from the jar without having to do another thing to it. If it runs in the
IDE it should run from the command line, and it does if you have a single package and you have it pointing to the right libraries.
So, I have this bit of code...
which is called by
and uses the file
testScript.sql that contains the following line:
It all runs great when I build and run in the IDE, but I get this when I run the jar:
so I didn't mean for this to be such a huge post, but I really want to understand why this
works in the IDE but not from the command line. Is there a reason you would NOT want this to work automatically? Is there something I should be doing differently?
Wouldn't it make sense for everything in your project to be built into the jar? I didn't put it in that project by accident.
I guess I should mention that SQLScriptLoader.java is in a the package "sqlscripts" and BDConnector.java is in package "mytesting."