module load java on CentOS 6.2

Posted on 2012-09-15
Last Modified: 2012-09-16
I have a user trying to port old code (scripts) and one of the lines calls "module load java". I can't fins a java module. Is there such a thing or is this a legacy issue?
Question by:mfsteve
    LVL 10

    Expert Comment

    Stupid question, do you have JRE/JDK installed? If yes, which version?
    Bash scripts shouldn't call "module load java" but "module load java/1.6.0u31" substitute 1.6.0u31 with your installed version.

    Author Comment

    I have JRE and JDK installed in opt (I installed them). A search for a module directory came up with nothing. module available lists the vendor supplied modules in /opt and this is reflected in MODULEPATH and MODULEHOME. module list comes back with none loaded.

    So I guess the better question is: Where is the java module?
    LVL 86

    Accepted Solution

    'Modules' and java have little in common. There are native libraries involved in Java but they would normally never need to be loaded explicitly. That would happen automatically when the java executable is run
    LVL 86

    Expert Comment


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
    Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
    Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
    Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now