Hi All,
Is is mandatory to have classpath inside a Manifest file inside the java jar file? can we do work without having the classpath inside it?
The reason why I am asking this is because I have a jar file for a server application. When I tried to connect many connections with Server, Server went down and the error was "Too many open files", when searched about it, I found one Sun Bug http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6446657 . Then I checked and i was having a classpath entry in the Jar file. So this question arises.
Edit: My code for Filr read is :
// Creating a new File instance
File file= new File(fileName);
// Creates a DataInputStream that uses the specified underlying InputStream.
DataInputStream input = new DataInputStream(new FileInputStream(file));
Data = new byte[(int)file.length()];
// Reads bytes from the input stream and stores them into the buffer array Data.
input.read(Data);
// Closes this input stream and releases any system resources associated with the stream.
input.close();
Is anything wrong with it leading to too many pen files? Thanks, Tara Singh