Using Java Classes in VB appl.
-
Hey ! I am a mech. engr. student and am having to put up with this course - intelligent robotic control. The robots (amigobots) can be controlled by Java code that uses IP or whatever..!!! I have done all my coding for Motion and Path Planning in VB. Is there any way I can access the bots' Java Classes from my VB appl. ? Really desperate for this! Dont tell me to rewrite the entire code in Java...I am very new to programming... Sairam Samavedam
-
Hey ! I am a mech. engr. student and am having to put up with this course - intelligent robotic control. The robots (amigobots) can be controlled by Java code that uses IP or whatever..!!! I have done all my coding for Motion and Path Planning in VB. Is there any way I can access the bots' Java Classes from my VB appl. ? Really desperate for this! Dont tell me to rewrite the entire code in Java...I am very new to programming... Sairam Samavedam
Unless I'm mistaken, this could be an amazingly complex, yet interesting, project. there's an article on this subject here or you can go to java.sun.com and look up documentation on the JNI (Java Native Interface). I don't find much in the VB world that provides shortcuts for this, either.
-
Hey ! I am a mech. engr. student and am having to put up with this course - intelligent robotic control. The robots (amigobots) can be controlled by Java code that uses IP or whatever..!!! I have done all my coding for Motion and Path Planning in VB. Is there any way I can access the bots' Java Classes from my VB appl. ? Really desperate for this! Dont tell me to rewrite the entire code in Java...I am very new to programming... Sairam Samavedam
I've found the same complexities. If your in a time crunch, it looks like your best bet is to start rewriting in Java. At least, with the VB code already written, you don't have to reinvent the logic. RageInTheMachine9532
-
I've found the same complexities. If your in a time crunch, it looks like your best bet is to start rewriting in Java. At least, with the VB code already written, you don't have to reinvent the logic. RageInTheMachine9532
Thanks guys for the supp.. Anyway, came to know about an appl. called JavaReg, that comes with Jdk1.3 This thing is supposed to convert a Java class into a COM object that can be used in VB code. Have tried it and it is not working some of the times. Like, it is not showing some of the methods in the created COM object that were supposed to be there. If anyone have used JavaReg before, would like to know some info. on how to use it correctly. Sairam Samavedam
-
Thanks guys for the supp.. Anyway, came to know about an appl. called JavaReg, that comes with Jdk1.3 This thing is supposed to convert a Java class into a COM object that can be used in VB code. Have tried it and it is not working some of the times. Like, it is not showing some of the methods in the created COM object that were supposed to be there. If anyone have used JavaReg before, would like to know some info. on how to use it correctly. Sairam Samavedam
Yeah. I tried it once, but never could get it to work reliably. I was just messing around with it though. I didn't need it for any particular project and just dropped it at that point. RageInTheMachine9532
-
Yeah. I tried it once, but never could get it to work reliably. I was just messing around with it though. I didn't need it for any particular project and just dropped it at that point. RageInTheMachine9532
Did u ever try any of the tools that supposedly convert a VB code into Java code... ? Do they work? Any good ones ? Going to all this trouble because rewriting would be painful, even though logic is done. Have to implement Digkstra's and visibilty graph algos... Sairam Samavedam
-
Did u ever try any of the tools that supposedly convert a VB code into Java code... ? Do they work? Any good ones ? Going to all this trouble because rewriting would be painful, even though logic is done. Have to implement Digkstra's and visibilty graph algos... Sairam Samavedam
Of the few language conversion tools I've used, they ALL have one thing in common: They can never get all the code to convert properly, so you have to go thru and edit the resulting code anyway. RageInTheMachine9532