Hey mate,<br><br>Thanks for the information... i tried your suggestion about the BufferedReader and it worked... however:<br><br>Possibly there's still some gcj toolset stuff left. If you want to solve this clean, check out the 
<a href="http://jpackage.org/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">jpackage.org</a>
site and download the rpm building package. It allows you to create an
rpm file for the jdk which is compatible with "alternatives". This way,
you can switch the system JRE between gcj and the Sun JDK (and others). <br><br>umm, can you provide more detailed info?<br><br><div><span class="gmail_quote">On 26/03/06, <b class="gmail_sendername">Klaasjan Brand</b> <
<a href="mailto:klaasjan@gmail.com">klaasjan@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style="direction: ltr;">
<br><br><div></div><div style="direction: ltr;"><span class="q"><span class="gmail_quote">On 3/26/06, <b class="gmail_sendername">Ali Helmy</b> <<a href="mailto:alihelmy@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
alihelmy@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>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 
</div></blockquote><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style="direction: ltr;">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?</font></font>

</div></blockquote></span></div><div style="direction: ltr;"><div><br>Possibly there's still some gcj toolset stuff left. If you want to solve this clean, check out the <a href="http://jpackage.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
jpackage.org</a> site and download the rpm building package. It allows you to create an rpm file for the jdk which is compatible with "alternatives". This way, you can switch the system JRE between gcj and the Sun JDK (and others). 
</div></div><div style="direction: ltr;"><span class="q"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style="direction: ltr;"><font size="4">
<font size="2">
<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" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">System.in</a>) through a console? Because .readline( ) was the one listed in the API</font></font></div></blockquote></span>
</div><div style="direction: ltr;"><div>
<br>It's in the API documentation:<br><a href="http://java.sun.com/j2se/1.4.2/docs/api/java/io/DataInputStream.html#readLine%28%29" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://java.sun.com/j2se/1.4.2/docs/api/java/io/DataInputStream.html#readLine()
</a><br><br>Wrap the InputStream in a BufferedReader and you'll get rid of the deprecation (and gain compatibility with different character sets).
<br><br>Klaasjan<br><br></div></div>

</div><br>--<br>fedora-list mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a><br>To unsubscribe: <a onclick="return top.js.OpenExtLink(window,event,this)" href="https://www.redhat.com/mailman/listinfo/fedora-list" target="_blank">
https://www.redhat.com/mailman/listinfo/fedora-list</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>A. Helmy