|
Thread: Jvm
-
Oct 17th, 2002, 02:25 PM
#1
Thread Starter
Addicted Member
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...
-
Oct 17th, 2002, 05:06 PM
#2
VB Code:
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
-
Oct 18th, 2002, 10:34 AM
#3
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.
-
Oct 18th, 2002, 04:39 PM
#4
Thread Starter
Addicted Member
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...
-
Oct 19th, 2002, 08:20 AM
#5
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.
-
Oct 19th, 2002, 09:41 AM
#6
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
-
Oct 19th, 2002, 10:14 AM
#7
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|