更新时间:2023-11-17 18:48:22
您必须输入 cd WLS_home / user_projects / domains / mydomain / bin /
。 ./setDomainEnv.sh
你必须使用两个单独的点,这应该是诀窍!
I am trying to encrypt a database password for my Java EE Application
in the terminal. according to this tutorial
The steps are as follows:
setDomainEnv.cmd/sh
script to setup the environmentjava weblogic.security.Encrypt
which will prompt for the password and will print the encrypted value in stdout.However, when I execute 'java weblogic.security.Encrypt', I am presented with the following:
Error: Could not find or load main class weblogic.security.Encrypt
I am developing my project in Eclipse and have configured my Weblogic-12.1.3
server in Eclipse. I am not sure why this error is happening, but I expect its because my java version is 1.8, and maybe it expects me to use java 1.6 which I think comes with Weblogic installation.
java -version
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
You must typecd WLS_home/user_projects/domains/mydomain/bin/
. ./setDomainEnv.sh
You must use two separate dots, that should do the trick!