• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to call a .obj file from jsp  RSS feed

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have compiled a program in Turbo C and obtained a .obj and .exe file...

My requirement is that I need to call the .obj file from my jsp, any idea how I can go ahead with the task..

Thanks,

Adrian
 
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all, don't do this from a JSP. At the very least, do it in a backing bean.

If the code is an executable you might use Runtime.exec or ProcessBuilder to run it; this article talks about some of the pitfalls.

Accessing an object file is trickier. If it's a DLL you can use a Java/DLL bridge like Jacob.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!