Taken https://blog.csdn.net/btt2013/article/details/53144890
we weblogic installed on the Linux operating system and create the weblogic domain, will often encounter can not find corresponding jdk.
Case 1: After you install weblogic, weblogic set by ./setWLSEnv.sh environment variable, reported the following question:
Case 2: When we create weblogic domain, create weblogic domain by executing ./config.sh command, reported the following error:
for in the above two problems are due to the JAVA_HOME environment variable settings are not caused by incorrectly. Solutions are as follows:
1, with the config.sh vi text editor to open, is positioned to the line 103.
2, line 45 and then to the left to see the script, the operation of introducing the config.sh $ {WL_HOME} /common/bin/commEnv.sh before running the script. We are not saved from the vi editor.
3, we open the script in config.sh commEnv.sh same path. JAVA_HOME to see how the definition. commEnv.sh locate the line beginning around 145, as follows:
4, at the command line to see if this path to
the original JAVA program is in /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.79.x86_64/ jre / bin Now, suddenly realized.
5, the JAVA_HOME defined commEnv.sh script read:
JAVA_HOME = "/ usr / lib / the JVM / the Java-1.7.0-openjdk-1.7.0.79.x86_64 / jre /"
save changes and exit the script commEnv.sh .
At this time, we created a script to run ./config.sh weblogic domain, the error will not, we can successfully create a weblogic domain.