hello everybody
i am writing a jni for some api's in c++ in linux
i sending vector as parameter and returning a vector through the same function.
all i need to do is
read a file put all the lines in vector.
pass the vector object as parameter to function 4m java,
read the vector retrive single line and pass it to the c++ function.
code :
public class classify {
25
26 public static native Vector Submit(Vector vecData);
27 static
28 {
29 String appPath = System.getProperty("user.dir");
30 System.load(appPath + "/libclassifyJni.so");
31
32 }
33 public static void main(String args[])
34 {
35
36 try{
37
38 Vector vecData=new Vector();
39 String dirName=args[0];
40 System.out.println("the dir name is "+dirName);
41 String text="";
42 File dir = new File(dirName);
43 String children[] = dir.list();
44 if (children != null)
45 {
46 for (int i=0; ihttp://java.sun.com/webapps/bugreport/crash.jsp
#
Aborted
[vandana@SIOCR001 JWrapper]$ java classifyPckg.classify ./cdd
can u plz help me out
why am i getting this error
regards
vps