This content has been marked as final. Show 3 replies
You can do it by copying all the name of the jars in a file and calling that file using the syntax in your program: -classpath @pathname\filename
Note:Windows OS has a Classpath Length Limitation: Win32 systems have a 2K limitation on the length of the command line. If the classpath setting for the Windows service startup is very long, the 2K limitation could be exceeded.
set CMDLINE="%JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS%
-classpath *@c:\myClasspath.txt* -Dweblogic.Name=%SERVER_NAME% -Dbea.home=\"D:\bea_70sp2\" -Dweblogic.management.username=%WLS_USER% -Dweblogic.management.server=\"%ADMIN_URL%\" -Dweblogic.ProductionModeEnabled=%STARTMODE% -Djava.security.policy=\"%WL_HOME%\server\lib\weblogic.policy\" weblogic.Server"
Refer the section " Adding Classes to the Classpath" in the below link
Thanks. Yeah, I'm using WLS 10.3.5 on Windows. I did not know about the 2K limitation regarding the command line.
I need to count the classpath string to see how long it is but it looks very long.
I put it in the classpath section of the Server Start tab in the Weblogic Administration Console for my server as below
but it failed to start up
Also what is the correct format to specify all the jar files in a directory please?