1

Installed and ran Alfresco 4.2 with Java 6 on Linux, I get this error:

NoClassDefFoundError: java/nio/channels/SeekableByteChannel

How to fix this error?

Nicolas Raoul
  • 1,334
  • 7
  • 22
  • 43

1 Answers1

3

The problem is due to using Java 6 (or earlier), whereas Java 7 is required.

  1. Install Java JDK 7 (or later)
  2. Add this line at the top of /bin/catalina.sh :

    JAVA_HOME="/path/to/jdk7"

Nicolas Raoul
  • 1,334
  • 7
  • 22
  • 43