Hey mates,<br><br>I need to inquire about two issues in particular regarding JDK... Firstly, so that you can understand my background:<br><br>- I'm running FedoraCore 5<br>- In the FC installation, I installed the regular Java Development libs & tools (such as eclipse, gcj, ...etc)
<br>- I downloaded and installed the JDK1.5 and the JVM from Sun Microsystems, Inc.<br>- I removed all the java related bins in the /usr/bin folder, then recreated the links to the new bins in the /usr/java/jdk1.4.0/bin library to make the javac, java, jar, javah... etc commands use the new JDK
<br><br>Now here's my problems:<br><br>A) When i create a jar file (ex: jar -cf Anyfile.jar Anyclass.class), the manifest file created with it (META-INF/MANIFEST) lists:<br><div style="margin-left: 40px;"><span style="font-style: italic; font-family: courier new,monospace;">
Manifest-Version: 1.0</span><br style="font-style: italic; font-family: courier new,monospace;"><span style="font-style: italic; font-family: courier new,monospace;">Created-By: <span style="font-weight: bold;">0.92-gcc</span>
</span><br></div>where you see, that my problem is that the manifest file was created by "gcc" apparently, and not <font size="4"><font style="font-family: courier new,monospace;" size="2">1.5.0_01 (Sun Microsystems
</font><font size="2"><span style="font-family: courier new,monospace;"> Inc.)</span></font></font><font size="4"><font size="2"> which should have been the case... so, how can i change the manifest file maker?<br><br>B) When developing this simple program to test reading & writing to an input device keda bagaraboh that replaces the keyboard for the (
<a href="http://System.in">System.in</a>), i get this message when compiling with javac... However, this message is not an error, it is just a note... the program DOES compile, yet i don't know what is causing the bloody note... 
<br><br>The Program:<br><span style="font-family: courier new,monospace;">import java.io.*;</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
public class ReadingFromConsole{</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        public static void main(String[] args){</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">                //propmt user</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">                System.out.println("Say something");
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">                //set the input stream</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
                DataInputStream IStream = new DataInputStream(<a href="http://System.in">System.in</a>);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">                //read the dara
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">                String UsrInput = new String();</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
                try{</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">                        UsrInput = IStream.readLine();</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">                } catch(IOException e) {</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">                        System.out.println
("Error getting input");</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">                }</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
                //print the data out to the user</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">                System.out.println("You said: " + UsrInput);
</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">        }</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">}</span>
<br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"></font></font><font size="4"><font size="2">And the Note I Get after compiling with (javac -Xlint:deprecation ...etc):<br><span style="font-family: courier new,monospace;">
[ahelmy@Laptop Java]$ javac -Xlint:deprecation ReadingFromConsole.java</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">ReadingFromConsole.java:12: warning: [deprecation] readLine() in 
java.io.DataInputStream has been deprecated</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">                        UsrInput = IStream.readLine();</span><br><br>So, does anyone know a replacement to read directly a line of user input from the (
<a href="http://System.in">System.in</a>) through a console? Because .readline( ) was the one listed in the API<br><br>Sorry for the long mail, but I hope that through the [java] tag, anyone who's not interested can just ignore the mail
<br><br>Fare Faw<br><br style="font-family: courier new,monospace;"></font></font>-- <br>A. Helmy