954,554 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

An unexpected error has been detected by HotSpot Virtual Machine:?

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

vps
Newbie Poster
10 posts since Jul 2005
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You