L
Lukas
Hi group!
I'm deploying an application with this structure
app
app/app.bat
app/lib/app.jar
app/lib/another.jar
app/plugins/other/
where the (windows) batch file starts the application like so:
java -jar lib\app.jar
and the Manifest.mf with that jar puts another jar on the classpath
like so:
Class-Path: another.jar
Now I also want to put any plugin classes that users put into
app/plugins/other/ onto the classpath, roughly like so:
Class-Path: another.jar "../plugins/other/*"
So far I've tried a few variations, but the development cycle is quite
tedious and it ain't workin yet.
I'm wondering:
* use quotes ?
* forward slashes ok on windows or do I need separate versions for Win
vs Unix ?
* end the directory with / (or resp. \) or nothing (../plugins/other) ?
* end the directory with "/*" or possibly "/*.class" ?
Alternatively I could use the java -classpath arg in the batch file,
but I've tried that and it's not working either, so I'm getting the
impression that using the Class-path: line in the manifest somehow
disables the -classpath arg of the java command. Is that so?
YT
I'm deploying an application with this structure
app
app/app.bat
app/lib/app.jar
app/lib/another.jar
app/plugins/other/
where the (windows) batch file starts the application like so:
java -jar lib\app.jar
and the Manifest.mf with that jar puts another jar on the classpath
like so:
Class-Path: another.jar
Now I also want to put any plugin classes that users put into
app/plugins/other/ onto the classpath, roughly like so:
Class-Path: another.jar "../plugins/other/*"
So far I've tried a few variations, but the development cycle is quite
tedious and it ain't workin yet.
I'm wondering:
* use quotes ?
* forward slashes ok on windows or do I need separate versions for Win
vs Unix ?
* end the directory with / (or resp. \) or nothing (../plugins/other) ?
* end the directory with "/*" or possibly "/*.class" ?
Alternatively I could use the java -classpath arg in the batch file,
but I've tried that and it's not working either, so I'm getting the
impression that using the Class-path: line in the manifest somehow
disables the -classpath arg of the java command. Is that so?
YT