473,379 Members | 1,245 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Calling exe in jsp

am using tomcat and jdk 2.0
i need to call an exe file from my jsp page. i've tried the Runtime class and exec("calc.exe"). but it is not working anyone can help?
thnx in advance
Sep 26 '06 #1
5 8572
how to call vb exe from java & how to pass arguments to it?
Dec 15 '06 #2
PLA
44
how to call vb exe from java & how to pass arguments to it?
I'm not sure of what you want to do: Do you want the exe running on the server (that's where the JSP is running), or on the client (your JSP is now HTML)?
Dec 15 '06 #3
am using tomcat and jdk 2.0
i need to call an exe file from my jsp page. i've tried the Runtime class and exec("calc.exe"). but it is not working anyone can help?
thnx in advance
This program will help you to call any exe from java program

import java.io.*;

public class LoadExe{
public void RunTest()
{
Runtime r=Runtime.getRuntime();
Process p=null;
try
{
String s="c:\\windows\\explorer.exe";
p=r.exec(s);
}
catch(Exception e){
System.out.println("error==="+e.getMessage());
e.printStackTrace();
}
}
}


From,
Manjunath More
C-DAC
Kolhapur.
Jul 25 '07 #4
r035198x
13,262 8TB
This program will help you to call any exe from java program

import java.io.*;

public class LoadExe{
public void RunTest()
{
Runtime r=Runtime.getRuntime();
Process p=null;
try
{
String s="c:\\windows\\explorer.exe";
p=r.exec(s);
}
catch(Exception e){
System.out.println("error==="+e.getMessage());
e.printStackTrace();
}
}
}


From,
Manjunath More
C-DAC
Kolhapur.
You mean it will call explorer on windows OS?
And remember to use code tags when posting code.
Jul 25 '07 #5
madhoriya22
252 100+
This program will help you to call any exe from java program

import java.io.*;

public class LoadExe{
public void RunTest()
{
Runtime r=Runtime.getRuntime();
Process p=null;
try
{
String s="c:\\windows\\explorer.exe";
p=r.exec(s);
}
catch(Exception e){
System.out.println("error==="+e.getMessage());
e.printStackTrace();
}
}
}


From,
Manjunath More
C-DAC
Kolhapur.
Hi,
Your program is openin My Documents folder. Its not running IE.(I think it should do that)...Is it meant for openin My Documents folder?

Thanks and regards,
madhoriya
Jul 25 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Asapi | last post by:
1. Are linkage convention and calling convention referring to the same thing? 2. Does calling convention differ between languages C and C++? 3. How does calling convention differ between...
8
by: Muthu | last post by:
I've read calling conventions to be the order(reverse or forward) in which the parameters are being read & understood by compilers. For ex. the following function. int Add(int p1, int p2, int...
7
by: Klaus Friese | last post by:
Hi, i'm currently working on a plugin for Adobe InDesign and i have some problems with that. I'm not really a c++ guru, maybe somebody here has an idea how to solve this. The plugin is...
5
by: Nick Flandry | last post by:
I'm running into an Invalid Cast Exception on an ASP.NET application that runs fine in my development environment (Win2K server running IIS 5) and a test environment (also Win2K server running IIS...
3
by: Mike | last post by:
Timeout Calling Web Service I am calling a .NET 1.1 web service from an aspx page. The web service can take several minutes to complete its tasks before returning a message to the aspx page. ...
2
by: Geler | last post by:
A theoretical question: Sorry if its a beginner question. Here is a quote from the MSDN explaning the C/C++ calling convention.. It demonstrates that the calling function is responsible to clean...
47
by: teju | last post by:
hi, i am trying 2 merge 2 projects into one project.One project is using c language and the other one is using c++ code. both are working very fine independently.But now i need to merge both...
7
by: =?Utf-8?B?UVNJRGV2ZWxvcGVy?= | last post by:
I have a C# logging assembly with a static constructor and methods that is called from another C# Assembly that is used as a COM interface for a VB6 Application. Ideally I need to build a file...
10
by: sulekhasweety | last post by:
Hi, the following is the definition for calling convention ,which I have seen in a text book, can anyone give a more detailed explanation in terms of ANSI - C "the requirements that a...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.