-1

I need to run an application (tesseract) inside my JNLP application.

How can I do to download the tesseract.exe file to the client machine and run it? Is there any way to do this JNLP?

Is there any way to join tesseract into my jar and then run it on the client?

caarlos0
  • 20,020
  • 27
  • 85
  • 160
fhgomes_ti
  • 165
  • 2
  • 15
  • 2
    In other words, you want to bypass the restristions of a java VM, which is startet via JNLP, to spawn a process of a downloaded file? Sounds like creating a botnet... – Christian Kuetbach Jan 05 '12 at 14:40

2 Answers2

3

I think you can use HttpURLConnection to download, and Process to run it.

Hope it helps.

caarlos0
  • 20,020
  • 27
  • 85
  • 160
0

For now I include the exe file in my application JAR and when I need to execute, I extract the file to a temp folder, and call it with command line.

caarlos0
  • 20,020
  • 27
  • 85
  • 160
fhgomes_ti
  • 165
  • 2
  • 15
  • like @cketbach says, with this solution you're bypassing the JVM restrictions. You have to respect the user, and, at least, he should know that you're downloading and executing a exe file to your machine, AND, you should not download it in a jar file. – caarlos0 Feb 03 '12 at 18:19
  • Thats de better solution we found. And work. If anyone have another solution, for solve the problem, for make a tesseract run in the client side. Are Welcome. – fhgomes_ti Apr 04 '12 at 20:42