Hello, I still new using wildfly and I have problem using appclient.bat My problem is i can't load method that come from lib.
this is my simple code
import com.test.otherMe.otherLib;
public class Main extends OtherLib { public static void main(String[] args) { System.out.println("Yahooooo......"); } } |
When i run appclient using this command
C:\wildfly-8.2.0.Final\bin>appclient.bat --host=127.0.0.1 d:\target\SimpleProjectMaven.jar
i get this error
Caused by: java.lang.NoClassDefFoundError: com/test/otherMe/otherLib
My directory structure
wildfly-8.2.0.Final/bin
|
------> lib
|
------> otherLib.jar
------>appclient.bat
------>SimpleProjectMaven.jar
I already make sure that MANIFEST.MF in SimpleProjectMaven.jar load the /lib/otherLib.jar
I found the answer
so what i must do is, place the lib i want to include into
C:\wildfly-8.2.0.Final\modules\system\layers\base\{your package name}\main