permaculture playing cards*
The moose likes Java in General and the fly likes Java-VB interaction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java-VB interaction" Watch "Java-VB interaction" New topic
Author

Java-VB interaction

Venkataragavan Srinivasan
Greenhorn

Joined: Sep 24, 2001
Posts: 1
Hi,
I am resending this after a new registration.
I am trying VB-Java interaction using CAS bridge of Sun. The VB application calls a Java wrapper class, which in turn calls a few java classes do some execution and return a String. I tried running the Java wrapper class separately using main and it works fine. But when I invoke the java method from VB, the statement which calls the Java method displays an exception.
java.security.PrivilegedActionException . I am not using any applets involving any access issues. Could somebody who has worked in this line help me.
Regards,
Venkat.
Karthik Guru
Ranch Hand

Joined: Mar 06, 2001
Posts: 1209

i have'nt done much ..but let me try helping.
can you give some idea of the kid of stuff you are doing in the java class.
The java method has DEFINITEILY thrown a checked exception.
Did u do
ShowJavaConsole
in your vb code?
it will give you some idea as to what went wrong in the java
method. I got this sometime back when i tried opening a file in java and it threw a FileNotFoundException which is checked.
I got the same exception as you then.
the only way i did a error trapping in vb was through
on error goto SomeWhere
SomeWhere:
//do something
I guess once you have caught the error you can proceed in a normal way.
karthik.
Nalini Pitchika
Greenhorn

Joined: Oct 28, 2003
Posts: 1
Hi,
I was trying the similar thing, but unable to do it. Could you please tell me how did you guys succeeded with the interaction between Java & VB?
I want to reuse the java code that is already there in my VB program. I really appreciate your help.
THanks in advance,
Nalini.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java-VB interaction
 
Similar Threads
calling a VB dll from java program
Java-VB interaction
Calling VB Dll In JAVA
Wrapper class on the top of stateless session bean
problem creating java com dll