Link to home
Create AccountLog in
Avatar of opike
opike

asked on

Installing and configuring subclipse

I'm running eclipse Juno 4.2.1 on CentOS 6.3 (64 bit).

I'm trying to get the latest subclipse working (v1.8.18).  

I've also gone through these instructions to get javaHL installed:
http://subclipse.tigris.org/wiki/JavaHL#head-bb1dd50f9ec2f0d8c32246430c00e237d27a04fe

I have CollabNet subversion 1.7.8 (64 bit) installed in:
/opt/CollabNet_Subversion/lib

I downloaded the javahltests.jar and tried running the following test:
[ollie@localhost tmp]$ java -Djava.library.path=/opt/CollabNet_Subversion/lib -jar javahltests.jar

But all of tests fail. Here's the beginning part of the output:
                                                                                      
.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.             
E.E.E.E.E.E.E.E.E.E                                                                           
Time: 0.142                                                                                   
There were 50 errors:                                                                         
1) testCreate(org.tigris.subversion.javahl.SVNAdminTests)java.lang.UnsatisfiedLinkError: /opt/CollabNet_Subversion/lib/libsvnjavahl-1.so.0.0.0: /opt/CollabNet_Subversion/lib/libsvnjavahl-1.so.0.0.0: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch)     
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)                            
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1750)                          
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1675)                           
        at java.lang.Runtime.loadLibrary0(Runtime.java:840)                                   
        at java.lang.System.loadLibrary(System.java:1047)                                     
        at org.tigris.subversion.javahl.NativeResources.loadNativeLibrary(NativeResources.java:79)                                                                                          
        at org.tigris.subversion.javahl.SVNAdmin.<clinit>(SVNAdmin.java:32)                   
        at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)                     
        at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)                      
2) testSetRevProp(org.tigris.subversion.javahl.SVNAdminTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin                               
        at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)                     
        at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)                      
3) testLogDate(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin                                     
        at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)                     
        at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)                      
4) testVersion(org.tigris.subversion.javahl.BasicTests)java.lang.NoClassDefFoundError: Could not initialize class org.tigris.subversion.javahl.SVNAdmin                                     
        at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)                     
        at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)    

Open in new window

Avatar of opike
opike

ASKER

This part of the 1st error "wrong ELF class: ELFCLASS32" seems to be indicating that a 32bit Collabnet library was being used. I went back and unistalled Collabnet and made sure to install the 64 bit rpm.

Now I get the following error for javahltests:
.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.E.            
E.E.E.E.E.E.E.E.E.E                                                                          
Time: 0.126                                                                                  
There were 50 errors:                                                                        
1) testCreate(org.tigris.subversion.javahl.SVNAdminTests)java.lang.UnsatisfiedLinkError: org.tigris.subversion.javahl.NativeResources.initNativeLibrary()V                                  
        at org.tigris.subversion.javahl.NativeResources.initNativeLibrary(Native Method)      
        at org.tigris.subversion.javahl.NativeResources.init(NativeResources.java:113)        
        at org.tigris.subversion.javahl.NativeResources.loadNativeLibrary(NativeResources.java:80)                                                                                          
        at org.tigris.subversion.javahl.SVNAdmin.<clinit>(SVNAdmin.java:32)                  
        at org.tigris.subversion.javahl.SVNTests.setUp(SVNTests.java:218)                    
        at org.tigris.subversion.javahl.RunTests.main(RunTests.java:111)
ASKER CERTIFIED SOLUTION
Avatar of opike
opike

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer