Linked Questions

Popular Questions

java -jar classpath refers jar inside ear

Asked by At

I have one big app.ear file which contains all my jar. now i am having another healthcheck.jar which will check the database up or not by connecting to database. now database client is inside the ear file, again i don't want to put the client jars(database client, hibernates jars etc) into healthcheck.jar.

is their a way so that i can exclude packaging database client jar from healthcheck.jar and refer it while run time from inside app.ear i'e

java -jar healthcheck.jar -classpath app.ear/hibernate.jar

Both are stored in common folder.

Related Questions