• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Console app on the web

 
Aaron Wilt
Ranch Hand
Posts: 49
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello-
I was wondering if there is an easy way to have a console type application (one just run through a dos prompt) to be able to put on the web somehow so when the user clicks a link, it automatically opens up a dos window on their machine and runs the .class file.
My goal is to make it work so that the user would not have to have any jdk tools on their PC, and have the JVM of the browser handle running the code.
Is this possible? Thanks in advance!
Aaron Wilt
 
Rob Ross
Bartender
Posts: 2205
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, if the user has a default security policy file for your applet (I assume you're talking about an applet, otherwise you wouldn't be asking this question in this forum, right?) then there is really no way to launch a console application. Java is secure, so it prevents your code from doing a lot of things that could compromise the security of your environment.
If you can control the user's policy file , then you could allow your applet to execute Runtime.exec(), and launch console apps that way.
[ April 02, 2002: Message edited by: Rob Ross ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic