Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: Where oh where did they hide my Java compiler?

  1. #1
    Join Date
    Jul 2013
    Location
    Eight months of winter and four months of tough sledding: North Central Alberta
    Posts
    19

    Default Where oh where did they hide my Java compiler?

    Okay folks, I decided to try my hand at Java programming, but I can't seem to find Javac.
    I've got a shiny new OpenSuse 42.3 Leap installation on my laptop and everything would seem to indicate
    that I have Java-1.8.0_openjdk installed on my system as well. Does anyone have an idea where my Javac
    got to?

    Thanks

  2. #2
    Join Date
    Oct 2008
    Location
    Glasgow, Scotland
    Posts
    1,134

    Default Re: Where oh where did they hide my Java compiler?

    Code:
     >   zypper info java-1_8_0-openjdk
    
    java-1_8_0-openjdk 
    Description    :                                                           
        SUSE's implementation of the OpenJDK 7 runtime environment.
    
        It contains a Java virtual machine, runtime class libraries, and an
        Java application launcher that are necessary to run programs written in
        the Java programming language. It is not a development environment and
        does not contain development tools such as compilers and debuggers. For
        development tools, see the java-1_7_0-openjdk-devel package.
    
    
      >   zypper info java-1_8_0-openjdk
    
    java-1_8_0-openjdk-devel
    Description    :                                                               
        SUSE's implementation of the OpenJDK 7 Development Environment.
    
        It is a development environment for building applications, applets,
        and components using the Java programming language.
    ~Thank you for sharing an interesting problem.
    --
    slàinte mhath,
    rayH

  3. #3
    Join Date
    Jul 2013
    Location
    Eight months of winter and four months of tough sledding: North Central Alberta
    Posts
    19

    Default Re: Where oh where did they hide my Java compiler?

    Okay, I think I'm catching your drift, although I can't repeat your results exactly, I do get a confirmation
    of what you're saying - which is that I'm SOL with respect to a compiler since I only have the Runtime Environment.

    Well thanks for the help, I'm off to see about installing the Oracle JDK-9.0.4 since OpenSuse doesn't think I should be allowed
    to compile anything.

    Thanks again.

    Code:
    zypper info java-1_8_0-openjdk
    Loading repository data...
    Reading installed packages...
    
    
    Information for package java-1_8_0-openjdk:
    -------------------------------------------
    Repository     : openSUSE-Leap-42.3-Update            
    Name           : java-1_8_0-openjdk                   
    Version        : 1.8.0.161-21.1                       
    Arch           : x86_64                               
    Vendor         : openSUSE                             
    Installed Size : 565.7 KiB                            
    Installed      : Yes                                  
    Status         : up-to-date                           
    Source package : java-1_8_0-openjdk-1.8.0.161-21.1.src
    Summary        : OpenJDK 8 Runtime Environment        
    Description    :                                      
        The OpenJDK 8 runtime environment.

  4. #4
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,071

    Default Re: Where oh where did they hide my Java compiler?

    On Sun, 01 Apr 2018 01:56:01 +0000, xenrobia wrote:

    > Well thanks for the help, I'm off to see about installing the Oracle
    > JDK-9.0.4 since OpenSuse doesn't think I should be allowed to compile
    > anything.


    Just to be clear, it's Oracle who doesn't allow redistribution of the
    Java compiler. You have to get it from Oracle directly - they
    specifically don't permit redistribution in their license.

    Jim

    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

  5. #5
    Join Date
    Oct 2008
    Location
    Glasgow, Scotland
    Posts
    1,134

    Default Re: Where oh where did they hide my Java compiler?

    Quote Originally Posted by xenrobia View Post
    Okay, I think I'm catching your drift
    No! Me being obtuse, sorry.
    You were meant to read the package descriptions.
    Code:
     It [java-1_8_0-openjdk] is not a development environment and 
        doe s not contain development tools such as compilers and debuggers.For
        development tools, see the java-1_8_0-openjdk-devel package.
    To get the open-source Java Compiler you need to install the java-1_8_0-openjdk-devel package.
    ~Thank you for sharing an interesting problem.
    --
    slàinte mhath,
    rayH

  6. #6
    Join Date
    Jul 2013
    Location
    Eight months of winter and four months of tough sledding: North Central Alberta
    Posts
    19

    Default Re: Where oh where did they hide my Java compiler?

    Quote Originally Posted by eng-int View Post
    To get the open-source Java Compiler you need to install the java-1_8_0-openjdk-devel package.
    And you were correct to do so, because shortly after that I started snooping around Yast and to my wondrous surprise I actually
    located java-1_8_0-openjdk-devel package, did the installation and compiled a little program. But it did take a bit for me to find it.

    So it was more like me being obtuse, but I finally got the point.

    Thanks again for the help, Rob

  7. #7
    Join Date
    Jul 2013
    Location
    Eight months of winter and four months of tough sledding: North Central Alberta
    Posts
    19

    Default Re: Where oh where did they hide my Java compiler?

    Quote Originally Posted by hendersj View Post
    On Sun, 01 Apr 2018 01:56:01 +0000, xenrobia wrote:

    > Well thanks for the help, I'm off to see about installing the Oracle
    > JDK-9.0.4 since OpenSuse doesn't think I should be allowed to compile
    > anything.


    Just to be clear, it's Oracle who doesn't allow redistribution of the
    Java compiler. You have to get it from Oracle directly - they
    specifically don't permit redistribution in their license.

    Jim

    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C
    Darned Oracle... they don't want anyone to have any fun!!
    I don't think Google would disagree.

  8. #8
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,306
    Blog Entries
    2

    Default Re: Where oh where did they hide my Java compiler?

    Bottom line for those new to openjdk and Oracke Java...

    Despite the name "openjdk" it is <not> comparable to Oracke JDK.

    openjdk only provides the runtime so is comparable to Oracle JRE.

    If you want add-ons like javac which are in the Oracle JDK, for openjdk you need to install the openjdk-devel(or similarly named package for your openjdk version) as people found in this Forum thread.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  9. #9
    Join Date
    Jul 2013
    Location
    Eight months of winter and four months of tough sledding: North Central Alberta
    Posts
    19

    Default Re: Where oh where did they hide my Java compiler?

    Quote Originally Posted by tsu2 View Post
    Bottom line for those new to openjdk and Oracke Java...

    Despite the name "openjdk" it is <not> comparable to Oracke JDK.

    openjdk only provides the runtime so is comparable to Oracle JRE.

    If you want add-ons like javac which are in the Oracle JDK, for openjdk you need to install the openjdk-devel(or similarly named package for your openjdk version) as people found in this Forum thread.

    TSU
    Hello there Tsu2:
    I've been considering installing the Oracle JDK 9 for some of the new features offered, namely jshell and modules. You seem to have a good handle on the installation process so I thought I'd ask you
    a couple of questions, if you don't mind.

    1) Can I install Oracle JDK 9 along side my existing installation of the "java-1_8_0-openjdk and java-1_8_0-openjdk-devel" packages and keep my old installation as an Alternative?

    If I can do the above,

    2) Should I place my copy of jdk-9.0.4_linux-x64_bin.rpm in the same directory as java-1_8_0-openjdk? The current directory is root/usr/lib64/jvm/

    3) Considering that the original installation is an openjdk as opposed to the Oracle JDK should I still use the UPDATE installation command: rpm -Uvh jdk-9.minor.security.patch_linux-x64_bin.rpm

    4) Being that there is no patch level yet should the command be: rpm-Uvh jdk-9.0.4.0_linux-x64_bin.rpm or rpm-Uvh jdk-9.0.4_linux-x64_bin.rpm ?

    Thanks, Rob

  10. #10
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,306
    Blog Entries
    2

    Default Re: Where oh where did they hide my Java compiler?

    I haven't yet reviewed procedures for Oracle Java 9.

    for now, a <possible> guide would be the SDB: Installing Java
    But, it looks like it's current only up to Oracle Java 8.
    It also looks like the article has undergone a major re-write (organizing info) which was badly needed... With the many contributions since Oracle Java 7, the article was becoming very hard to follow.

    'Way back for Oracle SE JDK 7, I took all the steps described, made some significant modifications and created some scripts that enabled installation in less than a couple minutes (It literally took longer to download than to install). Without those scripts, it easily took over half an hour to install.

    I didn't create scripts for Oracle JDK 8 because of the major architectural changes in the new version and questions about what the new changes did that were unclear to me.

    It looks to me that the same person who created the steps published for Oracle SE JDK 7 that I modified likely created the steps now in the SDB (and accordingly will likely mean a half hour install again).

    I can take a look at the existing SDB again, look to see if they apply to the newest released Oracle SE JDK and then see if I can similarly re-create the scripts to make the install quick and simple, but will take some time.

    Be aware that the default installation of Oracle Java has historically been to over-write installed Java (whatever that might be). The SDB describes steps that install Oracle Java side by side (not over-writing) and then sets up update-alternatives to allow you to switch between any installed Java.

    So,
    Bottom line is that I can't answer your questions about Oracle 9 at the moment, but will after a little time...

    BTW -
    It looks like the current latest Oracle SE JDK is version 10.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •