Menu

#468 Java problem (Base64)

areca-7.x
open
nobody
None
1
2012-11-28
2012-11-27
passhe
No

Hallo to alle users of this nice tool,

the last working version in my environment (as mentioned below) was: 7.2.13, 64bit-version,
i.e. areca-7.2.13-linux-gtk-64.tar.gz

My environment:
- OpenSuse 12.1, 64bit
- Java Oracle; Output of "java -version":
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode

The variables JAVA_BINDIR, JAVA_HOME and JAVA_ROOT point to the correct
directory locations.

All versions after 7.2.13 produce during the backup activity the following error:

12-11-22 08:33 - ERROR
java.lang.NoClassDefFoundError: org/apache/commons/codec/binary/Base64
at com.myJava.util.Util.base64Encode(Util.java:214)
at com.application.areca.impl.AbstractIncrementalFileSystemMedium.store(AbstractIncrementalFileSystemMedium.java:1517)
at com.application.areca.AbstractTarget.processBackup(AbstractTarget.java:397)
at com.application.areca.ActionProxy.processBackupOnTarget(ActionProxy.java:98)
at com.application.areca.launcher.gui.Application$9.runCommand(Application.java:1362)
at com.application.areca.launcher.gui.Application$ProcessRunner.run(Application.java:1850)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.codec.binary.Base64
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
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)
... 7 more

Does anyone know of this problem?

Thanks.

Discussion

  • aventin

    aventin - 2012-11-27

    Hi

    I'm unable to reproduce the problem.
    Could you please check :
    1) that you have the following line in "areca_run.sh" :
    CLASSPATH="${CLASSPATH}:${LIB_PATH}commons-codec-1.4.jar"
    2) that you have a file named "commons-codec-1.4.jar" in the "lib" subdirectory of Areca

    thanks

     
  • passhe

    passhe - 2012-11-28

    Hi,

    thank you for your help.

    My "areca_run.sh" lacked of the line CLASSPATH .... as mentioned in the message of aventin.
    Now the version 7.2.17 works in my environment.

     

Log in to post a comment.