java - Run external jar inside another jar -


it possible run jar have inside jar class?

i´m trying run command class

java -cp //file:/d:/users/nb38tv/workspace/f2e-core/f2e-mock/f2e-test-framework/target/f2e-test-framework-1.8.3-snapshot.jar!/h2/sakila-h2-master/h2-1.3.161.jar -ifexists -tcp -web -tcpallowothers 

but java complain since cannot find jar.

if remove ! path receive error

unrecognized option: -ifexists error: not create java virtual machine. error: fatal exception has occurred. program exit. 

it not possible execute jar embedded in jar that, if possible, java command line incorrect. because -ifexists (and other options) interpreted commandline options of java executable.

you same error message if extract h2-1.3.161.jar f2e-test-framework-1.8.3-snapshot.jar , tried execute same command line.

it either need use -jar instead of -cp, or need specify class run before -ifexists.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -