- Loading...
...
| Code Block |
|---|
cd bsd-port ; hg fpull -u |
Jeff Sinclair noted a specific error which occurs during HotSpot compilation because the gcc.make file has a flag to set WARNINGS as ERRORS. This can be fixed by commenting the line in the gcc.make file located in bsd-port/hotspot/make/bsd/makefiles/gcc.make
| Code Block |
|---|
# Compiler warnings are treated as errors
#WARNINGS_ARE_ERRORS = -Werror
|
If you get an error message like the one below, it is an indication that the /jre/lib/security/cacerts file is invalid, or has no entries.
| Code Block |
|---|
javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error:
java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
|
You can check it with the following:
| Code Block |
|---|
keytool -list -keystore /usr/local/java-1.7.0/jre/lib/security/cacerts -storepass changeit
Keystore type: JKS
Keystore provider: SUN
Your keystore contains 43 entries
entrustclientca, Jan 9, 2003, trustedCertEntry,
Certificate fingerprint (MD5): 0C:41:2F:13:5B:A0:54:F5:96:66:2D:7E:CD:0E:03:F4
verisignclass3g2ca, Mar 25, 2004, trustedCertEntry,
Certificate fingerprint (MD5): A2:33:9B:4C:74:78:73:D4:6C:E7:C1:F3:8D:CB:5C:E9
thawtepersonalbasicca, Feb 12, 1999, trustedCertEntry,
Certificate fingerprint (MD5): E6:0B:D2:C9:CA:2D:88:DB:1A:71:0E:4B:78:EB:02:41
addtrustclass1ca, May 2, 2006, trustedCertEntry,
...
|
If there is nothing there, you can use the ALT_CACERTS_FILE= to point to a copy of the cacerts file like the one in SoyLatte.
If the build completes do a simple test by asking the JVM to print its version info. It should look something like this:
...