Can you incorporate Java into a Visual Basic program

I am relatively new into progamming and was wondering if anyone knew if Java can be incorporated into a VB program. Any assistance would be helpful.
[162 byte] By [johnny-boyy] at [2007-9-26 1:21:10]
# 1

Hello,

I am not particularly familiar with java, but I have recently had to incorporate a java class into a VB programme, and the only way I could do it was to put the java class command in a batch file and run the batch file using the "shell" command in VB. e.g. :

make a batch file called "c:\test.bat" and enter into the file the text line

"java javaclass" where javaclass is the class you want to run.

Then in VB you can use the command :

X = shell("C:\test.bat").

This may be a little basic for you but it worked fine for me. In my program I created the batch file from within VB with all the neccessary arguments the class required.

Steven Licciardi

Licciardi at 2007-6-29 0:56:27 > top of Java-index,Archived Forums,New To Java Technology Archive...