Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 949145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:21:33+00:00 2026-05-15T23:21:33+00:00

Assume I am compiling the JDK from source downloaded from Oracle. Now the JDK

  • 0

Assume I am compiling the JDK from source downloaded from Oracle.

Now the JDK is extracted into /opt/oracle/jdk/

I am exporting the JAVA_HOME and the path environment variable in /etc/profile.

Is it the recommended way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T23:21:34+00:00Added an answer on May 15, 2026 at 11:21 pm

    I am exporting the JAVA_HOME and the path environment variable in /etc/profile.

    That’s one way to do it. But consider that different users (or different applications) on the machine may need to use different Java installations. So other options are for users to set the environment variables in their personal shell profiles, and for applications to set them in wrapper scripts, “init.d” scripts or whatever.

    There is no single “right” way to do this. Pick a way that best fits your needs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Assume I have a sample source file, test.c, which I am compiling like so:
Assume I have an enumerable object enum and now I want to get the
Comparing the HashMap and Hashtable source code in JDK 1.6, I saw the below
Related to this question . What's the process for compiling a C program (assume
I recently compiled Allegro-5.0 from source (following the instructions from the wiki). I didn't
While cross-compiling GLib 2.32.4 with Mingw-w64 for Win32, I ran into the following error:
Assume class A with methods M1 and M2 has low coupling with other classes
What would be an elegant way of comparing 2 symbolic links in Unix? Assume
Assume I have two tables, Student Test Id Name TestId Type StudentId -- ----
Assume I have the following ; def test(): while 1: a = b time.sleep(60)

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.