My file structure looks liked this:
cse408 - lib
- pics
- App.java
- ImageUtil.java
- Menu.java
And to compile/run I use the following commands:
***To Compile***
LD_LIBRARY_PATH=/home/soldiermoth/Downloads/6.4.0/lib javac -classpath lib/jmagick.jar:. App.java
****************
****To Run******
LD_LIBRARY_PATH=/home/soldiermoth/Downloads/6.4.0/lib java -classpath lib/jmagick.jar:. App
****************
As you may be able to tell I have a dependency on an installed jmagick library where the jmagick.so file is in 6.4.0/lib
Mostly I'm wondering about how I'm handling dependencies and how I could do it better especially cross platform.