Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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.