• Post Reply Bookmark Topic Watch Topic
  • New Topic

JNI - FindClass  RSS feed

 
muthu muruges
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am invoking java methods from 'C' using JNI. For me the FindClass method returns '0' (zero) even though the classpath is set properly. I have set the classpath using vmargs.options, in that option string I am passing the classpath as "-Djava.class.path=<myclasspath>". The above error is not consistent, many of the times it is passing. Can you help me please to identify the root cause of this error?

Thanks,
Muruges
 
Joel McNary
Bartender
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think that we can offer much help without more information. Could you please post the code that you are using?

Also, what happens if you put the class in the system's classpath? Is it a problem where the switch that you are specifying is incorrect?
 
muthu muruges
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the update.

Here is the code


Some times I am getting my error message "Can't find class StorageContainerController".
I don't believe it occurs because of the incorrect classpath. If classpath is the root cause then I would have hit this issue in all of my tries.

The classpath key is correct.
[ February 16, 2005: Message edited by: muthu muruges ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!