Results 1 to 2 of 2

Thread: java in vb

  1. #1

    Thread Starter
    Member
    Join Date
    May 2001
    Location
    Baltimore
    Posts
    61

    java in vb

    I have created a java function and I wanted to know if someone could provide me with an example of how I would execute that function using an execute function this is the execute function

    public void execute(String program)
    {

    }


    __________________
    Striver2000

  2. #2
    Hyperactive Member aks_1610's Avatar
    Join Date
    Sep 2002
    Location
    Pune, India
    Posts
    280
    Hi,

    To execute your java program copy your class file in windows\java\trustlib directory. Now in vb create java object by using GetObject method:

    VB Code:
    1. Dim javaObject
    2.  
    3. Set javaObject = GetObject("java:ClassName")
    4.  
    5. MsgBox javaObject.execute("Test")
    6.  
    7. Set javaObject = Nothing
    A man with nothing to live for has everything to fight for...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width