java 8 keytool issue

Description

I'm Heritrix is not able to start. Error log:

Version: 3.2.0
Command line: heritrix.cmd -a admin:admin
Oracle Corporation Java(TM) SE Runtime Environment 1.8.0_51-b16
Exception in thread "main" java.lang.NoClassDefFoundError: sun/security/tools/KeyTool
at org.archive.crawler.Heritrix.useAdhocKeystore(Heritrix.java:438)
at org.archive.crawler.Heritrix.instanceMain(Heritrix.java:319)
at org.archive.crawler.Heritrix.main(Heritrix.java:189)
Caused by: java.lang.ClassNotFoundException: sun.security.tools.KeyTool
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 3 more

Version: 3.3.0-SNAPSHOT 03-Aug-2015
Command line: heritrix.cmd -a admin:admin
Oracle Corporation Java(TM) SE Runtime Environment 1.8.0_51-b16
Exception in thread "main" java.lang.NoClassDefFoundError: sun/security/tools/KeyTool
at org.archive.crawler.Heritrix.useAdhocKeystore(Heritrix.java:438)
at org.archive.crawler.Heritrix.instanceMain(Heritrix.java:319)
at org.archive.crawler.Heritrix.main(Heritrix.java:189)
Caused by: java.lang.ClassNotFoundException: sun.security.tools.KeyTool
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 3 more

Environment

Windows 10 64 bit
Java Jre 1.8.0_51 64 bit

Activity

Show:
Kristinn Sigurðsson
August 24, 2015, 9:45 AM

This affects all OS when using Java 8. It stems from a change in the sun.security.tools package.

The matter is explained in full (including workarounds) in this blog post: http://kris-sigur.blogspot.com/2014/10/heritrix-java-8-and-sunsecuritytoolskey.html

Noah Levitt
September 23, 2015, 7:17 PM
Kristinn Sigurðsson
May 6, 2016, 12:31 PM

Assignee

Unassigned

Reporter

Luck Colors

Labels

None

Issue Category

None

Group Assignee

None

ZendeskID

None

Estimated Difficulty

None

Actual Difficulty

None

Fix versions

Affects versions

Priority

Blocker
Configure