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:

  1. change directory domain’s bin folder (for eg. cd wls_home\user_projects\domains\mydomain\bin)
  2. use setdomainenv.cmd/sh script setup environment
  3. 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

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -