<br><br><div><span class="gmail_quote">On 3/26/06, <b class="gmail_sendername">Ali Helmy</b> &lt;<a href="mailto:alihelmy@gmail.com">alihelmy@gmail.com</a>&gt; 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 &amp; 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&nbsp;
</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 &quot;gcc&quot; 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><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">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 &quot;alternatives&quot;. This way, you can switch the system JRE between gcj and the Sun JDK (and others).&nbsp;
</div><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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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><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()">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>