How to use Java classes from visual base 6?

I am doing a small project in college, and my project manager knows only visual basic 6. He insists on using only VB6. I am very good at java and want to use java for core functionality and VB6 only for user interface.

J-Integra can do this, but it is not free, and JCom (sourceforge) is apparently designed to access COM objects, such as VB6, from Java, and not in a different way around. Also somewhere I am red, using javareg.exe , I can register Java classes as COM and access as shown below, but I could not find javareg.exe anywhere.

Java class:

public class MyTest { public int myfunction(int value1, int value2) { return value1 + value2; } } 

B. B.

 Private Sub Command1_Click() Set x = CreateObject("MyTest") MsgBox x.myfunction(500, 500) End Sub 

Does anyone know how I can do as above?

+4
source share
3 answers

Although I think I'm going to suggest, this is a bad idea, it works (or at least worked for me 10 years ago). In my case, I had to talk to VB6 (or maybe it was VB5), with some kind of business logic running on a Linux box. I added a TCP port listener to the application at the end of Linux and talked to him from VB6 through TCP packets. I mainly used TCP as a bridge.

It really worked. That way you can do something like this. But then again, not a good idea.

+2
source

While I am far from big VB6 (or VB as a whole), I would suggest you bite the bullet and implement the whole project in VB6. What for? As technology changes software over time, and if you only ever speak fluently on one technology and do not leave the comfort zone and written code in a language and technology that you are not familiar with, you will have to have a viable career in development software that lasts longer than a few years.

+2
source

Well, you can compromise on Jabaco .

+1
source

All Articles