aspose file tools*
The moose likes BEA/Weblogic and the fly likes JAVA_HOME in startManagedWebLogic and setEnv scripts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "JAVA_HOME in startManagedWebLogic and setEnv scripts" Watch "JAVA_HOME in startManagedWebLogic and setEnv scripts" New topic
Author

JAVA_HOME in startManagedWebLogic and setEnv scripts

Ted Bell
Ranch Hand

Joined: Jan 21, 2002
Posts: 52
Hi all

I was wondering why by defualt both the setEnv.sh and startManagedWebLogic.sh scripts set a value for JAVA_HOME when the startManagedWebLogic script sources the setEnv script. I can see having the option to override the value in the startManagedWebLogic script, but why have it there by default? I am working on a migration to SP4, and (due to the new JDK) need to change more files than I would have otherwise. Can't I comment out the JAVA_HOME set in startManaged, and let the declaration in setEnv be my default for all scripts referencing it?

Thanks for any input.
Ted Bell
Ranch Hand

Joined: Jan 21, 2002
Posts: 52
Disregard. Don't know what I was thinking, but the startManaged script calls /common/bin/commEnv.sh, not the setEnv script. Still, there is a declaration of JAVA_HOME there too.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JAVA_HOME in startManagedWebLogic and setEnv scripts