Fedora Linux Support Community & Resources Center
  #1  
Old 5th July 2007, 10:28 PM
techdawg270 Offline
Registered User
 
Join Date: Jul 2007
Location: Louisiana
Posts: 22
Java installation

Did this installation go as planned? I had my doubts due the the 33%, 50%, and all those percentages that are not 100% near the bottom.
Do you agree to the above license terms? [yes or no]
yes
Unpacking...
Checksumming...
Extracting...
UnZipSFX 5.50 of 17 February 2002, by Info-ZIP (Zip-Bugs@lists.wku.edu).
inflating: jdk-6u2-linux-i586.rpm
inflating: sun-javadb-common-10.2.2-0.1.i386.rpm
inflating: sun-javadb-core-10.2.2-0.1.i386.rpm
inflating: sun-javadb-client-10.2.2-0.1.i386.rpm
inflating: sun-javadb-demo-10.2.2-0.1.i386.rpm
inflating: sun-javadb-docs-10.2.2-0.1.i386.rpm
inflating: sun-javadb-javadoc-10.2.2-0.1.i386.rpm
Preparing... ########################################### [100%]
1:jdk ########################################### [100%]
Unpacking JAR files...
rt.jar...
jsse.jar...
charsets.jar...
tools.jar...
localedata.jar...
plugin.jar...
javaws.jar...
deploy.jar...
Installing JavaDB
Preparing... ########################################### [100%]
1:sun-javadb-common ########################################### [ 17%]
2:sun-javadb-core ########################################### [ 33%]
3:sun-javadb-client ########################################### [ 50%]
4:sun-javadb-demo ########################################### [ 67%]
5:sun-javadb-docs ########################################### [ 83%]
6:sun-javadb-javadoc ########################################### [100%]

Done.
Reply With Quote
  #2  
Old 5th July 2007, 10:38 PM
olenb Offline
Registered User
 
Join Date: Nov 2003
Posts: 53
This looks fine. After each RPM is installed, the overall job % is updated, and newline/progress
bar starts for the next rpm.
Reply With Quote
  #3  
Old 5th July 2007, 11:41 PM
nothing's Avatar
nothing Offline
Registered User
 
Join Date: Oct 2006
Posts: 57
i have some trouble running java app from shell

this is what i get

[nothing@blacktower ~]$ java Saluton
Exception in thread "main" java.lang.ClassFormatError: Saluton (unrecognized class file version)
at java.lang.VMClassLoader.defineClass(libgcj.so.8rh)
at java.lang.ClassLoader.defineClass(libgcj.so.8rh)
at java.security.SecureClassLoader.defineClass(libgcj .so.8rh)
at java.net.URLClassLoader.findClass(libgcj.so.8rh)
at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj .so.8rh)
at java.lang.ClassLoader.loadClass(libgcj.so.8rh)
at java.lang.ClassLoader.loadClass(libgcj.so.8rh)
at gnu.java.lang.MainThread.run(libgcj.so.8rh)
[nothing@blacktower ~]$

here is my code :

Code:
public class Saluton {
        public static void main (String[] args) {
                String greeting;
                greeting = "Saluton mondo!";
                System.out.println(greeting);
        }
}
Reply With Quote
  #4  
Old 6th July 2007, 12:22 AM
techdawg270 Offline
Registered User
 
Join Date: Jul 2007
Location: Louisiana
Posts: 22
My next question is when I download and install Eclipse now, will it automatically know where the kit is and how to go about using it's various classes? Or is this something I must configure myself? I have only used JCreator and Eclipse on Windows so this is all new to me.
Reply With Quote
  #5  
Old 6th July 2007, 01:52 AM
angryfirelord's Avatar
angryfirelord Offline
Registered User
 
Join Date: Dec 2006
Location: Pennsylvania
Posts: 320
@Nothing: The java you're using is linked to the gcj version, which quite frankly, sucks (not your fault). Here's a guide: http://news.softpedia.com/news/How-t...-6-39724.shtml

@tech: I'm sure there's ways to change it if eclipse can't find it.

Hopefully once jdk 1.7 comes out, fedora will replace gcj with that.
Reply With Quote
  #6  
Old 11th July 2007, 04:05 PM
nothing's Avatar
nothing Offline
Registered User
 
Join Date: Oct 2006
Posts: 57
humm de guild talking about JRE not JDK...

so am better to instal the JDK 5 ??

Last edited by nothing; 11th July 2007 at 04:16 PM.
Reply With Quote
  #7  
Old 11th July 2007, 04:48 PM
giulix's Avatar
giulix Offline
"Fixed" by (vague) request
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950
Why not install the latest JDK instead ? In Eclipse go to Window->Preferences->Java->Installed JREs and change the settings there. Same as windoze

Last edited by giulix; 11th July 2007 at 04:51 PM.
Reply With Quote
  #8  
Old 12th July 2007, 06:16 AM
nothing's Avatar
nothing Offline
Registered User
 
