IOException 1 « error « Java I/O Q&A

1. Java IOException only when running new Java 1.6 - someone please

After an upgrade to XP and Java 1.6 one of our intranet apps is experiencing a problem when running a java applet in the browser. The java applet is a document ...

2. The device is not connected exception

I try to open a large number of files but after 5000 files or so I get

Exception in thread "Main" The device is not connected

Is this the expected behavior? ...

3. Invalid argument

Hi I have a web application running in cluster mode with a load balancer. It consists in two tomcats (T1, and T2) addressing only one DB. T2 is nfs mounted to T1. This is ...

4. IOException for drive full or out of space

I am looking for a list of platform-specific (JRE-specific) of IOException messages indicating disk is full or out of space. So far I have: Windows: "There is not enough space on the disk" Solaris/Linux?: ...

5. How can I handle an IOException which I know can never be thrown, in a safe and readable manner?

"The major difference between a thing that might go wrong and a thing that cannot possibly go wrong is that when a thing that cannot possibly ...

6. What should I do if a IOException is thrown?

I have the following 3 lines of the code:

ServerSocket listeningSocket = new ServerSocket(earPort);
Socket serverSideSocket = listeningSocket.accept();
BufferedReader in = new BufferedReader(new InputStreamReader(serverSideSocket.getInputStream()));
The compiler complains about all of these 3 lines and its ...

7. What does static and IOException mean?

I just had a test on java and we had to give the definition of
1) Static:
2) IOExcepion: What I said for static was...a static method is used to define a ...

8. Java: dangerous self-returning-recursive function by IOException?

I had very errorsome Exception handling with if-clauses. An exception occurs if not found path. An exception returns the function again. The function is recursive. Safe?

$ javac 
$ java SubDirs
Give ...

9. Should class IOException in Java have been an unchecked RuntimeException?

Do you agree that the designers of Java class should have made it an unchecked run-time exception derived from java.lang.RuntimeException instead of a checked exception derived only from java.lang.Exception? I think ...

10. Get the file from IOException object

Is there a way to get from the IOException object the file that fails?

11. Premature EOF

Hi: I am trying to download an xml file using Stream and things was fine , until the xml size became bigger than 9 MB , so i've got this error ...

12. use of "throws IOException" in java file handling

why we use 'Throws IOException' in java File handling. i mean what is the purpose of using these two words in File handling?? Please help...

13. Programatically determining the cause of IOException?

Is there any way to programatically differentiate between what caused an IOException? For example java will throw an IOException, if there was an error during writing. How can i tell, if ...

14. webdriver keeps throwing IOException and reconnecting

I am using webdriver api (Selenium) and when I am trying to test a site (which I can view and browse normally in my browsers), I get the following message over ...

15. Why does RAD throw a compile error on IOException(ex);

Why does RAD7 give a compile error of

The constructor IOException(Exception) is undefined
on the following line
throw new IOException(ex);
The Javadoc for Java 1.6/6.0 states that IOException has a

16. IOException inside print or println

Most of the IO operation requires try catch block or throws . Why is try catch or throws not required for System.out.print or println. If there is any exception inside these ...

17. unreported exception

What's wrong with this code


 * @author Master
