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> <<a href="mailto:kazimieras.vaina@gmail.com">
kazimieras.vaina@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;">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>> Ali Helmy wrote:<br>> > Hey mate,<br>> ><br>> > Thanks for the information... i tried your suggestion about the<br>> > BufferedReader and it worked... however:
<br>> ><br>> > Possibly there's still some gcj toolset stuff left. If you want to<br>> > solve this clean, check out the <a href="http://jpackage.org">jpackage.org</a> <<a href="http://jpackage.org/">
http://jpackage.org/</a>><br>> > site and download the rpm building package. It allows you to create an<br>> > rpm file for the jdk which is compatible with "alternatives". This<br>> > way, you can switch the system JRE between gcj and the Sun JDK (and
<br>> > others).<br>> ><br>> > umm, can you provide more detailed info?<br>> ><br>> > On 26/03/06, *Klaasjan Brand* < <a href="mailto:klaasjan@gmail.com">klaasjan@gmail.com</a><br>> > <mailto:
<a href="mailto:klaasjan@gmail.com">klaasjan@gmail.com</a>>> wrote:<br>> ><br>> ><br>> ><br>> >     On 3/26/06, *Ali Helmy* < <a href="mailto:alihelmy@gmail.com">alihelmy@gmail.com</a><br>
> >     <mailto:<a href="mailto:alihelmy@gmail.com">alihelmy@gmail.com</a>>> wrote:<br>> ><br>> >         Hey mates,<br>> ><br>> >         I need to inquire about two issues in particular regarding
<br>> >         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<br>> >         Development libs & tools (such as eclipse, gcj, ...etc)
<br>> >         - I downloaded and installed the JDK1.5 and the JVM from Sun<br>> >         Microsystems, Inc.<br>> >         - I removed all the java related bins in the /usr/bin folder,<br>> >         then recreated the links to the new bins in the
<br>> >         /usr/java/jdk1.4.0/bin library to make the javac, java, jar,<br>> >         javah... etc commands use the new JDK<br>> ><br>> ><br>> >         Now here's my problems:<br>> >
<br>> >         A) When i create a jar file (ex: jar -cf Anyfile.jar<br>> >         Anyclass.class), the manifest file created with it<br>> >         (META-INF/MANIFEST) lists:<br>> >         Manifest-Version: 
1.0<br>> >         Created-By: 0.92-gcc<br>> >         where you see, that my problem is that the manifest file was<br>> >         created by "gcc" apparently, and not 1.5.0_01 (Sun<br>> >         Microsystems Inc.) which should have been the case... so, how
<br>> >         can i change the manifest file maker?<br>> ><br>> ><br>> >     Possibly there's still some gcj toolset stuff left. If you want to<br>> >     solve this clean, check out the <a href="http://jpackage.org">
jpackage.org</a> <<a href="http://jpackage.org">http://jpackage.org</a>><br>> >     site and download the rpm building package. It allows you to<br>> >     create an rpm file for the jdk which is compatible with
<br>> >     "alternatives". This way, you can switch the system JRE between<br>> >     gcj and the Sun JDK (and others).<br>> ><br>> ><br>> >         And the Note I Get after compiling with (javac
<br>> >         -Xlint:deprecation ...etc):<br>> >         [ahelmy@Laptop Java]$ javac -Xlint:deprecation<br>> >         ReadingFromConsole.java<br>> >         ReadingFromConsole.java:12: warning: [deprecation] readLine()
<br>> >         in java.io.DataInputStream has been deprecated<br>> >                                 UsrInput = IStream.readLine();<br>> ><br>> >         So, does anyone know a replacement to read directly a line of
<br>> >         user input from the ( <a href="http://System.in">System.in</a> <<a href="http://System.in">http://System.in</a>>) through a<br>> >         console? Because .readline( ) was the one listed in the API
<br>> ><br>> ><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>> >     <<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>><br>> >
<br>> >     Wrap the InputStream in a BufferedReader and you'll get rid of the<br>> >     deprecation (and gain compatibility with different character sets).<br>> ><br>> >     Klaasjan<br>> >
<br>> ><br>> >     --<br>> >     fedora-list mailing list<br>> >     <a href="mailto:fedora-list@redhat.com">fedora-list@redhat.com</a> <mailto:<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>> ><br>> ><br>> ><br>> ><br>> > --
<br>> > A. Helmy<br>> Check out the first and second replies of this post:<br>> <a href="http://www.fedorasolved.com/viewtopic.php?t=120">http://www.fedorasolved.com/viewtopic.php?t=120</a><br>> It's for FC4, but the same thing works for FC5.
<br>> -Dan<br>><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