java - Error: Could not find or load main class weblogic.security.Encrypt -
i trying encrypt database password java ee application
in terminal. according tutorial
the steps follows:
- change directory domain’s bin folder (for eg. cd wls_home\user_projects\domains\mydomain\bin)
- use
setdomainenv.cmd/sh
script setup environment - run
java weblogic.security.encrypt
prompt password , print encrypted value in stdout.
however, when execute 'java weblogic.security.encrypt', presented following:
error: not find or load main class weblogic.security.encrypt
i developing project in eclipse , have configured weblogic-12.1.3
server in eclipse. not sure why error happening, expect because java version 1.8, , maybe expects me use java 1.6 think comes 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 type
cd wls_home/user_projects/domains/mydomain/bin/
. ./setdomainenv.sh
you must use 2 separate dots, should trick!
Comments
Post a Comment