Campbell Ritchie wrote:Please go through the Java™ tutorials section about I/O and have a look at the documentation in the API for FileOutputStream. I thought a FileOutoutStream was not suitable for .txt files, and you should use a FileWriter instead. But I am not up to speed about byte[] arrays, I am afraid; somebody else may have a better idea.
Rob Prime wrote:Linus, you've been asking quite a few starter questions lately. Perhaps it is a good idea to read through the Java Tutorial. This particular subject is discussed in its Swing section mostly.
Maneesh Godbole wrote:It should be manifest.mf.
What you have posted indicates what happens when you build the jar, whereas you initially indicated you already had a jar which was not working.
Please provided answers to the two questions I asked previously. Until we get that information, we would not be able to help you.
Maneesh Godbole wrote:Something funny happening here. JNLP file is usually used for JWS. You mention you are double clicking, i.e. the jar file exists on your file system.
1) Can you post the contents of the manifest file (inside the jar)?
2) Also, can you try invoking the jar from the command line (java -jar JarFileName,jar) and provide us the full stack trace?
Maneesh Godbole wrote:Something funny happening here. JNLP file is usually used for JWS. You mention you are double clicking, i.e. the jar file exists on your file system.
1) Can you post the contents of the manifest file (inside the jar)?
2) Also, can you try invoking the jar from the command line (java -jar JarFileName,jar) and provide us the full stack trace?
Campbell Ritchie wrote:It is also an object of the Animal class.
This shows dynamic binding, but also shows the hazards of hiding fields. You can get confused because both Dog and Animal classes have a "type" field.
tushar panda wrote:Is anyone over here interested in astral projection .
Ulises Pulido wrote:Is correct because InputStream is a superclass of FileInputStream.
You can assign directly a reference of a child class to a parent class.
As far as I know there are not such classes you are asking for
But there are FileReader and FileWriter.