public class Server {
    ServerSocket S = new ...

18. error in the following code near throw IOException

import java.lang.*;

public class Propogate1

String reverse(String name)
    throw IOException("name");

String reverseStr="";
for(int i=name.length()-1;i>0;--i)

return reverseStr;

public static void main(String[] args)throws IOException
String name;
        Propogate1 ...

19. Java SSL IOException

I was trying out a piece of code that I found off a website tutorial for an SSL EchoServer and EchoClient. The code of the client is as follows:

public ...

20. IOException - no idea why?

I have the following error: writing aborted; flexitime.UniSystems
What is the usual reason for this? I am trying to read a file in called storage.dat. The code where it gets the error is
private ...

21. IOException from methods

Is there a reason why createNewFile() method from throws an IOException, but mkdir() from the same class does not?

22. Trying to verify a signature, Exception thrown: Sequence tag error

I'm trying to verify the signature of a message, but I am getting the following exception being thrown.

Exception in thread "main" Signature encoding error

23. IOException while doing NTLM authentication using J-Integra ntauth

I am using NTauth.jar provided by j-integra in one of my projects. The code looks like following

String server = "";
String domain = "wwwww";
String username = "yyyyyy";
String password = "zzzzzz";
com.linar.jintegra.NTLMAuthenticate.validate(url, domain, username, ...

24. mark/reset not supported

try {
    //String location = dir1.getCanonicalPath()+"\\app_yamb_test1\\";
    AudioInputStream audio2 = AudioSystem.getAudioInputStream(getClass().getResourceAsStream(""));
    Clip clip2 = AudioSystem.getClip();;

25. Understanding Java IOException

I need some help with understanding the IOException. I've reviewed a lot of information on the internet, and looked at the technical specifications at Oracle's Java website. Am I correct in my ...

26. Java IOException

I am executing a below program which call the shell through java and I am getting the excepton please help me. program:

import java.util.*;

public class ProcessExample {

 * @param args
 public ...

27. Jenkins jobs failing with " Unable to delete...", sugesstions on debugging?

I have a lot of jobs (not all) failing on my Jenkins-server (Windows 7, installed as service) with:

10:04:01  Started by upstream project "X281-Integration" build number 324
10:04:26 Unable to ...

28. ExceptionConverter: The document has no pages. am using iText

when i execute the below code

File f = new File("c:/sample.pdf");
PdfWriter.getInstance(document, new FileOutputStream(f));;
System.out.println("opening the document..");
PdfPTable headerTable=new PdfPTable(9);
PdfPCell cellValue = new PdfPCell(new Paragraph("Header 1"));
cellValue = new PdfPCell(new Paragraph("Header 2"));
cellValue = new PdfPCell(new ...

29. Using e.printStackTrace() in Java

This is probably a newbie question, but hope you can help me. :) I have something like this:

//try to do something there
catch (IOException e)
//handle the exception 
I am using NetBeans ...

30. ExceptionConverter: The document has no pages

i have to create four pdf files using itext.while running the code first two of the are succesfully created.the remaning two occuring an Exception "ExceptionConverter: The document has no pages." Here ...

31. JBACI java compile error

im trying to do my sempahore homework with JBACI, but i cant use it (after long steps to make it run, im sure i did them right) because terminal shows me ...

32. Getting IO Eception

Im getting this error when i run my Applet Application,can any body guess why is it coming ? Error closing named pipes

33. IOException when passing Filefilter as argument

I have this strange problem when I execute this piece of code:

cdrFiles = dir.list(filter);
System.out.println("cdrFiles length: " + cdrFiles.length);
if (cdrFiles.length >= 1) {
    System.out.println("there is 1 or ...

34. IOException in SAX XML Parsing

I am currently using the AndEngine and doing a XML parser and using it as a level creator. I have tried various methods to read the .xml file but I keep ...

35. how to solve

vikassawant hi, I am trying to import excel file in JTable.For that I used following code, import com.zfqjava.swing.*; import org.apache.poi.hssf.usermodel.*; import org.apache.poi.hssf.usermodel.HSSFSheet; import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi.poifs.filesystem.POIFSFileSystem; FileDialog fd=new FileDialog(new Frame()); fd.setMode(FileDialog.LOAD); ...

37. Very Very Weird IOException

hi all, i am getinga really werid IOexception which i have never encountered before.i am using tomcat for my servlets. The request parameters are send thru the browser .when my parameter values contans spaces the browser successfully converts them to %20 and appropriate messages are displayed.. but when i try to test by passing '%%abc' (example value: note it explicitly contains ...


Hello friends.. I am including my test code which establishes a ssl connection to a server and posts an HTTP Post request .which then sends the response back. This code works fine with jdk1.3.1_01. But when i try to run the same code sample on j2sdk1.4.2_02, i get Socket Exception. Unexcpected end of file error just after the System.out.println(hello....10)statement. On searching ...

40. Keep getting ioexception...please help

A friendly place for programming greenhorns! Register / Login Java Forums Java I/O and Streams Keep getting ioexception...please help Post by: Greg Anthony, Greenhorn on Apr 18, 2004 11:18:00 I have two classes. Class ItemRecord defines the record in my input file and OrderCalculator4 opens the file and should load some arrays up with the data in the file. ...

41. IOException in constructor but not if externally called.

I have a problem where when a create an new filelist object I want it to populate using a the constructor. The problem is that I get an IOException error if I use the contructor this way. I can call it externally without problems (i.e. fl.populatelist() . Code below public class Filelist { private List listOfFiles = new ArrayList(); Filelist() { ...

42. IOException

I guess the interviewer could have meant "You're copying a file over a network, but the file is large, so it takes a long time. The network is fairly unreliable, so often network problems interrupt the transfer. What should you do?" which case the answer would involve splitting the file up, and probably using checksums to ensure correct recomposition at ...

43. I'm getting a really weird IOException...

OK, so I have this program, which reads two characters, appends them to a StringBuffer, adds the resulting string to a Vector, and does the same until the end of file is reached. Now, since I didn't managed to remember or find anything on the documentation about an End Of File flag (I remember you can see if you reached it ...

44. Excel - IOException Invalid Header signature

Hi, I have a utility for export and import of data. I am saving a file in excel format and then importing the same file to the database. When I try to import the same exported file, I get IOException - Invalid Header signature. But, if I first open the exported file in MS excel and then do - save as ...

45. mark/reset not supported --WHATS THAT???? need u experts help

Hi, void mark(int readlimit) this method "Marks" the current position in this input stream. void reset() Repositions this stream to the position at the time the mark method was last called on this input stream. These two methods r of FilterInputStream class.... well i dun know much abt PGp keys(Whatever) but it seems u want to read from a file. this ...

46. " The handle is invalid" in Win 2000

Hello, I am in instructor at a community college and I have many students who can't get something to work under Windows 2000 with jdk1.3. They are trying to perform a simple and they get this: The handle is invalid at Method) at at at at Demo.main( Exception in thread "main" I can't reproduce this ...

47. HSSF: Getting

49. unsupported keyword

Hi, We encountered an error when trying to make a secure connection/https posts to URL " unsupported keyword ?". We are using JDK 1.3.1, Weblogic 6.1SP5 in SUN Solaris. We have imported the following "Comodo Class 3 Security Services CA"/GTE Cuber Trust to the truststore. We were able to do a secure connection to other URL who are using verisign certs. ...

50. how to solve Corrupt form data: premature ending

Yong, Javaranch tip: If you are going to post more than a line or two of your code, wrap the code in UBB CODE tags. Doing so preserves your indenting which makes it easier to read. If it's easier to read, more people will read it and you will stand a better chance of getting help. There is a button on ...

51. Not enough space

Hi, Runtime rtime = Runtime.getRuntime(); Process child = rtime.exec("/bin/bash"); BufferedWriter outCommand = new BufferedWriter(new OutputStreamWriter(child.getOutputStream())); outCommand.write("/users/scripts/ "+file_location+" "+file_location1+" "+a_mib_names); outCommand.flush(); I added the above lines to the exising code now i am getting the following error. Not enough space at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.( at java.lang.Runtime.execInternal(Native Method) at java.lang.Runtime.exec( at java.lang.Runtime.exec( at java.lang.Runtime.exec( at java.lang.Runtime.exec( Pls let me know. Required ...

52. IOException in AudioInputStream.skip()

Hi, Iam working in Java Sound API. I wanted to jump to a location in the audifile, so im using AudioInputStream's skip() method. It works file for Mu-Law format. I was able to skip and play from the jumped location for Mu-Law format. But when comes to A-Law format or PCM Signed format, the skip() method throws an exceptio like this.... ...

53. Throw an IOException or chain/wrap it

I am developing a class library that provides access to a Server based application over TCP/IP sockets. All functional operations possible through my class library essential invoke a request-response cycle over the underlying socket connection to my server. So, for almost all of these operations an IOException can be generated while sending the request and/or reading the response over the wire. ...

54. " The handle is invalid" in Win 2000

Hello, I am in instructor at a community college and I have many students who can't get something to work under Windows 2000 with jdk1.3. They are trying to perform a simple and they get this: The handle is invalid at Method) at at at at Demo.main( Exception in thread "main" I can't reproduce this ...

55. IOException : bad file desciptor

I created a program in which I can read and write objects to a sequential file. I want to be able to write multiple objects. After which I want to read the objects back sequentially. what should I do to reposition the file pointer to the start of the file ? which stream do I need to close and open


Chinedu: Here are a couple of points to help you get started. You can read a string from the keyboard using the following sequence // Create a BufferedReader using BufferedReader br = new BufferedReader(new InputStreamReader(; String str; System.out.print("Enter a number: "); str = br.readLine(); // read the string entered by the user To convert the string into an integer, you ...

57. IOException

58. throws IOException?

Hi. I have two classes: and In, a file is selected and the absoulute path is returned. This should then be passed to the class which will read the top line of that file and return that as a String back to the class to be displayed in a jTextField. The method within that should ...

59. MessagingException: IOException while sending message

Hi,I get the below error while trying to send an email using java mail API.The same code when i run from desktop is working fine.But when i deploy it on the server as a war file,i get the below error javax.mail.MessagingException: IOException while sending message; nested exception is: /Error_20080825.xls (No such file or directory) at com.sun.mail.smtp.SMTPTransport.sendMessage( at javax.mail.Transport.send0( at javax.mail.Transport.send( ...

61. CreateProcess: error=2

public synchronized void run(){ boolean temp=false; System.out.println("shut run " +"shut.bat "+this.IPaddr+" "+this.User+" "+this.Passwd); try{ p = Runtime.getRuntime().exec("shut.bat "+this.IPaddr+" "+this.User+" "+this.Passwd); // newly added##### //String cmd = "shut.bat"+this.IPaddr+" "+this.User+" "+this.Passwd; //p = Runtime.getRuntime().exec(cmd); // ########### System.out.println(p); System.out.println("Shutdown is in progress "); in = new BufferedReader(new InputStreamReader(p.getErrorStream())); line=null; while ((line = in.readLine()) != null){ //System.out.println(this.IPaddr+line); if(!temp) //mw.updateMsg(this.IPaddr+" --- > "+"Connecting ....."); System.out.println(this.IPaddr+" --- ...

62. Bad file descriptor

Hi mates While reading a FileInputStream I am experiencing following exception. Please help me to identify the reason Bad file descriptor at Method) at Source) at Source) at logic.ICCSChequeImagesReport.downloadChequeImagesFromDocumentServer( at logic.ICCSChequeImagesReport.extractChequeImages( at logic.ICCSChequeImagesReport.extract( at logic.ICCSChequeImagesReport.( at logic.Logic8011470.print( at logic.Logic8011470.printImages( at logic.Logic8011470.pressed( at comet.Form.processDisplayEvents( at comet.Form.executeInternal( at comet.Form.execute( at logic.Logic8011470.onSearchButtonPressed( at logic.Logic8011470.pressed( at comet.Form.processDisplayEvents( at comet.Form.executeInternal( at comet.Form.execute( ...

63. probleme with rrd4j

i have a probleme with rrd4j in my program i have to do 40 000 rrd update in 5 minutes my error message is : Read failed, file C:\Documents and Settings\RRDatabase\\ not mapped for I/O at Source) at org.rrd4j.core.RrdBackend.readString(Unknown Source) at org.rrd4j.core.RrdPrimitive.readString(Unknown Source) at org.rrd4j.core.RrdString.get(Unknown Source) at org.rrd4j.core.Datasource.getDsName(Unknown Source) at org.rrd4j.core.RrdDb.getDsNames(Unknown Source) at org.rrd4j.core.Sample.(Unknown Source) at org.rrd4j.core.RrdDb.createSample(Unknown Source) at ...

64. IOException thrown where not declared?

Hi! I got this stack trace: Caused by: Server returned HTTP response code: 403 for URL: at Source) at Source) at Source) at Source) at Source) at Source) at Source) at Source) at Source) at Source) at Source) at ... How can (the constructor protected Service( ...

65. IOException is never thrown in body of corresponding try statement

I don't know why. I put 'throws IOException' after the method name. I have an assignment to write a driving game in command line (all in ascii) and this method gets the X coordinate of the car in the track array. Characters f, g and h move the car left and right or keep it in place. public int getCarPosition() throws ...

66. Premature EOF

Hi guys! I am getting a Premature EOF - for some urls, yet different on each execution - after executing the following function. Any ideas? public static void urlReader(String url, String path, String fileName) { String inputLine = null; URL x = null; BufferedReader in = null; createFile(path, fileName); try { // Create file FileWriter fwstream = new FileWriter(path + ...

67. Aleatory IOException with "Handle is invalid"

Hello everybody, I have written a class that reads a file in a format I built from scratch. It's a sequence of chunks, each made of an integer and a GZIPped block of serialized objects. The integer specifies the size of the block, in order to allow fast seeking. While reading, it also constructs an index of the position of each ...

68. Using throws IOException

Hi, I have this code.But I don't know how to call to senderEngine method. please tell me how to call to senderEngine method. import*; import*; import javax.swing.*; import java.awt.*; import java.awt.event.*; public class senderGUI implements ActionListener{ JFrame senderGUIFrame=new JFrame(); JPanel senderGUIPanel=new JPanel(); JTextArea senderGUITArea=new JTextArea(); JScrollPane senderGUIScroll=new JScrollPane(senderGUITArea); JButton senderGUISend=new JButton("Send"); JButton senderGUICancel=new JButton("Cancel"); static String msg=""; senderGUI(){ senderGUIFrame.setBounds(10,10,400,400); ...

72. IOException Exception Invalid header signature

I had written a program using HSSF api to copy a excel sheet to a cvs file. The program works fine as a stand-alone application. I tried to integrate it with an existing code. I got an issue. The following is the code // create FOS for PnR sheet FileOutputStream csvFileOut = new FileOutputStream(pnrCsvFileName); System.out.println("===> csvFileOut created"); InputStream srcFis = new ...

73. IOException

Hi, I'm currently in the Exceptions section (of my java course) and my program below relates to the same. About the program: To take input from the user a number (integer), check whether its prime number or not and display the appropriate message to standard output. Issue faced: The exception thrown is IOException and the catch block should handle the same. ...

74. Finally {IOException}

I created an I/O stream say FileInputStream, when i am over using it i call its close() method. But my IDE shows error and suggest it to be wrapped inside a try-catch block. Now if exception occurs in closing the stream how will it finally get closed? Even i put the close() statement in 'finally block', it suggests to enclose in ...

75. Permission denied

76. Convert IOException to String?

77. JFileCjooser--java.lang.RuntimeException: Could not get shell fo

Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: Could not get shell folder ID list at$ComInvoker.invoke( at at at at at sun.swing.WindowsPlacesBar.( at at at javax.swing.plaf.basic.BasicFileChooserUI.installUI( at at javax.swing.JComponent.setUI( at javax.swing.JFileChooser.updateUI( at javax.swing.JFileChooser.setup( at javax.swing.JFileChooser.( at javax.swing.JFileChooser.( at MyXenonConc.XenonConcUI.jMenuItem3ActionPerformed( at MyXenonConc.XenonConcUI.access$300( at MyXenonConc.XenonConcUI$7.actionPerformed( at javax.swing.AbstractButton.fireActionPerformed( at javax.swing.AbstractButton$Handler.actionPerformed( at javax.swing.DefaultButtonModel.fireActionPerformed( at javax.swing.DefaultButtonModel.setPressed( at javax.swing.AbstractButton.doClick( at javax.swing.plaf.basic.BasicMenuItemUI.doClick( ...

78. change throws IOException

import*; public class passSample { public static void main(String args[]) throws IOException { InputStreamReader isReader = new InputStreamReader(; BufferedReader br = new BufferedReader(isReader); FileWriter myFile = new FileWriter("E:/test.txt"); BufferedWriter bw = new BufferedWriter(myFile); System.out.println("Nhap vao, go~ 010 de ket thuc."); String str = new String(); while( !(str = br.readLine()).equalsIgnoreCase("010") ) { bw.write(str); bw.newLine(); } bw.flush(); myFile.close(); } }

79. Premature EOF

public static void urlReader(String url, String path, String fileName) { String inputLine = null; URL x = null; BufferedReader in = null; createFile(path, fileName); try { // Create file FileWriter fwstream = new FileWriter(path + fileName); BufferedWriter out = new BufferedWriter(fwstream); x = new URL(url); in = new BufferedReader(new InputStreamReader(x.openStream())); while ((inputLine = in.readLine()) != null) { if (inputLine.length() > 0) ...

80. char and throws

Hi. Is throws can be used together with char only? How about int, String, long... ... for example, class ReadChar { public static void print( long num ) throws{ System.out.println( "Type a number and press [Enter]" ); num = (long); System.out.println( "You typed " + num ); } } In this case, when I type 7, it stated I ...

81. unreported IOException problem

public class callMethod extends JFrame implements ActionListener { JButton button; callMethod(){ button=new JButton("show"); button.addActionListener(this); add(button); } public static void main(String[] args) throws IOException { callMethod cm=new callMethod(); cm.setSize(200,100); cm.setVisible(true); } public void actionPerformed (ActionEvent e) { if (e.getSource()==button) { MyFile file=new MyFile(); String[][] show=file.method("get", "20"); //error mentioned in this line .. .. } }

82. unreported exception

Yes, I think that's okay. Because the method that calls it is actually a constructor with just one line in it's body...the call to parseURL. So if parseURL throws the exception, the constructor just won't be created, and the program will exit. Correct? (I may be wrong, and if so, please correct me!)

83. is this IOException problematic?

public static String SAVE_DIRECTORY = "C:/ozzypos/"; public static void writeNewOrders(Order order) { String filename = createDirectory("orders/") + String.format(Date.getFormattedDate(false) + "_%d.pos",order.getOrderID()); FileOutputStream fos = null; ObjectOutputStream out = null; try { fos = new FileOutputStream(filename); [COLOR="DarkGreen"]//Line 41[/COLOR] out = new ObjectOutputStream(fos); out.writeObject(order); out.close(); } catch (IOException ex) { ex.printStackTrace(); } } public static String createDirectory(String subdirectory) { String finalDirectory = SAVE_DIRECTORY + ...

84. throws IOException ?

85. Error:unreported exception; must be caught or declared to be thro

My class assigned me to write a fractions class. //Colin Steele //CSC2310 import*; import java.util.*; import java.awt.*; public class Fractions { public static void main(String[] args) { Fraction f1 = new Fraction(1,1); int x; InputStreamReader input = new InputStreamReader(;; } } --------------------Configuration: -------------------- C:\Users\Colin\Desktop\Stuff\CSC2310\Colinsteele.j ava:13: unreported exception; must be caught or declared to be thrown; ^ 1 ...

86. Unreported exception java.IO.IOException

I know it's better to cover a general exception in the header of the method but, why couldn't I do the following? public void writeList() { try { PrintWriter out = new PrintWriter( new FileWriter("OutFile.txt")); // for (int i = 0; i < SIZE; i++) { // out.println("Value at: " + i + " = " + // vector.elementAt(i)); // } ...

87. IOException query

I am using TextPad to enter the code - then Tools > Compile then Run. All the other 30 examples have run OK using this method. Yes - I checked running the program from the command line and it is OK!! I will ask the question in the TextPad forum. Thanks for your help Alan

89. what does not found mean

public static void main(String[] args) throws IOException, InterruptedException { // declaration section: // declare a server socket and a client socket for the server // declare an input and an output stream ServerSocket batchServer = null; Socket clientSocket = null; String line; DataInputStream is; PrintStream os; Runtime rt = Runtime.getRuntime(); String[] cmd = new String[1]; // creating a new ServerSocket object ...

90. Unhandled exception type IOException

91. finally & IOException

92. Quick question regarding IOException for file handling.

Hi Folks, I have create 2 classes, ClassA and ClassB. ClassA does all of the file handling operations, for example reading writing and exceptions like IOE and EOF. ClassB creates an instance of ClassA and adds or removed text from from file. The trouble I am running into is that as soon as I create instance of ClassA in ClassB, I ...

93. Handling IOException

Definitely place your close() in a finally block, and be sure that close() statement is surrounded by its own try-catch, where in the catch all you will do is log the exception. As an aside, your original code does not have to be that complex. If the exception propagates out of the main() method, the JVM will print a stack trace ...

95. IOException Error

96. Unreported exception; must be caught or declared to be

you see, using the 1st code without the "while", i let the server shows its respond to the client using System.out.println messages. It respond to the client exactly what it shoud be. but unfortunately, the client just didnt load the next image. the program works correctly except for the part where the client didnt show the image that its supposed ...

97. IOException

98. error

99. not able to understand IOException

Hi, Please open the link below In scenario 1:- it says that Here's the complete output from the ListOfNumbers program that appears when an IOException is thrown. Entering try statement Caught IOException: OutFile.txt PrintWriter not open but in Scenario 2: The try Block Exits Normally, it says In this scenario, all the statements within the scope of the try block ...

100. shell error exec: not found

Hi , I have a java program in that i am creating a file in /home directry and then i am execeuting the file from my java class. The command that being used is "exec more mylog.out". When i tries to execute its giving an error shell error exec: not found. Pls help me to find out the solution ...