Join Date: Oct 2006
Posts: 57
i dont know waht ya talking about am bit lost lol when i install jdk in windows i can compile and run my stuf from command line but under linux i got those line

nothing@blacktower ~]$ java Saluton
Exception in thread "main" java.lang.ClassFormatError: Saluton (unrecognized class file version)
at java.lang.VMClassLoader.defineClass(libgcj.so.8rh)
at java.lang.ClassLoader.defineClass(libgcj.so.8rh)
at java.security.SecureClassLoader.defineClass(libgcj .so.8rh)
at java.net.URLClassLoader.findClass(libgcj.so.8rh)
at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj .so.8rh)
at java.lang.ClassLoader.loadClass(libgcj.so.8rh)
at java.lang.ClassLoader.loadClass(libgcj.so.8rh)
at gnu.java.lang.MainThread.run(libgcj.so.8rh)
[nothing@blacktower ~]$


but the java plugin in my browser work perfectly...
Reply With Quote
  #9  
Old 12th July 2007, 06:30 AM
marcrblevins's Avatar
marcrblevins Offline
Registered User
 
Join Date: Jun 2006
Location: Texas
Age: 42
Posts: 4,168
Try:
Code:
java
If you get the following, that is Redhat's Java, kinda lame.
Code:
[marc@kiriyamablevins ~]$ java
Usage: gij [OPTION] ... CLASS [ARGS] ...
          to invoke CLASS.main, or
       gij -jar [OPTION] ... JARFILE [ARGS] ...
          to execute a jar file
Try `gij --help' for more information.
[marc@kiriyamablevins ~]$
Reply With Quote
  #10  
Old 9th August 2007, 03:14 AM
nothing's Avatar
nothing Offline
Registered User
 
Join Date: Oct 2006
Posts: 57
hello, i just been able to install JDK from java,sun.com but how i get my azureus working with that...cuz he need those pakage to work...

Code:
=============================================================================
 Package                 Arch       Version          Repository        Size 
=============================================================================
Installing:
 azureus                 i386       2.5.0.4-2.fc7    fedora             12 M
Installing for dependencies:
 cairo-java              i386       1.0.5-7.fc7      fedora            134 k
 glib-java               i386       0.2.6-8.fc7      fedora             41 k
 java-1.5.0-gcj          i386       1.5.0.0-14.fc7   fedora            104 k
 java_cup                i386       1:0.10-0.k.6jpp.1  fedora            180 k
 libgconf-java           i386       2.12.4-8.fc7     fedora             72 k
 libgtk-java             i386       2.8.7-4.fc7      fedora            2.1 M
 sinjdoc                 i386       0.5-4.fc7        fedora            822 k

Transaction Summary
=============================================================================
Install      8 Package(s)
but if i install them, is my jdk will run into trouble ?
Reply With Quote
  #11  
Old 9th August 2007, 04:52 AM
angryfirelord's Avatar
angryfirelord Offline
Registered User
 
Join Date: Dec 2006
Location: Pennsylvania
Posts: 320
Quote:
Originally Posted by nothing
hello, i just been able to install JDK from java,sun.com but how i get my azureus working with that...cuz he need those pakage to work...

Code:
=============================================================================
 Package                 Arch       Version          Repository        Size 
=============================================================================
Installing:
 azureus                 i386       2.5.0.4-2.fc7    fedora             12 M
Installing for dependencies:
 cairo-java              i386       1.0.5-7.fc7      fedora            134 k
 glib-java               i386       0.2.6-8.fc7      fedora             41 k
 java-1.5.0-gcj          i386       1.5.0.0-14.fc7   fedora            104 k
 java_cup                i386       1:0.10-0.k.6jpp.1  fedora            180 k
 libgconf-java           i386       2.12.4-8.fc7     fedora             72 k
 libgtk-java             i386       2.8.7-4.fc7      fedora            2.1 M
 sinjdoc                 i386       0.5-4.fc7        fedora            822 k

Transaction Summary
=============================================================================
Install      8 Package(s)
but if i install them, is my jdk will run into trouble ?
No. As long as the java and javac command paths are specified for Sun's JDK, then installing gcj won't give you problems.
Reply With Quote
  #12  
Old 9th August 2007, 10:14 AM
nothing's Avatar
nothing Offline
Registered User
 
Join Date: Oct 2006
Posts: 57
ok, tanks alot =)
in witch file i sould verify the path ?
Reply With Quote
Reply

Tags
installation, java

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sun Java Installation omidkamangar Using Fedora 7 9th November 2006 01:28 PM
Java 1.5.0.6 installation help pkpanda Installation and Live Media 13 8th May 2006 11:21 PM
Java installation rcallan515 Using Fedora 4 7th February 2006 04:29 AM
Java installation stevebiotch Using Fedora 5 3rd July 2005 10:26 AM
Java installation Cherokee Using Fedora 12 14th February 2005 04:03 AM


Current GMT-time: 23:54 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat