SAP Java in a Sparse Zone

I have three SAP database instances/central instances running in three sparse zones with no problem.

I have created a new sparse zone for a new SAP installation (Solution Manager 4.0) and started the installation. SAP requires a 1.4.2 SDK even though Java 1.5 comes with Solaris 10. The 1.4.2 SDK is in /usr/j2se. The installation errors out because it can't get "write" rights to /usr/j2se/jre/lib/security/local_policy.jar as it is trying to install some security encryption JCE component.

I have thought about creating a /usr/j2se_zonename file system, copying the contents of /usr/j2se into it and then mounting /usr/j2se_zonename in the zone as a lofs with the name /usr/j2se. However when I do the copy of /usr/j2se I get some recursion errors.

Any thoughts about how to add a writable /usr/j2se into the sparse zone with the least amount of effort ? Otherwise plan B would be to create a "large" zone with a writable /usr directory.

[966 byte] By [sunapurins] at [2007-11-26 10:25:50]
# 1
How about instilling the package to your /opt and symlinking /usr/j2se to that /opt dir.Or installing the SDK in the global zone?
HenryC at 2007-7-7 2:28:54 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2

The technique of reinstalling a new JDK in a local file system in the sparse zone (in my case I installed it in /usr/local/bin) where you have write permissions worked just fine. The down side was that I already had a working JDK in both the global zone and the sparse zone. I installed the 32-bit self extracting file and then the 64-bit self extracting file to get 64-bit support.

The /usr/local/bin was defined in the global zone as /usr/local_zsap24 and then mounted in the sparse zone as /usr/local. I knew from some examples that I would need to do this. The SAP installation proceeded uneventfully to a successful finish. The JCE installation process was successful.

I could have installed the JDK anywhere in the local zone as long as I had write access to its location.

sunapurins at 2007-7-7 2:28:54 > top of Java-index,Solaris Operating System,Solaris 10 Features...