Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

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"

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.