Results 1 to 7 of 7

Thread: Jvm

  1. #1

    Thread Starter
    Addicted Member Virtual24's Avatar
    Join Date
    May 2001
    Posts
    228

    Arrow Jvm

    Here's a thought, does anyone know how you would go about writing a program ( maybe with vb ) that could start up the current system's JVM and run a java application?
    To protect time is to protect everything...

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    VB Code:
    1. Call Shell("java.exe SomeClass",vbNormalFocus)

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Why require the VB runtimes when you can write a C app?
    Code:
    #include <windows.h>
    int WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
    {
      ShellExecuteA(NULL, "open", "java.exe", "YourClassName",
        NULL, SW_SHOWNORMAL);
    }
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  4. #4

    Thread Starter
    Addicted Member Virtual24's Avatar
    Join Date
    May 2001
    Posts
    228
    That will work too... I was just looking for a way for it to work. So, do I understand correctly that you need VB runtime files installed on your computer to run a .exe made in VB nomatter how simple it is??
    To protect time is to protect everything...

  5. #5
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    yeah
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  6. #6
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Originally posted by CornedBee
    Why require the VB runtimes when you can write a C app?
    Code:
    #include <windows.h>
    int WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
    {
      ShellExecuteA(NULL, "open", "java.exe", "YourClassName",
        NULL, SW_SHOWNORMAL);
    }
    Oh *****, *****, *****...

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  7. #7
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Huh?
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

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