Compile error on CentOS 4.1

Hi all,

I have had success compiling Messenger v2.2.2 on FC-4.

I am having a really hard time compiling on CentOS 4.1

The error I get is:

Exception in thread “main” java.lang.NoClassDefFoundError: org.apache.tools.ant.launch.Launcher

at gnu.gcj.runtime.FirstThread.run() (/usr/lib/libgcj.so.5.0.0)

at JvThreadRun(java.lang.Thread) (/usr/lib/libgcj.so.5.0.0)

at JvRunMain(java.lang.Class, byte const, int, byte const, boolean) (/usr/lib/libgcj.so.5.0.0)

at __gcj_personality_v0 (/source/jive_messenger_src/build/java.version=1.4.2) at __libc_start_main (/lib/tls/libc-2.3.4.so)

at JvRegisterClasses (/source/jive_messenger_src/build/java.version=1.4.2)

This is with jre-1.5.0_05, jdk-1.5.0_05

Does anyone have any ideas as to why this is?

thanks,

Chris

Chris,

It looks like you have another version of Java installed and perhaps Ant is finding that in your path instead of JDK 1.5?

Regards,

Matt

Hi Matt,

No, I originally thought that too… I did a ‘‘which javac’’ and only show the jdk-1.5.0_05 instance…

Chris

I guess to phrase this another way:

Who out there has Messenger compiling on CentOS?

What version?

What variables did you have to set to point to classes (if you had to).

I think my problem is a path / environment variable.

FC4 worked flawless out of the box in both compiling and running.

CentOS looks to be a bit more granular - I cant even execute the binary without it complaining about not being able to find ‘‘messengerHome’’.

Chris