On 05/05/2014 05:39 AM, peng wrote: > I have installed the latest jdk , ant set target and source to 1.7 . > But I always encounter the same error message. > > You also need jna-platform.jar to compile rados-java. I suggest you place that in /usr/share/java as well. Wido > ------------------ Original ------------------ > *From: * "peng";<peng.dev at qq.com>; > *Date: * Sun, May 4, 2014 06:48 PM > *To: * "wido"<wido at widodh.nl>; > *Subject: * [rados-java] Hi, I am a newer for ceph . And I found > rados-java in github,but there are some problems for me . > > Hi, > Firstly , I have to say rados-java is exactly what I need. It 's > very in demand. > After I downloaded the source zip,and unzip it, then I input the > command : "ant jar" . > First , I see it needs Jdk 1.7. but ,I only have jdk1.6 in my > machine. So I edit the build.properties,and change the version to 1.6 . > Second, I try " ant jar " again . And I found the following > information: > > ( To make sure jna.jar is right there, I type : > > [root at mon rados-java-master]# ls /usr/share/java/jna.jar > /usr/share/java/jna.jar > > ) > > build: > [javac] Compiling 15 source files to > /root/baipeng/rados-java-master/target/classes > [javac] > /root/baipeng/rados-java-master/src/main/java/com/ceph/rados/Library.java:39: > cannot find symbol > [javac] symbol : method nativeValue(com.sun.jna.Pointer,long) > [javac] location: class com.sun.jna.Pointer > [javac] Pointer.nativeValue(ptr, 0L); > [javac] ^ > [javac] > /root/baipeng/rados-java-master/src/main/java/com/ceph/rbd/Library.java:39: > cannot find symbol > [javac] symbol : method nativeValue(com.sun.jna.Pointer,long) > [javac] location: class com.sun.jna.Pointer > [javac] Pointer.nativeValue(ptr, 0L); > [javac] ^ > [javac] 2 errors > It seems there are something wrong about jna.... Appreciate any help :) > Thanks a lot. > > > _______________________________________________ > ceph-users mailing list > ceph-users at lists.ceph.com > http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com > -- Wido den Hollander 42on B.V. Ceph trainer and consultant Phone: +31 (0)20 700 9902 Skype: contact42on