ok, so i exported the path with<br><span style="font-family: courier new,monospace;">export JAVA_HOME=/home/ahelmy/jdk1.5.0</span><br><br>then i checked <span style="font-family: courier new,monospace;">which jar</span>, it said
<br><span style="font-family: courier new,monospace;">/usr/bin/jar</span> which is a link that points to <span style="font-family: courier new,monospace;">/usr/java/jdk1.5/bin/jar</span> which is the correct path<br><br>so then i remade the file using 
<span style="font-family: courier new,monospace;">jar -cf</span>, but the bloody bastard (<span style="font-family: courier new,monospace;">MANIFEST.mf</span>) still says <span style="font-family: courier new,monospace;">
Created-By: 0.92-gcc</span><br><br>WTF should i do now?<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;">I did some searching and found that java-1.4.2-gcj-compat-devel contains
<br>jar program. You may check if it's installed and remove it.<br>You can update the PATH as well, if You have exported JAVA_HOME<br>previously:<br>export PATH=$PATH:$JAVA_HOME/bin<br><br>hope that helps<br><br>On Mon, 2006-03-27 at 06:26 -0600, Michael Yep wrote:
<br>> As far as the java instalation goes, what i did was unpacked the zip<br>> from sun, and then you just need to type<br>> export JAVA_HOME=/home/username/jdk1.5.0<br>> its been working great for me since FC1
<br>><br>> Ali Helmy wrote:<br>> > The fedora solved project talks about how to make the JRE the default<br>> > run time environment... I already did that, by replacing the link for<br>> > 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<br>> > program, creates MANIFEST files usinf gcc... i don't know how the jar<br>> > program does that, and i dont know which file is used to create MANIFEST
<br>> > files... i think it is an old link in the /usr/bin directory or some<br>> > other old link that i have to replace from pointing at the gcc folder to<br>> > the jdk folder...<br>> ><br>> > Anyone know what files, libs or programs jar uses to create jar files?
<br>> ><br>> > On 27/03/06, *Kazimieras Vaina* < <a href="mailto:kazimieras.vaina@gmail.com">kazimieras.vaina@gmail.com</a><br>> > <mailto:<a href="mailto:kazimieras.vaina@gmail.com">kazimieras.vaina@gmail.com
</a>>> wrote:<br>> ><br>> >     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><br>> >     <<a href="http://jpackage.org">http://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<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>><br>> >     > > <mailto: <a href="mailto:klaasjan@gmail.com">
klaasjan@gmail.com</a> <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>><br>> >     > >     <mailto:<a href="mailto:alihelmy@gmail.com">
alihelmy@gmail.com</a> <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<br>> >     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...
<br>> >     so, how<br>> >     > >         can i change the manifest file maker?<br>> >     > ><br>> >     > ><br>> >     > >     Possibly there's still some gcj toolset stuff left. If you
<br>> >     want to<br>> >     > >     solve this clean, check out the <a href="http://jpackage.org">jpackage.org</a><br>> >     <<a href="http://jpackage.org">http://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]
<br>> >     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<br>> >     line of<br>> >     > >         user input from the ( <a href="http://System.in">System.in</a> <<a href="http://System.in">
http://System.in</a>><br>> >     <<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>> >     > ><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()">http://java.sun.com/j2se/1.4.2/docs/api/java/io/DataInputStream.html#readLine()
</a>><br>> >     > ><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<br>> >     of the<br>> >     > >     deprecation (and gain compatibility with different character
<br>> >     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>> >     <mailto:<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:<br>> >     <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> <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>> >     <<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>> ><br>><br>> --<br>> Michael Yep<br>> Development / Technical Operations
<br>> RemoteLink, Inc.<br>> (630) 983-0072 x164<br>><br>> GPG Public Key<br>> <a href="http://pgpkeys.mit.edu:11371/pks/lookup?op=get&search=0x126439D9">http://pgpkeys.mit.edu:11371/pks/lookup?op=get&search=0x126439D9
</a><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