The directories in my jar files are like this:
in remote.jar
-com
-lib
-META-INF
under META-INF
is the file MANIFEST.MF
:
Manifest-Version: 1.0
Class-Path: lib/*
Main-Class: com.xx.xx.Main
and all jars are under lib
folder.
From the command line when i run java -jar remote.jar
it gives me ClassNotFoundException
, the class not found is in one of the jars under lib
folder. If the main
function does not reference any class in lib, the command line run with no problem.
My question is why it can not find the classes in jars under lib.
EDIT:
No nested folders under folder lib