runtime 1 « Development « Java I/O Q&A





1. Putting JVM arguments in a file to be picked up at runtime    stackoverflow.com

I'm building a jar of my current application, which required several JVM arguments to be set. Is there a way of setting these JVM arguments in a file rather than on the ...

2. Make application run in its own directory    stackoverflow.com

I'm trying to get an application (a game) to start with a Java script. There is a long explanation behind why, so I'll skip that part. The game won't run unless it ...

3. Where to pass runtime argument in wrapper.conf file in java service wrapper?    stackoverflow.com

Iam trying to create window service for my jar application. Application needs an argument and System property value while runtime. I dont know where to give argument value and system variable ...

4. Runtime.exec() with absolute directory    stackoverflow.com

I would like to use Runtime.exec() to initiate another process in a directory with spaces. (It sounds stupid but I really want to satisfy my curiosity) Details of the problem(simplified version) I have ...

5. How to solve "java.io.IOException: error=12, Cannot allocate memory" calling Runtime#exec()?    stackoverflow.com

On my system I can't run a simple Java application that start a process. I don't know how to solve. Could you give me some hints how to solve? The program is:

[root@newton ...

6. Compressing and Archiving the files in the folder using Java Runtime    stackoverflow.com


I am trying to Compress and Archive all the files in a folder, using Java Runtime class. My code snippet looks as this :

public static void compressFileRuntime() throws ...

7. Make Java runtime ignore serialVersionUIDs?    stackoverflow.com

I have to work with a large number of compiled Java classes which didn't specify explicitly specify a serialVersionUID. Because their UIDs were arbitrarily generated by the compiler, many of the ...

8. In java, is it possible to add the Serializable interface to class that doesn't have it at runtime?    stackoverflow.com

There is a class I want to serialize, and it implements Serializable, but one of the objects it contains does not implement Serializable. Is there a way to modify the class at ...

9. How to run .reg file in Java    stackoverflow.com

I need to install a .reg file (INTRANET) by using Java. How do i get my goal ? Cheers,





10. Serializing java objects with respect to xml schema loaded at runtime    stackoverflow.com

I call an XML document three-layered if its structure is laid out as following: the root element contains some container elements (I'll call them entities), each of them has some simpleType ...

11. How to list source code file names at Java run time?    stackoverflow.com

When my program starts to run, how do I list available java source file names ? For example, I have a few dozen source files named "My_App_*.java" in my src directory, ...

12. Find the associated program to open a file using Java    stackoverflow.com

I wish to open a file (lets say, a word document) from a Java application using the associated program installed on the computer (in this example, using MS Word or Open ...

13. Java - configure Object properties    stackoverflow.com

I would like to configure an object's properties at runtime either via a properties file, possibly XML (even though it can be a little more verbose). The properties may be ...

14. Determining location of JVM executable during runtime    stackoverflow.com

How does one obtain the location of the executable of the currently running JVM during runtime? I would like to instantiate another JVM as a subprocess using the ProcessBuilder class. I am ...

15. cannot find file using runtime.exec dir argument    stackoverflow.com

It's quite possible i've misunderstood the purpose of the File dir argument in Runtime.exec(String command, String[] envp, File dir): "The working directory of the new subprocess is specified by dir. ...

16. Can you make an object serializable at runtime?    stackoverflow.com

Just like the title says, is there a way to check if an object is serializable, and if not, make it so at run time?





17. accessing files created by java runtime process    stackoverflow.com

I'm running a windows program from within java:

            String command = "cmd /C start "+fileName+".bat";
    Runtime rt ...

18. Opening an external, non-java file with Java    stackoverflow.com

I am trying to access the file "J:\Java\NetBeansProjects\List of forgoten things\list.eml" and open it using the OS-defined default application. This can be acomplished in the command prompt by calling

cd "J:\Java\NetBeansProjects\List ...

19. Calling GnuPG in Java via a Runtime Process to encrypt and decrypt files - Decrypt always hangs    stackoverflow.com

NOTE: Coming back to this later as I've been unable to find a working solution. Draining the input streams manually instead of using BufferedReaders doesn't seem to help as the ...

20. Java - Find Path During Runtime To Delete File    stackoverflow.com

The code basically allows the user to input the name of the file that they would like to delete which is held in the variable 'catName' and then the following code ...

21. Emma no runtime coverage data found in any of the data files java.io.FileNotFoundException    stackoverflow.com

I need help in resolving following issue. i am trying to generate Emma code coverage report through ant but I am getting java.io.FileNotFoundException. Following is the log. java.io.FileNotFoundException: E:\Build-Work\WMB70_Workspace_R2.5\bin\coverage\junit-emma-reports\TEST-junit.com.fbs.msg.rule.std.pa.ValidatorTest.txt (The system cannot find the ...

22. Runtime.exec() from tomcat6 succeeds, but cannot access any files    stackoverflow.com

I'm moving our servlets (pure Java, running in Tomcat 6) from CentOS to Debian, and faced the problem with executing commands with Runtime.exec().
(The command should be ImageMagick's convert in production, but ...

23. handling c executable file using java    stackoverflow.com

I want to run a C/C++ program's exe file using java.......and handle its input and output...... my code is

import java.io.*;

class run2 {
  public static void main(String[] args) throws java.io.IOException {

 ...

24. Runtime.getRuntime.exec() problem with copying files    stackoverflow.com

I want to copy a file using this :

Process process = Runtime.getRuntime()
     .exec("cmd.exe /c  copy  C:\test1\toto.PDF  C:\test2\toto.PDF");
When i execute the command manually, it works, ...

25. Defining Files to a java program at runtime    stackoverflow.com

Hello all java newbie here... I'm writing a java program that has to read from an external text file, (inquiries) and then write out the responses to the inquiries to another external ...

26. Java Runtime.exec() program won't output to file    stackoverflow.com

I have a program that takes in a file as an input and produces an xml file as an output. When I call this from the command line it works perfectly. ...

27. How to call external executable file from java    stackoverflow.com

I am new to java... I have a problem while trying to call external executable file from java...

Runtime rt = Runtime.getRuntime();
Process pr = rt.exec("cmd /c terminal.exe");
while trying to call this ...

28. How to hide a file at runtime in java    stackoverflow.com

I have Java program where I create a file called hd_details, and store the hardware details of the machine that runs the program and install count. The install count is to ...

29. Java - accessing strings in non-compiled .java files during runtime    stackoverflow.com

I've got a problem for you. I've got a bunch of Java files (.java) sitting around and they all contain a class declaration and an array of strings. I need to do ...

30. serialization check - compile time and runtime    stackoverflow.com

i am looking for a tool, that can tell me whether a class / object is legal serializeable object (implements serializable, and all its fields are serializable). i know that i can ...

31. Running Shell or System Command in JAVA    stackoverflow.com

private void myFunction(String userName){
    String fileName = this.generateFile(userName);
    String[] command = new String[4];
    command[0] = "cmd";
    command[1] = "/C";
 ...

32. Runtime.exec doesn't compile java file    stackoverflow.com

I compile java file by Runtime.exec("javac MyFrog.java"); It says no errors, doesn't output anything, but doesn't create MyFrog.class file. if i write Runtime.exec("javac") it outputs to output some help text. So I understand that ...

33. To check if a file is written completely    stackoverflow.com

How do I know if a software is done writing a file if I am executing that software from java?For example, I am executing geniatagger.exe with an input file RawText that ...

34. getResource() to a file on runtime    stackoverflow.com

I put some txt files under src package (int resources folder). But I can't create a file on runtime from this resource.

String path = this.getClass().getResource("/resources/file.txt").getFile();
File file = new File(path );

if (!file.exists()) ...

35. Runtime and IO redirection    bytes.com

Hi Members, I tried to execute "Runtime.getRuntime.exec("mysql -u username -ppassword databaseName < c:/data/backup.sql;" But this command is not restoring my database, instead if i run the same comman d through command ...

36. Runtime.exec()    coderanch.com

The following is a method that is invocted when a button receives an actionevent. public void compileFiles() { String cmds[] = new String[1]; cmds[0] = "C:\\jdk1.3\\bin\\javac.exe"; Runtime rt = null; Process pro = null; try { System.err.println("1"); rt = Runtime.getRuntime(); System.err.println("1.5"); pro = rt.exec(cmds); System.err.println("2"); pro.waitFor(); System.err.println("Done"); InputStream out = pro.getInputStream(); int i; while ((i = out.read()) != -1) { System.err.print((char)i); ...

37. Runtime.exec() doesnt seem to work.    coderanch.com

I am trying to write an application in which :- 1)I write a text file in a textarea(possibly java code). 2)I save the file to a filename with the help of 'SAVE' option in the application itself. 3)Now i want to send the command'javac filename' to the DOS prompt and get back the output from the DOS prompt and paste it ...

38. runtime.exec() call and user interaction    coderanch.com

I wonder if Runtime.exec() can deal with user interaction in subprocess. For example, program A.java calls program B.class through Runtime.exec(). Program B gives some output and receives standard input. I understand how B's output is redirected to A through the getInputStream(), but I have no idea how B's standard input(terminal input) can be handled. When I tried this type of program, ...

39. Create a file at runtime    coderanch.com

Hi, Basically I would like to create and write to a file at runtime. The problem is basically doing the same on the UNIX server. I have given the path/filename as an environment variable in web.xml & pass this variable as a parameter to the FileOutputStream instance. My problem is creating the file in the directory I require. I have a ...

40. Runtime.exec    coderanch.com

Hi, I'm trying to run a class in a remote machine by ssh. The reasons for what I need to use ssh, are out of question (security ?)(the boss told me that !). I need to capture the output of that remote class so I call a .bat(who encapsulate the ssh call) and redirect the output to a file. After that, ...

41. Runtime Monitoring of a file    coderanch.com

I have got a property file which I read once completely, create an object and make it as a cache service. I need to monitor the property file(preferably a thread which watches it) continously such that when someone changes the contents in the file or add something, the program should fire an event about the change happened. On getting the trigger ...

42. Output of Process through runtime.exec    coderanch.com

Hello everybody, I am trying to execute C executables in a Java environment. I am able to launch the subprocesses but am unable to print their output simultaneously to the console. I start the process using runtime.exec() and then get the InputStream of the process with the Process.getInputStream() functions. Then I spawn a thread to parallely print the contents of the ...

43. is Runtime the right class for me?    coderanch.com

44. Trouble with runtime again..help!    coderanch.com

Hello After many problems, I decided to use the Runtime class for writing a command (scp) through the console, problem is, that it returns an error: ssh_askpass: exec(/usr/lib/misc/ssh-askpass): No such file or directory Permission denied, please try again. ( because it tries to get the password and I don't get the chance to give it, I think.) this is the code ...

45. modifying file at run time...    coderanch.com

Hi all, I am facing one problem. Please guide me. Suppose I have a file, the contents of file: Hello how are you Now if I want to replace 'how' with 'who' (Hello who are you), no shift is required in this case. Now replacing 'how' with 'a' (Hello a are you), new word is smaller than old one, so left ...

46. Showing output from Runtime.getRuntime().exec    coderanch.com

I have a program that executes an ant build.xml file. The exec is running ok and it is building, however I want to show the output of the build in a textpane. I anm getting the InputStream from the Process class and displaying that in a System.out statement first. However all I'm getting is the build.xml command. What do I need ...

47. Really confused about runtime.exec()    coderanch.com

hi' i already look at that.But when i try it my program still hang.can you help me... this my code (GoodWindowsExec.java) public class GoodWindowsExec { public GoodWindowsExec() { try { String[] cmd = new String[]{"cmd.exe","/C","java","maintest"}; Runtime rt = Runtime.getRuntime(); Process proc = rt.exec(cmd); InputStream inStream = proc.getInputStream(); BufferedReader bfr = new BufferedReader(new InputStreamReader(inStream)); display(bfr); InputStream errorStream = proc.getErrorStream(); BufferedReader errorBfr = ...

48. to find the workspace path at runtime to write the file    coderanch.com

Hi All, I have a Struts project deployed in tomcat webapps. User Sign in details are configured in a xml file and are validated by reading the xml file..The xml file is in the path WEB-INF/classes/com/files/user.xml... when a new user has to be added his/her details has to be written in the same user.xml file..I read the the file using getClass().getClassLoader().getResourceAsStream("com/files/user.xml"); ...

49. problem executing a unix command in java runtime    coderanch.com

Hi, I got stuck on this.... I am trying to get a file size from a unix comand and I have tried to execute it in java runtime but it is not working. here is the code: String theDest="ls -l /home/test/myzip.zip | awk '{print $5}'"; File workDir = new File("./"); try { Process p = Runtime.getRuntime().exec(theDest, null, workDir); int i = ...

50. Runtime.getRuntime().exec()    coderanch.com

hi all I am working on an application (i.e. a library). I am usin gjava as a front-end and mysql as back-end. In this application I want to open book from the interface through java. The books are in different formats say .doc or .pdf. I want that the books to be opoen in their respective environment. For example if the ...

51. Runtime hangs when writing to a file    coderanch.com

Hi i have a java program which generates a tab delimited file. I am calling it thru a web application using Runtime class. The problem is that the program hangs after a certain time. If i run the program thru the command prompt it runs fine, but when it is called thru the WEbapplication it hangs. Any idea what is the ...

52. Runtime.getRuntime().exec doesnt execute some files    coderanch.com

Hi helper, I use in my code: Process p = Runtime.getRuntime().exec(scriptToRun); and it runs file1.cmd that containes the following: file1.cmd: set ADVANTAG_FOLDER=c:\Yoss_test RD /s /q %ADVANTAG_FOLDER% but it doesnt run file2.cmd :-( file2.cmd: echo "after File " >> after.txt Do you have a clue why file1 is executed and file2 is not. I dont get any errors at all. Thanks Yossi ...

53. Exception in System (Runtime) execute command for copying the file    coderanch.com

Can any one tell me what is wrong with this - it throws an IOException String sourcepath = "C:"+File.separator+"pbx"+File.separator+"mantra"+File.separator+"vvvvv.mp3"; String destinationpath = "C:"+File.separator+"rrr"+File.separator+"mantra"+File.separator+"mantra.mp3"; Runtime rt=Runtime.getRuntime(); try{ String command="C:"+File.separator+"windows"+File.separator+"command /c copy "+sourcepath+" "+destinationpath; System.out.println(command); rt.exec(command); }catch(IOException ex){System.out.println("exception "+ex); ex.printStackTrace();} output:- C:\windows\command /c copy C:\pbx\mantra\vvvvv.mp3 C:\rrr\mantra\mantra.mp3 exception java.io.IOException: CreateProcess: C:\windows\command /c copy C:\pbx\mantra\vvvvv.mp3 C:\ rrr\mantra\mantra.mp3 error=2 java.io.IOException: CreateProcess: C:\windows\command /c copy C:\pbx\mantra\vvvvv.mp3 C:\rrr\mantra ...

54. compiling the file at run time    coderanch.com

You can compile a class at run-time by just running "javac" via Runtime.exec(). I believe there is also a direct interface to the Java compiler. That would be more efficient and possibly more flexible, but I have not used it so I cannot give details; search Sun's documentation. If your compilation generates a class file in a directory that is already ...

55. Runtime.exec() IOException    coderanch.com

56. File move using Runtime or java.io    coderanch.com

Gurus, I have a java application that will execute every 15 minutes. All it has to do is move several files (10-100) from one directory to another. I found two ways to do this: 1 Calling dos command move from my program or 2 Using standard java.io classes like BufferedInputStream.....read, write Please tell me which will be more better in terms ...

58. how to copy files at runtime    coderanch.com

hi, i've to copy all the files in one directory to some other dir. I can copy the files if and only if i know the filename and its extension.I may know the dir exactly but not the files inside and these files are with different extension.This program will have to work in java1.3,1.4 & 1.5 also.Pls help me to get ...

59. IOException while executing runtime.exec    coderanch.com

please find my code attached below import java.io.IOException; public class Main { public static void main(String[] args) { executeScript(); } private static void executeScript(){ try { Process p = Runtime.getRuntime().exec( "cd /home/abc; test.sh"); System.out.println("Processs : " + p); }catch(IOException e) { e.printStackTrace(); } } } I am getting following exception java.io.IOException: No such file or directory at 0x0000002a95b6c946: java.lang.Throwable.Throwable(java.lang.String) (/usr/lib/../lib64/libgcj.so.3) at ...

60. How to run a java File using RunTime    coderanch.com

I have java file which is running on Websphere Application Studio (WSAD). From the Java file i need to invoke a java file to run as like it runs on command prompt. So what i did is i got the RunTime instance and tried to execute the java file like Runtime.getRunTime.exec("java -cp classpath JavaFilename); the system was not showing any result ...

62. how to extract runtime(files used by an application) environment of software?    coderanch.com

I developed a java class which needs few soft wares to be installed(using .exe) on the machine ,Ex:Open office.But the problem I am facing here is,project management people will not allow to install such software,but they are OK to use open office but without installing open office(using .exe method) . 1)Is there any possibility to take run time environment of Open ...

63. Using Runtime to open a file with parentheses in the name    coderanch.com

public void openFile() throws IOException{ String[] openIt = new String[3]; openIt[0] = "cmd"; openIt[1] = "/c"; openIt[2] = getFile(); Runtime p = Runtime.getRuntime(); p.exec(openIt); } The above code is used to open a file. The method getFile() returns a string that is a file pathname such as "F:\Files\https___ecf.ord.uscourts.gov_cgi-bin_show_temp.pl_file=91062-2882988-0--headed_LM.pdf" or "C:\Working File\Dummy List3) 7-3-07 - 5-30-08.pdf". Neither of these files will open ...

64. Locating the path of a runtime dependency archive file    coderanch.com

Hi, I need to locate the path of the file - rampart.mar which I have placed in the folder /lib To locate the path at runtime, I tried executing the command : String repositoryLocation = this.getClass().getClassLoader().getResource("rampart.mar").getPath(); It fails! I realised that since my output folder in eclipse is set to build/classes , all the resource files that are placed under the ...

65. ERROR ON RUNTIME(sending fax using rfax)    coderanch.com

import javax.swing.*; import java.awt.*; import java.awt.event.*; import com.java4less.rfax.*; public class ta_scroll { private JFrame f; private JTextArea ta; private JScrollPane sbrText; private JButton btnQuit; private JButton submit; public ta_scroll() { f = new JFrame("Swing Demo"); f.getContentPane().setLayout(new FlowLayout()); ta = new JTextArea("", 5, 50); ta.setLineWrap(true); sbrText = new JScrollPane(ta); sbrText.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); btnQuit = new JButton("Quit"); submit=new JButton("submit"); submit.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ...

67. Runtime.getRuntime().exec() not printing output    coderanch.com

Hi, Am trying to print the java version using the following code. Could some one help me out with this. I used "java -version" as an example. I am trying to print the version of a software on my machine. Somehow exec command is not taking the argument or am doing something wrong (which i think is the case). If i ...

69. moving files using Runtime.exec() method    coderanch.com

hi all, i have a simle java method where i am trying to move files from one directory to another. Below is the code try { Runtime r = Runtime.getRuntime(); p = r.exec("mv /tmp/out.log /var/tmp/outlogFile.log"); p.waitFor(); extVal = p.exitValue(); log.debug("Process exit value: " + extVal); } catch (IOException e) { extVal = 1; log.error("IO Exception - "+ e.getMessage()); e.printStackTrace(); } catch ...

70. Problem with HP UX ia64 while using Process proc = Runtime.getRuntime().exec( command );    coderanch.com

Hi my test program does not seems to work on HP UX ia64 where as it works on Solaris and HP Ux PA The JRE Version on HP UX ia64 is : Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0.08-_04_may_2007_06_31) Java HotSpot(TM) Server VM (build 1.5.0.08 jinteg:05.04.07-11:53 IA64, mixed mode) Here is my test program package test; import java.io.BufferedReader; import java.io.File; ...

71. reading file in run time    coderanch.com

72. Java Runtime Updates -- Do I need to keep ALL of the update files ???    forums.oracle.com

I have a quick question that may seem a little on the DUMB side but here goes... After Java Runtime Environment 6 came out, there have been 3 updates. The original JRE 6 was just over 88 MB, Update 1 was 134 MB, and Updates 2 & 3 were 111 MB EACH!!! Even though they all together add up to less ...

73. How does a Java app find files it needs at runtime?    forums.oracle.com

Hi. I'm relatively new to Java development. I am from a C++/C#/VB background. In VB6 I could use app.path to find the path of my application executable, which I could then use to locate files (such as images, XML docs, etc.) that are distributed with the application and would always reside in its directory. In .Net, I could use Application.StartupPath to ...

75. Reading File Runtime Error    forums.oracle.com

I don't see any swing stuff to warrant posting in this forum, but if you follow the flow from main(): Testwow wow = new Testwow();---> calls the constructor, which has as its first line readFile(filename);---> so what is filename? public String filename;---> and this is null you don't supply the filename wow.readFile(args[0]); until after the constructor finishes

78. Runtime exec IOException issues    forums.oracle.com

I've continued to investigate this with my discoveries below. I've found some more interesting nuances, but am still not satisfied with the explanation of what is going on here. For time reasons, I've capitulated to a somewhat lame workaround. The test run in the 1.6.0 jvm environment is somewhat revealing in that it confirms that the eventual call to fork (I'm ...

79. Runtime.Exec for 'appref.ms' files    forums.oracle.com

I got the code from the famous when Runtime.exec() won't. I am now suspecting there is something wrong with this part. Essentially I want a very simple thing. The external program will run and the parent program will wait for it and get the return value. I added the Stream stuff simply to prevent deadlock/hanging. I am considering trying to get ...

80. Not able to execute external file with parameter using RuntIme    forums.oracle.com

The file DBIQ-EURILIBORROB.exp is already available under C: Program Files BMC Software CONTROL-M EM 6.2.01\\bin but it does not detect the file although its able to detect the deftable.exe which is in the same folder location. How i know that it detects the exe is, if i dont pass the parameters including the file name(DBIQ-EURILIBORROB.exp ) it show an error message ...

82. Re: RunTime.getRunTime().exec() to get file information using mplayer.    forums.oracle.com

'I don't really know what is wrong with your code, but whenever there is a problem with Runtime, I always refer this article: [When Runtime.exec() won't|http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html]. It helps solve most trouble with Runtime.exec() as long as you REALLY read it and do what it suggests. A couple of things that I would address right off the bat: 1) Use the exec(String[], ...

83. Moving files with Runtime exec of command    forums.oracle.com

84. Creating file @ runtime in webcontent...    forums.oracle.com

86. problem with open file at runtime    forums.oracle.com

87. Is there any way I could generate CAB (M$ stuff) files at run time?    forums.oracle.com

Hi, I was wondering if there is any way I could be using to generate a CAB file at runtime. Sure, it has to be a Java Class or Library. The goal is to set some files in the configuration settings and then sending this CAB to a Windows Mobile powered device. I have been googling for such a thing, but ...

88. Help!!! How to execute a File during runtime    forums.oracle.com

Dear Javers am trying to run an executable file which is located in other directory, e.g. /home/haha/app/aaa normally I could create a RunTime instance and pass the absolute path and get it executed, but this executable file (aaa above) needs some resources in its directory(/home/haha/app/resource) to get started, and this resources can not be passed as argument, so I get the ...

90. Problem using Runtime.getRuntime().exec() setting working directory    forums.oracle.com

hi I'm writing an application for win32 which has to execute a batchfile (deploy.bat). This batch file copy my application process result as content file in a specific path and send a mail notification with Blat (win32 command line utility, www.blat.net). My application doesn't work fine (OS:Windows Server 2003, jvm: 1.6) if I use Runtime.getRuntime().exec() setting working directory. My tests in ...

92. file generation at runtime    forums.oracle.com

I am working on a mobile web application and I would like to auto-generate a CSS upon user login such that certain customizable LAF (i.e. font-size, font-family, color, background-color, etc) components will be specific to the person who has logged in. Has anybody done anything with CSS generation at run-time and can offer some direction for me - maybe some online ...

93. opening a file via Runtime.exec() on Mac OS X    forums.oracle.com

94. Creating Directory at run time    forums.oracle.com

95. Opening XML/XSD file at runtime    forums.oracle.com

99. Runtime.getRuntime().exec(String[] cmdArray, null,new File("/someFile"));    forums.oracle.com

String[] comm = {"sh","whoami","ps"); String temp = ""; try{ Process p = Runtime.getRuntime().exec(comm, null, new File("user.dir")); BufferedReader br = new BufferedReader (new InputStreamReader(p.getInputStream())); while ((temp = br.readLine())!=null) System.out.println(temp); br.close(); }... In many posts I can read about executing more than one command. But when I am trying to do that, it isn't working. When as comm[] I write only one command ...

100. Problem with opening a file in its application using Runtime    forums.oracle.com

Excuse me again for annoying you but I cannot understand if I am no clear explaining my problem or if there is nobody who can help me.... If it is the first case, then maybe I can be more specific... If anyone has faced the same problem before, or has any ideas on how to confront this problem, then may pleaaseee ...