DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Join Date
    Dec 2007
    Posts
    28

    Unhappy Running a java exe from a webform by clicking a link

    Hi,

    I need your immense help to solve this

    I need to run an exe which will be kept in the server machine

    when the user clicks on the link he should see the exe(the user should not be allowed to save it to the local PC)

    for eg: when we run yahoo messenger installable we can see the installable running from client PC's temperory location.

    Like the same way i need to run the exe from client PC's temporary location

    the exe will be in JAVA

    Can i use web client method for this operation or is there any other methods for this.

    Please...Please...help

    Thanks in much advance

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,651
    Is this the exact same question as this?

    http://forums.devx.com/showthread.php?t=166601
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  3. #3
    Join Date
    Dec 2007
    Posts
    28
    Yes Hack,
    It is the almost same.But here i dont want the exe to run in the server machine.

    I want the view of the exe to be visible to the user who can enter the input values to it.

    if i use processstartinfo then the exe will be running from the server,right?

    Please help Hack

  4. #4
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,651
    ProcessStartInfo will run the exe from the path that you feed it.

    If your exe requires parameters to be passed to it (heretofore unmentioned), then that can be accommdated as well.

    What is the exe that you need to be run from app and what parameters, if any, need to be passed to it when it gets executed?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  5. #5
    Join Date
    Dec 2007
    Posts
    28

    Running Java Application

    Hack,
    The exe will be standalone and there wont be any parameters passed to it.

    when the user clicks on a link,he should see the application(it will be a Java exe)

    in his client machine(Here i am facing the problem as i dont know how to download the exe to the client machine and run from there) and he can provide the input values directly to the exe.

    I hope its clear

    Is there any way Hack?

  6. #6
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,651
    What happened when you tried the ProcessStartInfo?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  7. #7
    Join Date
    Dec 2007
    Posts
    28

    Running java application from asp.net form

    Hack,
    When i used processstartInfo the exe started running in the server machine.

    When i clicked the button to execute the exe from client machine ,the exe started running in the server machine.

    But i want the user to see the exe and provide the input directly(The view of exe should get saved to some temporary location in the client machine and let the user to input values to it)

  8. #8
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,651
    Even if you hard code the exe path to point toward the client?
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  9. #9
    Join Date
    Dec 2007
    Posts
    28

    Running Java Application

    Hack,
    I dont know how to do that.
    Can you please explain the code?

  10. #10
    Join Date
    Dec 2007
    Posts
    28
    Hey Hack,

    I took calc.exe and placed it inside the website folder in server and gave the path like this
    p.UseShellExecute = False
    p.WorkingDirectory = Request.MapPath("./")
    p.RedirectStandardOutput = True
    p.FileName = p.WorkingDirectory & "addvar.exe"
    pro = System.Diagnostics.Process.Start(p)
    p.RedirectStandardOutput = True
    p.WindowStyle = Diagnostics.ProcessWindowStyle.Maximized
    p.RedirectStandardOutput = True
    pro.WaitForExit()

    now when i opened the web page and clicked on the button from a client PC the exe started in both server and client
    but the exe is coming in a hanged manner

  11. #11
    Join Date
    Dec 2007
    Posts
    28

    Running java application from asp.net form

    Hack,



    Previously i was checking with a MATLAB exe by putting it in the server machine and trying to run it by clicking a button from client machine.But that time the application was getting started only in server.



    But now I have used one vb exe and calc.exe(windows) and accessed from the client machine.

    The process started both in the client and server.

    Problem is that in debugging mode the application is opening perfectly.

    but when i run from client both the processes are running but is not visible for any operation.I am able to see only the header part of the calc.exe(i e the calculator Icon and blue bar)

    Now it is clear that we can run those application from client also.

    Please tell me is it because of security issues i am not able to run the process perfectly?

Similar Threads

  1. Java vs. .Net. A questionnaire
    By Basil in forum .NET
    Replies: 1
    Last Post: 05-13-2005, 06:46 AM
  2. Running an exe from ASP
    By Marco in forum ASP.NET
    Replies: 1
    Last Post: 03-31-2003, 08:10 AM
  3. .NET vs. Enterprise Java: Who's Got Better Security?
    By Glen Kunene in forum Talk to the Editors
    Replies: 17
    Last Post: 03-23-2002, 12:43 AM
  4. Running an exe file using Java
    By Sasi in forum Java
    Replies: 0
    Last Post: 02-15-2001, 04:39 AM
  5. Replies: 0
    Last Post: 07-06-2000, 06:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links