The fedora solved project talks about how to make the JRE the default run time environment... I already did that, by replacing the link for the java command in gcj by a link to the java command in the jdk folder...<br><br>
However, that isn't my problem... my problem is that the JDK jar program, creates MANIFEST files usinf gcc... i don't know how the jar program does that, and i dont know which file is used to create MANIFEST files... i think it is an old link in the /usr/bin directory or some other old link that i have to replace from pointing at the gcc folder to the jdk folder...
<br><br>Anyone know what files, libs or programs jar uses to create jar files?<br><br><div><span class="gmail_quote">On 27/03/06, <b class="gmail_sendername">Kazimieras Vaina</b> &lt;<a href="mailto:kazimieras.vaina@gmail.com">
kazimieras.vaina@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;">Hi,<br><br>There is also /usr/sbin/alternatives command to solve Sun jdk and gcj
<br>conflicts.<br>At <a href="http://fedorasolved.org/browser-solutions/sun-java-installation">http://fedorasolved.org/browser-solutions/sun-java-installation</a><br>You may find some hints how to use the alternatives command.
<br><br>On Sun, 2006-03-26 at 20:26 -0500, Dan wrote:<br>&gt; Ali Helmy wrote:<br>&gt; &gt; Hey mate,<br>&gt; &gt;<br>&gt; &gt; Thanks for the information... i tried your suggestion about the<br>&gt; &gt; BufferedReader and it worked... however:
<br>&gt; &gt;<br>&gt; &gt; Possibly there's still some gcj toolset stuff left. If you want to<br>&gt; &gt; solve this clean, check out the <a href="http://jpackage.org">jpackage.org</a> &lt;<a href="http://jpackage.org/">
http://jpackage.org/</a>&gt;<br>&gt; &gt; site and download the rpm building package. It allows you to create an<br>&gt; &gt; rpm file for the jdk which is compatible with &quot;alternatives&quot;. This<br>&gt; &gt; way, you can switch the system JRE between gcj and the Sun JDK (and
<br>&gt; &gt; others).<br>&gt; &gt;<br>&gt; &gt; umm, can you provide more detailed info?<br>&gt; &gt;<br>&gt; &gt; On 26/03/06, *Klaasjan Brand* &lt; <a href="mailto:klaasjan@gmail.com">klaasjan@gmail.com</a><br>&gt; &gt; &lt;mailto:
<a href="mailto:klaasjan@gmail.com">klaasjan@gmail.com</a>&gt;&gt; wrote:<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; On 3/26/06, *Ali Helmy* &lt; <a href="mailto:alihelmy@gmail.com">alihelmy@gmail.com</a><br>
&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mailto:<a href="mailto:alihelmy@gmail.com">alihelmy@gmail.com</a>&gt;&gt; wrote:<br>&gt; &gt;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Hey mates,<br>&gt; &gt;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I need to inquire about two issues in particular regarding
<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; JDK... Firstly, so that you can understand my background:<br>&gt; &gt;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - I'm running FedoraCore 5<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - In the FC installation, I installed the regular Java<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Development libs &amp; tools (such as eclipse, gcj, ...etc)
<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - I downloaded and installed the JDK1.5 and the JVM from Sun<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Microsystems, Inc.<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - I removed all the java related bins in the /usr/bin folder,<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; then recreated the links to the new bins in the
<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /usr/java/jdk1.4.0/bin library to make the javac, java, jar,<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; javah... etc commands use the new JDK<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Now here's my problems:<br>&gt; &gt;
<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; A) When i create a jar file (ex: jar -cf Anyfile.jar<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Anyclass.class), the manifest file created with it<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (META-INF/MANIFEST) lists:<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Manifest-Version: 
1.0<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Created-By: 0.92-gcc<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; where you see, that my problem is that the manifest file was<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; created by &quot;gcc&quot; apparently, and not 1.5.0_01 (Sun<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Microsystems Inc.) which should have been the case... so, how
<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; can i change the manifest file maker?<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; Possibly there's still some gcj toolset stuff left. If you want to<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; solve this clean, check out the <a href="http://jpackage.org">
jpackage.org</a> &lt;<a href="http://jpackage.org">http://jpackage.org</a>&gt;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; site and download the rpm building package. It allows you to<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; create an rpm file for the jdk which is compatible with
<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; &quot;alternatives&quot;. This way, you can switch the system JRE between<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; gcj and the Sun JDK (and others).<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; And the Note I Get after compiling with (javac
<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -Xlint:deprecation ...etc):<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [ahelmy@Laptop Java]$ javac -Xlint:deprecation<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReadingFromConsole.java<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ReadingFromConsole.java:12: warning: [deprecation] readLine()
<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; in java.io.DataInputStream has been deprecated<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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();<br>&gt; &gt;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; So, does anyone know a replacement to read directly a line of
<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; user input from the ( <a href="http://System.in">System.in</a> &lt;<a href="http://System.in">http://System.in</a>&gt;) through a<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; console? Because .readline( ) was the one listed in the API
<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; It's in the API documentation:<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; <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>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<a href="http://java.sun.com/j2se/1.4.2/docs/api/java/io/DataInputStream.html#readLine%28%29">http://java.sun.com/j2se/1.4.2/docs/api/java/io/DataInputStream.html#readLine%28%29</a>&gt;<br>&gt; &gt;
<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; Wrap the InputStream in a BufferedReader and you'll get rid of the<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; deprecation (and gain compatibility with different character sets).<br>&gt; &gt;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; Klaasjan<br>&gt; &gt;
<br>&gt; &gt;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; --<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; fedora-list mailing list<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; <a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a> &lt;mailto:<a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com
</a>&gt;<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list">https://www.redhat.com/mailman/listinfo/fedora-list</a><br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; --
<br>&gt; &gt; A. Helmy<br>&gt; Check out the first and second replies of this post:<br>&gt; <a href="http://www.fedorasolved.com/viewtopic.php?t=120">http://www.fedorasolved.com/viewtopic.php?t=120</a><br>&gt; It's for FC4, but the same thing works for FC5.
<br>&gt; -Dan<br>&gt;<br><br>--<br>fedora-list mailing list<br><a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a><br>To unsubscribe: <a href="https://www.redhat.com/mailman/listinfo/fedora-list">https://www.redhat.com/mailman/listinfo/fedora-list
</a><br></blockquote></div><br><br clear="all"><br>-- <br>A. Helmy