Java install on Linux FC4 (Two very basic questions).

Discussion in 'Java' started by AnonymousFC4, Jul 28, 2005.

  1. AnonymousFC4

    AnonymousFC4 Guest

    Hello:
    This is very simple question... but the answer is not obvious to me!
    I am trying to compile and run very simple "hello World" kid, java
    programs.... and I am running into problems.

    I am having errors messages, bnoth at compile (for some programs), and run
    time.... and they are so far quite cryptic to me.

    For info:
    -------------
    $1 rpm -qa java*
    java-1_5_0-sun-1.5.0_01-5
    java_cup-manual-0.10-0.k.1jpp_2fc
    java_cup-javadoc-0.10-0.k.1jpp_2fc
    java-1.4.2-gcj-compat-1.4.2.0-40jpp_31rh.FC4.1
    java-1.4.2-gcj-compat-devel-1.4.2.0-40jpp_31rh.FC4.1
    java_cup-0.10-0.k.1jpp_2fc
    java-1.4.2-gcj-compat-src-1.4.2.0-40jpp_31rh.FC4.1
    -------------

    I have installed the Java run time engine as 1.5, but the rest is all 1.4,
    this could explain some problems (not the compile): I imagine the byte code
    generated by the compiler 1.4 is incompatible with the JRE (1.5)....

    Q1: Where could I find the proper RPMS for FC4 Java 1.5 install ?
    I (ave read thatSUN has problems).

    Q2: Where could I find the list of Java compiler, and run time errors, and
    how to interpret them?

    Thanks.
    =========
     
    AnonymousFC4, Jul 28, 2005
    #1
    1. Advertising

  2. AnonymousFC4 wrote:
    > Hello:
    > This is very simple question... but the answer is not obvious to me!
    > I am trying to compile and run very simple "hello World" kid, java
    > programs.... and I am running into problems.
    >
    > I am having errors messages, bnoth at compile (for some programs), and run
    > time.... and they are so far quite cryptic to me.
    >
    > For info:
    > -------------
    > $1 rpm -qa java*
    > java-1_5_0-sun-1.5.0_01-5
    > java_cup-manual-0.10-0.k.1jpp_2fc
    > java_cup-javadoc-0.10-0.k.1jpp_2fc
    > java-1.4.2-gcj-compat-1.4.2.0-40jpp_31rh.FC4.1
    > java-1.4.2-gcj-compat-devel-1.4.2.0-40jpp_31rh.FC4.1
    > java_cup-0.10-0.k.1jpp_2fc
    > java-1.4.2-gcj-compat-src-1.4.2.0-40jpp_31rh.FC4.1
    > -------------
    >
    > I have installed the Java run time engine as 1.5, but the rest is all 1.4,
    > this could explain some problems (not the compile): I imagine the byte code
    > generated by the compiler 1.4 is incompatible with the JRE (1.5)....
    >
    > Q1: Where could I find the proper RPMS for FC4 Java 1.5 install ?
    > I (ave read thatSUN has problems).
    >
    > Q2: Where could I find the list of Java compiler, and run time errors, and
    > how to interpret them?
    >
    > Thanks.
    > =========
    >


    Go to the Sun web site, java.sun.com, and download the 1.5 SDK for
    Linux. You can use the rpm version if you don't have whatever it is
    installed in Linux that interferes with it. My laptop has a normal
    installation and it works fine. Otherwise use the non-rpm version and
    install it completely. Set up the $PATH and you should be good to go.


    --

    Knute Johnson
    email s/nospam/knute/
     
    Knute Johnson, Jul 28, 2005
    #2
    1. Advertising

  3. AnonymousFC4

    AnonymousFC4 Guest

    Knute:
    could not find the 1.5 SDK for Linux on the java.sun.com
    Could it also be called JDK ?

    Knute Johnson wrote:

    > Go to the Sun web site, java.sun.com, and download the 1.5 SDK for
    > Linux. You can use the rpm version if you don't have whatever it is
    > installed in Linux that interferes with it. My laptop has a normal
    > installation and it works fine. Otherwise use the non-rpm version and
    > install it completely. Set up the $PATH and you should be good to go.
    >
    >
     
    AnonymousFC4, Jul 28, 2005
    #3
  4. AnonymousFC4 wrote:

    > Knute:
    > could not find the 1.5 SDK for Linux on the java.sun.com
    > Could it also be called JDK ?
    >
    > Knute Johnson wrote:
    >
    >
    >>Go to the Sun web site, java.sun.com, and download the 1.5 SDK for
    >>Linux. You can use the rpm version if you don't have whatever it is
    >>installed in Linux that interferes with it. My laptop has a normal
    >>installation and it works fine. Otherwise use the non-rpm version and
    >>install it completely. Set up the $PATH and you should be good to go.
    >>
    >>

    >
    >


    That's it. They've changed the name that's all.

    --

    Knute Johnson
    email s/nospam/knute/
     
    Knute Johnson, Jul 29, 2005
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Paul Watson
    Replies:
    1
    Views:
    349
    Paul Watson
    Nov 15, 2005
  2. js
    Replies:
    2
    Views:
    1,502
  3. Peter

    Very very very basic question

    Peter, Feb 8, 2005, in forum: C Programming
    Replies:
    14
    Views:
    549
    Dave Thompson
    Feb 14, 2005
  4. Philip Rhoades
    Replies:
    3
    Views:
    112
    Oliver Andrich
    Jan 6, 2006
  5. Lance Squire
    Replies:
    22
    Views:
    347
    Lance Squire
    Aug 8, 2006
Loading...

Share This Page