I am making a simple java class that connects to redshift database. In eclipse I add a reference to it and it compiles the class and runs the code.
Outside of eclipse when I run the class from it's bin folder location on command prompt. The code doesn't work and cannot find the external jar file
so what I do to make this work is copy the external jar file in the bin folder of eclipse and then unjar , the code then works fine
why do i have to do all this