S
sam.n.seaborn
Hello,
I am writing a simple application that uses the Apache Commons Codec.
I'm running (or at least trying to run) this app on AIX 5.2.
My app, called Xpacket, compiles fine. The class file is ~/src/
Xpacket.class
$ java -classpath ~/src:~/src/commons-codec-1.3.jar Xpacket
apache.lst
Xpacket V2.0
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/
commons/codec/binary/Base64
at Xpacket.main(Xpacket.java:14)
The commons-codec-1.3.jar file _is_ in the directory specified in the
classpath. It is readable (no perms problems). Why is this happening?
Is the launcher not able to find it?
BTW, the relevant lines from the application:
$ cat ~/src/Xpacket.java
import org.apache.commons.codec.binary.*;
import java.io.*;
public class Xpacket {
public static void main(String[] args) {
// some housekeeping
// and below is the class Base64, part of commons-codec-1.3.jar
outbytes =Base64.decodeBase64(ReadFile(args[0]));
Many thanks in advance for your suggestions
-Sam
I am writing a simple application that uses the Apache Commons Codec.
I'm running (or at least trying to run) this app on AIX 5.2.
My app, called Xpacket, compiles fine. The class file is ~/src/
Xpacket.class
$ java -classpath ~/src:~/src/commons-codec-1.3.jar Xpacket
apache.lst
Xpacket V2.0
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/
commons/codec/binary/Base64
at Xpacket.main(Xpacket.java:14)
The commons-codec-1.3.jar file _is_ in the directory specified in the
classpath. It is readable (no perms problems). Why is this happening?
Is the launcher not able to find it?
BTW, the relevant lines from the application:
$ cat ~/src/Xpacket.java
import org.apache.commons.codec.binary.*;
import java.io.*;
public class Xpacket {
public static void main(String[] args) {
// some housekeeping
// and below is the class Base64, part of commons-codec-1.3.jar
outbytes =Base64.decodeBase64(ReadFile(args[0]));
Many thanks in advance for your suggestions
-Sam