• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Calling from Visual Basic

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello!

I have a java class file whose methods i would be using in another application. The application being developed is under Visual Basic 6.0. Would there be a way to call the methods using VB 6.0? If yes, can you help me locate references to do this?

TIA.

Jacq
 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your request sounds "backwards" to me from the way Java is typically used.

I think, it is more usual to see that we need system-specific routines accessible from Java - native methods that can be written in C or Assembly, not the reverse.

Java is typically not compiled, but only interpreted, so the *.class files are 'byte-code', not assembly. That being said, if there was a way to really compile a Java class into a platform specific DLL or object code, something like that could be executed by VB code.

I just don't know of anything that can do this, but perhaps someone else has an idea.

HTH,
jdmaddison
 
Ranch Hand
Posts: 346
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Java class into a platform specific DLL or object code



Here are some links for that

http://www.xlsoft.com/en/products/jet/index.html
http://www.ej-technologies.com/products/exe4j/overview.html
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic