Machine Model: MacBook Pro mc700
Operating system version: 10.6.7
Java environment: 1.6.0 _ 24 (64bit)
WebLogic Installation File: wls1033_generic.jar
Problems encountered during installation:
Since the operating system already comes with the Java 1.6 environment, we thought we could directly use this Java environment to install weblogic. Therefore, use the following command to start the Weblogic Installation Wizard:
$ Java-jar wls1033_generic.jar
The wizard is started normally and the previous steps are normal. However, when the Java Virtual Machine step is specified, the wizard does not find any Java environment. manually select the path of the Java environment, always prompts that the directory is not a valid Java environment.
Solution: Find an article for the omnipotent Google.
Http://letsbyte.wordpress.com/2011/03/14/install-weblogic-11gr1-on-mac-osx/
The article provides a trusted Operation Command. It is found that the directories and jar files are missing in the Java environment that comes with Mac OS X, the wizard assumes that the JDK directory is invalid. Manually set related directories and jar files to pass the JDK verification in the Wizard.
Setup jars under Java home:
- Open a terminal window.
- Check your Java home by executing-/usr/libexec/java_home
. Path returned will be-/system/library/Java/javavirtualmachines/1.6.0.jdk/contents/home
.
- CD/system/library/Java/javavirtualmachines/1.6.0.jdk/contents/home
- Sudo mkdir JRE
- Sudo mkdir JRE/lib
- CD JRE
- CD lib
- Sudo ln-S ../classes. Jar Rt. Jar
- CD ../lib
- Sudo ln-S ../classes. Jar tools. Jar
After setting Java home, run the following command to execute the Installation Wizard:
$ Java-dos. Name = Unix-xmx1024m-jar wls1033_generic.jar
The wizard can complete all the steps normally.
Thanks to abhijatupadhyay
.