简体   繁体   中英

java command line with classpath for SSL

I am executing a java command line with args my command looks something like this.

/home/test/jdk1.6.0_30/jre/bin/java  -Dweblogic.security.SSL.trustedCAKeyStore=/scratch/montrust/Trust.jks -cp  /scratch/archives/abc.jar:/scratch/wls1036/middleware/wlserver_10.3/server/lib/weblogic.jar:/scratch//wls1036/middleware/Oracle_OSB1/lib/sb-kernel-api.jar:/scratch/wls1036/middleware/Oracle_OSB1/lib/sb-kernel-impl.jar:/scratch/gangg/wls1036/middleware/Oracle_OSB1/modules/com.bea.common.configfwk_1.6.0.0.jar test.home.OSBResourceImportUtil /scratch/Farm02_base_domain/base_domain/HelloWorld.jar host.xyz.com 7771 weblogic true true true true true null 11.1.1.6 t3s

I am getting below erros when executing

Exception in thread "main" java.lang.NoClassDefFoundError:  -Dweblogic/security/SSL/trustedCAKeyStore=/scratch/montrust/Trust.jks

Caused by: java.lang.ClassNotFoundException:  -Dweblogic.security.SSL.trustedCAKeyStore=.scratch.agentHome.osbssl.agent_inst.sysman.config.montrust.AgentTrust.jks
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class:  -Dweblogic.security.SSL.trustedCAKeyStore=/scratch/agentHome/osbssl/agent_inst/sysman/config/montrust/AgentTrust.jks.  

DId you try adding value of property in double quotes? like below

/home/test/jdk1.6.0_30/jre/bin/java  -Dweblogic.security.SSL.trustedCAKeyStore="/scratch/montrust/Trust.jks"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM