How to run a particular file in aparticular program
hi
i m developing a desktop application in which i need to open another program like notepad which i can do by calling the exec function
but i need to open a special file in the notepad directly when it starts
is there any way to do so
thanks
Runtime.getRuntime().exec("notepad myfile");
Similar Messages
-
How to run a jar file in JBuilder
Hi there
I need to know how to run a jar file using JBuilder. Thanks :)
Countesswell i have a german version of jbuilder and there it is under
experten Archiv-builder
look at something that has a similar name -
How to run a JAR file in Unix system?
hi there
ca anyone tell me how to run a JAR file in unix system or X window, thank youYou want to create an executable JAR file? You do it in the following way.
Create a manifest file such as manif.txt and the contents should contain
Main-Class: foo
assuming foo is the name of your main class. Then create the jar as follows
jar cvfm foo.jar manif.txt foo.class
I hope that helps you!
you can find more info here http://java.sun.com/docs/books/tutorial/jar/ -
How to run an exe file in a java program
Hi,
Can somebody tell me how to run an exe file in a java program.
Thank you!Yes, java.lang.Runtime.exec().
Read this carefully before you do:
http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html
Don't write a line of code before you're reviewed and understood the article completely. - MOD -
How to run a batch file as windows Nt service
Hi friends
I want to know how to run a batch file as windows NT service.
I got some information in the following link
http://support.microsoft.com/kb/q243486/
I tried it but i want to know what we need to include in Autoexnt.bat
And one thing i need Instexnt.exe file. I cannot find tht file.
Please search tht file and send me tht file or else send the link in which this file is present
Please give me reply fast.its very urgent.
Thanks in advance.Hi,
My aim is to run a MS-DOS Batch file, that I created to run a Java Prgram.
I need to call the Batch File from the Oracle Procedure, Also I may need to change the content of the Batch File (Argument to the Java JAR File ).
I can keep the JAR FIle either in the Oracle Server or in the Application Server.
The Java program is to convert XML Format FIle to PDF and MS Word format.
Oracle Version : 10g 2.0.1.0.
Thanks in advance
Rizly -
Hi,
How to run a batch file from Oracle. Is it possible directly from PLSQl, or should I write the java code.
Oracle Version: 10g 2.0.1.0.
Thanks in advance
RizlyHi,
My aim is to run a MS-DOS Batch file, that I created to run a Java Prgram.
I need to call the Batch File from the Oracle Procedure, Also I may need to change the content of the Batch File (Argument to the Java JAR File ).
I can keep the JAR FIle either in the Oracle Server or in the Application Server.
The Java program is to convert XML Format FIle to PDF and MS Word format.
Oracle Version : 10g 2.0.1.0.
Thanks in advance
Rizly -
Hi Experts,
I am trying to implement automatic cache purging every day at specified time and i created txt file with SApurge All cache() and created bat file with nqcmd -q Analyticsweb -u username -p password -s (txt file location).
Now i want to run this bat file daily at specified time with out executing manually may i know how to run the batch file at specified time .
Thanks,There is task type as command in workflow manager if you want you can go for that during the load
nqcmd -d "AnalyticsWeb" -u Administrator -p Administrator -s "D:\PowerCenter8.1.1\server\infa_shared\SrcFiles\1_BIPurgeCache.txt"
Check these urls
http://docs.oracle.com/cd/E12103_01/books/AnySched/AnySched_Scripts3.html
http://deliverbi.blogspot.com/2011/12/purge-all-cache-from-dashboard.html -
hi
can anybody tell me how to run a jar file in java,is there any need to unzip a jar file before running it?
Thanks in advance.Set the classptha, if you want to run it by double clicking.
I assume that you know, how to set the classpath.I though that if it is an executable jar, the classpath environment variable will be completely ignored. Are you saying something to the contrary? -
How to run a batch file clicking a button?
Hi All,
Can you tell me anyone how to run a batch file clicking a button? And also the progress bar showing the progress.
ArifAs said: write the insert statement like above (of course replace the databaselink, column and table names with your own) in a stored procedure and call this procedure in the WHEN-BUTTON-PRESSED Trigger.
As for the progress bar: how many records are you processing and how is the network connection between your database server? As above method is rather fast it might take just a few seconds and you could spare you the progress bar (this might be a little tricky to implement).
cheers -
Is it possible to run a jar file in another program???
Hello members,
i am sanketh. is it possible to run a jar file in another program.
if possible plz reply with an example or good links to go thru.What do you mean "run a jar file in another program"? It's not very clear.
-
How to run a jar file in a browswer?
Hi, everyone:
I got a problem here. I would like to run my jar file in a html-based brower, should I write another applet for my jar file? How can I do that? (I don't have applet in my jar file, but only JFrame) Is there any way I can put a runnable jar file into an applet and show on the brower? Could anyone show me how to write this code? Thank you very much!!
-jxchouAt first you need a java plug-in for your browser.
Next you have to implement an applet in your jar-file.
The tag in your html-document should look like:
<applet code="Sample.class" archive="sample.jar" width="400" height="400"></applet> -
How to run start.sh file of Tomcat4.0.1 on Mac os 8.6
Hi there,
Iam new to Mac operating system and iam trying to work on Mac os 8.6.I am trying to install Tomcat on Mac os 8.6.For that I download jakarta-tomcat-4.0.1.tar from appache site.I also extract it in my desktopfolder directly.For running start.sh file I prepare my own Tomcat_Start.sh like that:-
(#!/bin/sh
export CATALINA_HOME=/sun/desktopfolder/jakarta-tomcat-4.0.1
export JAVA_HOME=/sun/desktopfolder/MRJSDK 2.2/Tools/JDK Tools)
In Mac os 8.6 I installed MRJ2.2.4(based on jdk1.1.8) and MRJ SDK 2.2 for Java runtime enviornment.I tried with one java file and it is working perfectly that means JVM working perfectly.But I don't know how I run this Tomcat_Start.sh file on Mac.I already worked with Tomact on Windows operating system.In windows I excecute start.bat file on Dos-prompt.Can any one tell how and where I can execute my Tomcat_Strat.sh file on Mac os 8.6.And which version of Tomact support MRJ2.2.4 which is based on jdk1.1.8. It is required for my one application to install Tomcat on Mac.Presently Iam working On WinNT4.0.Any Help will be highly appreciated.
Thanks for ur Valuable Time
BikashIam new to Mac operating system and iam trying to work
on Mac os 8.6.I am trying to install Tomcat on Mac os
8.6.For that I download jakarta-tomcat-4.0.1.tar from
appache site.I also extract it in my desktopfolder
directly.For running start.sh file I prepare my own
Tomcat_Start.sh like that:-.sh files are usually Shell scripts for UNIX shells. I don't think Mac OS 8.6 has a shell interpreter (could be wrong. :/) so getting it to work is going to be difficult, if not impossible.
If you have Mac OS X, however, I believe it could work on there. Not sure of exact details though.
Bhav -
How to run windows dll files and driver loaded in remote system?
Dear Friends,
I need some valuable info regd how to run a remote windows dll files and the drivers of the system using java
reply regd thanking youPlease don't make duplicate posts like this.
-
How to run a Jar file during runtime
Runtime.getRuntime().exec("javaw -jar MYJAR.jar");was what I used to run the jar originally, and it worked. Recently I created an installer for my program, where the user runs a batch-file shortcut which launches the main application. Because the main application is launched from the desktop, rather than directly, the "user.dir" property is different which makes the above code not work. How do I get the name of the folder that contains the running java application?
ThanksYou don't. You fix the installer so that it puts the correct working directory into the shortcut that it creates.
-
How to run a batch file using tigger....
Hi, i am trying run a batch file using a trigger on a table.
say i have a table XYZ(col_1 varchar2 primary key, col_2 varchar2)
the values of col_2 keeps changing and col_1 are constant
whenever the value of col_2 in any row changes from "on" to "off" i want to run a batch file C:\Users\ABC\Desktop\test.bat
i did some searching but couldn't find any solution. Thanks in advance
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
sorry wrong foum to post.
will post in the correct one
how to run batch file using trigger?Hallo,
welcome to the forum.
This is the forum for the tool {forum:id=260}. Your question should be placed in {forum:id=75} or {forum:id=61}.
When you post your question there please provide additional information like db version, what kind of trigger you want to use, how you want to prevent the execution when the transaction is rolled back... {message:id=9360002}
Regards
Marcus
Maybe you are looking for
-
Estorno de facturas de SD com recebimento
Boa tarde, Alguém sabe uma forma de impedir a possibilidade de estornar um documento de facturação a cliente, pelo fluxo de SD, que já tenha liquidação e recebimento? Obrigada, Maria
-
Problem with SipServerConnection in JSR180
Hello everybody, I am developing a notification system to J2ME clients from a J2SE application, I am implementing SUBSCRIBE/NOTIFY service. My J2ME application sends SUBSCRIBEs perfectly, and receives their OK responses, but when receiving NOTIFY req
-
Node Manager installed as service does not start managed servers. WLS 10.3
Hi All, I have installed the node manager as a windows service. When the service starts up it does start the managed servers. In the nodemanager.log file it shows that the node manager is reading the startup.properties file for all of the managed ser
-
Cant drag or import any video files
I have a video new iPod and cannot drag or import any video files or pictures. I am able to use all the MP-3/audio files like a regular player. Thanks, Mike
-
I recently tried to install some fonts that a friend gave me, and am having trouble- mostly they are .ttf extensions, but a few are .otf The fonts don't appear to install to fontbook, but they show in my user>library>fonts folder. They also display w