By the way, after a lot of work updating Java, one may think of getting rid of legacy Java 7 in Solaris 11.3 GA, but I regret to inform that forcing this may cripple the system or at least lead to some unsupported configuration.
NOTE
If, on the other hand, an Ad Hoc Java installation has been made without IPS, then it may be easier to work out the removal as long as one assures no further dependencies would be broken.
# pkg uninstall -nv java-7-incorporation
Creating Plan (Solver setup): -
pkg uninstall: Unable to remove \
'consolidation/java-7/java-7-incorporation@1.7.0.101.14-0' \
due to the following packages that depend on it:
consolidation/java/java-incorporation@0.5.11-0.175.2.0.0.31.0
entire@0.5.11-0.175.3.1.0.5.2
runtime/java/jre-7@1.7.0.101.14
One might think of removing at least jre-7, but:
# pkg uninstall -nv jre-7
Creating Plan (Solver setup): -
pkg uninstall: Unable to remove \
'runtime/java/jre-7@1.7.0.101.14' \
due to the following packages that depend on it:
system/management/rad/client/rad-java@0.5.11-0.175.3.1.0.3.0
web/browser/firefox/plugin/firefox-java@1.0-0.175.2.0.0.18.0
It's safe to remove the Firefox plug-in, after all, it's always a security risk and latest versions of Firefox don't support it anymore:
# pkg uninstall firefox-java
Packages to remove: 1
Create boot environment: No
Create backup boot environment: No
PHASE ITEMS
Removing old actions 17/17
Updating package state database Done
Updating package cache 1/1
Updating image state Done
Creating fast lookup database Done
Reading search index Done
Updating search index 1/1
Updating package cache 1/1
But:
# pkg uninstall -nv rad-java
Creating Plan (Solver setup): -
pkg uninstall: Unable to remove \
'system/management/rad/client/rad-java@0.5.11-0.175.3.1.0.3.0' \
due to the following packages that depend on it:
system/management/visual-panels-core@0.5.11-0.175.3.0.0.30.0
# pkg uninstall -nv visual-panels-core
Creating Plan (Solver setup): -
pkg uninstall: Unable to remove \
'system/management/visual-panels-core@0.5.11-0.175.3.0.0.30.0' \
due to the following packages that depend on it:
system/management/visual-panels@0.5.11-0.175.3.0.0.30.0
system/management/visual-panels/panel-apache@0.5.11-0.175.3.0.0.30.0
system/management/visual-panels/panel-coreadm@0.5.11-0.175.3.0.0.30.0
system/management/visual-panels/panel-firewall@0.5.11-0.175.3.0.0.30.0
system/management/visual-panels/panel-smf@0.5.11-0.175.3.0.0.30.0
system/management/visual-panels/panel-sysmon@0.5.11-0.175.3.0.0.30.0
system/management/visual-panels/panel-time@0.5.11-0.175.3.0.0.30.0
system/management/visual-panels/panel-usermgr@0.5.11-0.175.3.0.0.30.0
system/management/visual-panels/panel-zconsole@0.5.11-0.175.3.0.0.30.0
And then, one might think, OK, let it go!