yup, I got my problem fixed. I unmerge the sun-jdk and java-config then emerge them again.
Emerge java-config first, then the sun-jdk.
I found this stuff for reference.
**************************************************************************************************** ***********
If you need to run Java on GNU/Linux running on Sparc64 hardware, your best bet is to get the Blackdown source. This is easy with Gentoo:
srv-1 opt # emerge jdk
Calculating dependencies ...done!
>>> emerge (1 of 2) dev-java/java-config-1.2.11 to /
>>> Downloading
http://distfiles.gentoo.org/distfile...1.2.11.tar.bz2
--10:00:21--
http://distfiles.gentoo.org/distfile...1.2.11.tar.bz2
=> `/usr/portage/distfiles/java-config-1.2.11.tar.bz2'
Resolving distfiles.gentoo.org... 216.165.129.135, 64.50.236.52, 156.56.247.195
Connecting to distfiles.gentoo.org[216.165.129.135]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 15,743 [application/x-tar]
100%[====================================>] 15,743 95.77K/s
10:00:21 (95.60 KB/s) - `/usr/portage/distfiles/java-config-1.2.11.tar.bz2'
saved [15,743/15,743]
>>> md5 files ;-) java-config-1.2.10.ebuild
>>> md5 files ;-) java-config-1.2.11.ebuild
>>> md5 files ;-) java-config-1.2.6.ebuild
.
.
.
No JAVA_HOME available! Please set your Java Virtual Machine
No JAVA_HOME available! Please set your Java Virtual Machine
No JAVA_HOME available! Please set your Java Virtual Machine
No JAVA_HOME available! Please set your Java Virtual Machine
THIS SYSTEM VM IS NOT SUFFICIENT, REQUIRED BINARIES WERE NOT FOUND
System Virtual Machine set
You may want to update your enviroment by running:
"/usr/sbin/env-update && source /etc/profile"
>>> Regenerating /etc/ld.so.cache...
* After installing blackdown-jdk-1.4.1 this
* was set as the default JVM to run.
* When finished please run the following so your
* enviroment gets updated.
* /usr/sbin/env-update && source /etc/profile
* Or use java-config program to set your preferred VM
>>> Regenerating /etc/ld.so.cache...
>>> dev-java/blackdown-jdk-1.4.1-r1 merged.
>>> Recording dev-java/blackdown-jdk in "world" favorites file...
>>> clean: No packages selected for removal.
>>> Auto-cleaning packages ...
>>> No outdated packages were found on your system.
* Regenerating GNU info directory index...
* Processed 12 info files.
* IMPORTANT: 78 config files in /etc need updating.
* Type emerge --help config to learn how to update config files.
srv-1 opt #
If we log on and off, though:
srv-1 ~ # set | grep JAVA
JAVAC=/opt/blackdown-jdk-1.4.1/bin/javac
JAVA_HOME=/opt/blackdown-jdk-1.4.1
srv-1 ~ #