Java Development Kit (JDK) is essential for developing Java applications on your computer. JDK consists of many tools which can make your development easy and comfortable, especially when you do not have an Integrated Development Environment (IDE) such as Eclipse or NetBeans.
Here, I will mention about setting up JDK on CentOS 64 bit Operating System. However, the steps of installation are common on most of the Linux flavors.
Steps:
- Visit Oracle website to download the installation file.
- Click on the "Download" button at the JDK section to download the latest release of JDK. If you are looking for a previous version of JDK, you can visit the "Previous Releases" section on the same page. If you could not locate the section, you can search for "Previous" keyword on the page using the Ctrl + F key combination supported by most browsers.
- Accept the license agreement and choose the download. Determine your Operating System architecture bit length by executing getconf LONG_BIT or uname -m command on console. CentOS uses RPM based package management. Hence, you can download either .rpm or the zipped package. The steps of path configuration varies with the kind of package you choose.
- Follow the below steps according to the package you have downloaded:
RPM Installation:
- Switch to root user using su command.
- Copy the downloaded file to a location or navigate to the directory.
- Use rpm -ivh jdk<version>-<XXbit>.rpm to start the installation.
While installing JDK 7, you may find the errors being displayed as in the above image. These can be ignored. You can verify the installation using the java -version command and you are done.
Compressed Package Installation (tar.gz):
- Execute su command to switch to root user.
- Use tar <download-path>/<jdk<version>-<XXbit>.tar.gz -C /usr/java to extract the contents to the installation location. If /usr/java does not exist, you may create the directory using mkdir /usr/java.
- Once extracted the contents, you are done with the basic installation. You can follow the section to set the PATH environmental variable.
Binary File Installation:
Packages are available with .bin extension. They can be installed by executing them from the shell.
- Switch to root user with su.
- Copy the installation file to a location.
- Add execution permission to the file using chmod u+x jdk<version>-<XXbit>.bin command.
- Execute the file using shell.
- Follow the prompts for installation.
- Move the installation folder to /usr/java. Create the folder if it does not exist.
- Follow the steps in the section to set the PATH variable.
Setting PATH variable:
While installing the package other than from rpm, you will need to set the PATH environmental variable to run the java development tools from console. Extra care should be taken while performing the steps below.
- Copy the path where you have java installed; remember to omit the '/' at the end. Usually on /usr/java/jdk<version>. This becomes the path for JAVA_HOME environmental variable.
- Edit /etc/profile file using an editor such as vi to set the PATH variable for all users, on their log in. Locate the section where the PATH variable is exported.
- Add line defining JAVA_HOME, append $JAVA_HOME/bin to PATH variable and include JAVA_HOME to the export command.
- Save the file and exit the editor.
- Source the file to reflect the changes in the current console window.
- Verify if java command works.
Nice article thanks for sharing
ReplyDeleteBusiness Loan | Apply Online Business loans at low interest rates-INSTAEMI.COM. Business loan, business loan interest rates,loan for business, unsecured business loans,small business loans,bad credit business loans,business loans in india,business loans for women,business loan application form
Nice article thanks for sharing
ReplyDeleteBusiness Loan | Apply Online Business loans at low interest rates-INSTAEMI.COM. Business loan, business loan interest rates,loan for business, unsecured business loans,small business loans,bad credit business loans,business loans in india,business loans for women,business loan application form
Nice article thanks for sharing
ReplyDeleteHome loan | Best And Cheap Rates on Home Loan - Apply Online at InstaEmi.com . home loan,housing loan,home loan interest rates, home equity loan,home loan information, home improvement loans,home loan amortization calculator,home loan eligibility check, home loan best rates,best loan rates,best rates for home loans,best online home loans,loans with best interest rates,the best home loan,best rates on home loans, apply for a house loan online,a home loan,cheap rate home loan,what is the best home loan,best bank home loans,best interest rates home loans,cheapest home loan rates,where to get the
Best home loan
Nice article thanks for sharing
ReplyDeleteHome loan | Best And Cheap Rates on Home Loan - Apply Online at InstaEmi.com . home loan,housing loan,home loan interest rates, home equity loan,home loan information, home improvement loans,home loan amortization calculator,home loan eligibility check, home loan best rates,best loan rates,best rates for home loans,best online home loans,loans with best interest rates,the best home loan,best rates on home loans, apply for a house loan online,a home loan,cheap rate home loan,what is the best home loan,best bank home loans,best interest rates home loans,cheapest home loan rates,where to get the
Best home loan
Nice article thanks for sharing
ReplyDeleteCredit cards | Compare And Choose Best Credit Card from Multiple Banks-Apply online at INSTAEMI.COM. Credit cards, credit card payment, credit card apply, bank credit cards,0 credit cards, low interest credit cards, rewards credit cards, credit cards with no annual fees, credit cards transfer, credit card application, online credit card apply, apply online credit, apply online for credit, online card apply, apply for a card online
Nice article thanks for sharing
ReplyDeleteCredit cards | Compare And Choose Best Credit Card from Multiple Banks-Apply online at INSTAEMI.COM. Credit cards, credit card payment, credit card apply, bank credit cards,0 credit cards, low interest credit cards, rewards credit cards, credit cards with no annual fees, credit cards transfer, credit card application, online credit card apply, apply online credit, apply online for credit, online card apply, apply for a card online
Nice article thanks for sharing
ReplyDeleteBalance Transfer | Transfer Home Loans or Personal Loans And Save on your EMI-Apply Online at InstaEmi.com. Balance Transfer, Personal loan balance transfer, Business loan balance transfer, credit card balance transfer, balance transfer credit card application, balance transfer personal loan, balance transfer loan, balance transfer home loan
Nice article thanks for sharing
ReplyDeleteProperty Loan | Mortgage Loan | Loan Against Property - Apply online at InstaEmi.com. Mortgage loan, property loan, property loan interest rates,loan against property, property loan eligibility, property loan without income proof, property loan advisor, property loan bad credit, property loan application form
Nice article thanks for sharing
ReplyDeleteProfessional Loans for Doctor, CA, Architect | Self Employed loans with low interest rates-Apply online at InstaEmi.com. Professional Loans for Doctor's, professional loan, professional loan interest rates, professional loan for engineers, professional loan for doctors, professional loan for chartered accountant, professional loan advisors network
Nice article thanks for sharing
ReplyDeleteProfessional Loans for Doctor, CA, Architect | Self Employed loans with low interest rates-Apply online at InstaEmi.com. Professional Loans for Doctor's, professional loan, professional loan interest rates, professional loan for engineers, professional loan for doctors, professional loan for chartered accountant, professional loan advisors network
Nice article thanks for sharing
ReplyDeleteProfessional Loans for Doctor, CA, Architect | Self Employed loans with low interest rates-Apply online at InstaEmi.com. Professional Loans for Doctor's, professional loan, professional loan interest rates, professional loan for engineers, professional loan for doctors, professional loan for chartered accountant, professional loan advisors network
Nice article thanks for sharing
ReplyDeleteOur unique Peer-to-Peer lending program lets you borrow directly from investor-Apply Online at InstaEmi.com. peer to peer lending, p2p lending, peer to peer loans, peer to peer loans no credit check, peer to peer loans for bad credit, peer to peer loan investing, peer to peer loan rates
Nice article thanks for sharing
ReplyDeleteOur unique Peer-to-Peer lending program lets you borrow directly from investor-Apply Online at InstaEmi.com. peer to peer lending, p2p lending, peer to peer loans, peer to peer loans no credit check, peer to peer loans for bad credit, peer to peer loan investing, peer to peer loan rates
mutual funds
ReplyDeleteNice article thanks for sharing
Compare and Buy Best Performing Mutual Funds, Build wealth over long period-Apply Online at InstaEmi.com. mutual fund,investment,stock market, best performing mutual funds, mutual funds nav,mutual funds types, mutual funds returns, mutual funds sip, mutual funds advisor, mutual funds best returns, best performing investments, best investment in mutual fund
Nice article thanks for sharing
ReplyDeleteLooking for Tax Free or Government Bonds - Apply online at InstaEMI.com. bonds, government bond, bond yield, bonds types, bonds types, tax free bonds taxation, tax free bond funds, tax free bonds interest rates, tax free government bonds
Nice article thanks for sharing
ReplyDeleteLooking for Tax Free or Government Bonds - Apply online at InstaEMI.com. bonds, government bond, bond yield, bonds types, bonds types, tax free bonds taxation, tax free bond funds, tax free bonds interest rates, tax free government bonds
Nice article thanks for sharing
ReplyDeleteNational Pension System |retirement pension account for every Indian-Apply online at InstaEMI.com. national pension scheme,nps scheme,nps calculator,nps account, national pension system registration form ,national pension system account, national pension system apply, national pension system login,nps scheme,nps online
Nice article thanks for sharing
ReplyDeleteNational Pension System |retirement pension account for every Indian-Apply online at InstaEMI.com. national pension scheme,nps scheme,nps calculator,nps account, national pension system registration form ,national pension system account, national pension system apply, national pension system login,nps scheme,nps online
, what is a atal pension yojanaNice article thanks for sharing
ReplyDeleteAtal Pension Yojana | Guaranteed PENSION After Retirement-Apply online at InstaEMI.com. atal pension yojana,pradhan mantri pension yojana,atal pension scheme, atal pension yojana form,atal pension yojana details, atal pension yojana account, atal pension yojana apply online
, what is a atal pension yojanaNice article thanks for sharing
ReplyDeleteAtal Pension Yojana | Guaranteed PENSION After Retirement-Apply online at InstaEMI.com. atal pension yojana,pradhan mantri pension yojana,atal pension scheme, atal pension yojana form,atal pension yojana details, atal pension yojana account, atal pension yojana apply online
Nice article thanks for sharing
ReplyDeleteMoney Managers |India’s First Personal Finance Management Portal- Apply online at InstaEMI.com. money manager,how to manage money, money management, money managers india,money managers advisory, money managers near me, money managers, money management tips, money management activities
what is a atal pension yojanaNice article thanks for sharing
ReplyDeleteAtal Pension Yojana | Guaranteed PENSION After Retirement-Apply online at InstaEMI.com. atal pension yojana,pradhan mantri pension yojana,atal pension scheme, atal pension yojana form,atal pension yojana details, atal pension yojana account, atal pension yojana apply online
what is a atal pension yojanaNice article thanks for sharing
ReplyDeleteAtal Pension Yojana | Guaranteed PENSION After Retirement-Apply online at InstaEMI.com. atal pension yojana,pradhan mantri pension yojana,atal pension scheme, atal pension yojana form,atal pension yojana details, atal pension yojana account, atal pension yojana apply online
what is a atal pension yojanaNice article thanks for sharing
ReplyDeleteAtal Pension Yojana | Guaranteed PENSION After Retirement-Apply online at InstaEMI.com. atal pension yojana,pradhan mantri pension yojana,atal pension scheme, atal pension yojana form,atal pension yojana details, atal pension yojana account, atal pension yojana apply online
Nice article thanks for sharing
ReplyDeleteKnow Your Borrowing Costs, EMI And Eligibility For Personal Loan,home loan by loan calculator-Apply online at InstaEMI.com. loan calculator,home loan calculator, personal loan calculator, financial calculator, amortization, loan calculator online, loan calculator online,emi calculator home loan, personal loan calculator,home loan calculator with prepayment
Nice article thanks for sharing
ReplyDeleteBeing confused by Tax rules and have questions on Taxation Check tax calculation-at InstaEMI.com. tax calculator, online tax calculator, payroll calculator, calculate tax, tax calculator India, tax calculator by 2017-18, tax calculator 2016-17 india,a tax calculator online, a income tax calculator, a free tax calculator
Nice article thanks for sharing
ReplyDeleteFinancial Planning | wealth management | get expertise solutions at InstaEMI.com. financial planner, financial advisor, financial consultant, wealth management, financial planning and analysis, financial planning process, financial planning calculator, financial planning and wealth management, financial planning and control
Nice article thanks for sharing
ReplyDeleteFinancial Planning | wealth management | get expertise solutions at InstaEMI.com. financial planner, financial advisor, financial consultant, wealth management, financial planning and analysis, financial planning process, financial planning calculator, financial planning and wealth management, financial planning and control
Nice article thanks for sharing
ReplyDeleteHealth insurance | Medical insurance | INSURANCE PLANNING at InstaEMI.com. life insurance, term insurance, insurance policy, life insurance plans, life insurance plans, life insurance premium, life insurance agent, life insurance advisor, life insurance buy online, life insurance companies in India, whole life insurance, how do you get life insurance, apply for life insurance online, life insurance India compare, compare the life insurance, life insurance policy compare, life insurance covers what,
Nice article thanks for sharing
ReplyDeleteHealth insurance | Medical insurance | INSURANCE PLANNING at InstaEMI.com. life insurance, term insurance, insurance policy, life insurance plans, life insurance plans, life insurance premium, life insurance agent, life insurance advisor, life insurance buy online, life insurance companies in India, whole life insurance, how do you get life insurance, apply for life insurance online, life insurance India compare, compare the life insurance, life insurance policy compare, life insurance covers what,
Nice article thanks for sharing.
ReplyDeletepradhanmantri suraksha bima yojana |2 lakhs accidental safety cover for Indians at the lowest premium. pmsby,pradhanmantri suraksha bima yojana, suraksha, pradhan mantri suraksha bima yojana claim form,pradhan mantri suraksha bima yojana application form,pradhan mantri suraksha bima yojana apply online, pmsby application form
Nice article thanks for sharing.
ReplyDeletepradhanmantri suraksha bima yojana |2 lakhs accidental safety cover for Indians at the lowest premium. pmsby,pradhanmantri suraksha bima yojana, suraksha, pradhan mantri suraksha bima yojana claim form,pradhan mantri suraksha bima yojana application form,pradhan mantri suraksha bima yojana apply online, pmsby application form
Nice article thanks for sharing.
ReplyDeletepradhanmantri suraksha bima yojana |2 lakhs accidental safety cover for Indians at the lowest premium. pmsby,pradhanmantri suraksha bima yojana, suraksha, pradhan mantri suraksha bima yojana claim form,pradhan mantri suraksha bima yojana application form,pradhan mantri suraksha bima yojana apply online, pmsby application form
Nice article thanks for sharing
ReplyDeletePradhanmantri jan dhan yojana | Bank Account For Every Household In the country. jan dhan yojana,pmjdy,pm jan dhan yojana,jan dhan account, pradhan mantri jan dhan yojana form,pradhan mantri jan dhan yojana online account opening, an dhan yojana account opening online, open a jan dhan yojana account
Nice article thanks for sharing
ReplyDeletePradhanmantri jan dhan yojana | Bank Account For Every Household In the country. jan dhan yojana,pmjdy,pm jan dhan yojana,jan dhan account, pradhan mantri jan dhan yojana form,pradhan mantri jan dhan yojana online account opening, an dhan yojana account opening online, open a jan dhan yojana account
Nice article thanks for sharing
ReplyDeletePradhanmantri jan dhan yojana | Bank Account For Every Household In the country. jan dhan yojana,pmjdy,pm jan dhan yojana,jan dhan account, pradhan mantri jan dhan yojana form,pradhan mantri jan dhan yojana online account opening, an dhan yojana account opening online, open a jan dhan yojana account
Nice article thanks for sharing
ReplyDeleteCompare Rate of Returns of Corporate Fixed Deposits And Apply online at InstaEMI.com. fixed deposit, fixed deposit rates ,fd interest rates ,fd calculator, fixed deposits in post office, fixed deposits account, fixed deposits rates, fixed deposits best rates, fixed deposits rate of interest in India
Nice article thanks for sharing
ReplyDeleteCompare Rate of Returns of Corporate Fixed Deposits And Apply online at InstaEMI.com. fixed deposit, fixed deposit rates ,fd interest rates ,fd calculator, fixed deposits in post office, fixed deposits account, fixed deposits rates, fixed deposits best rates, fixed deposits rate of interest in India
Nice article thanks for sharing
ReplyDeleteReal estate| Real Estates fund managing at InstaEMI.com. real estate investing,riet,real estate investing , real estate properties sold, real estate properties in bangalore,real estate houses for sale, real estate properties for rent, real estate investing ,investment management ,property investment ,BLR-WHT-PRK, real estate fund management, real estate investments in india,real estate investments and taxes, real estates agents, real estates business
Thanks for sharing information to our knowledge, it helps me plenty keep sharing…
ReplyDeleteBig Data Training Institute in Pune
Hadoop Training in Pune
This concept is a good way to enhance knowledge. thanks for sharing..
ReplyDeleteData Science Course in Pune
Python Classes in Pune
Usually, I never comment on blogs but your article is so convincing that I never stop myself to say something about it. You’re doing a great job Man, Keep it up.
ReplyDeletebuy logo online
This is most informative and also this post most user-friendly and super navigation to all posts.
ReplyDeleteData Science Course in Pune
Python Classes in Pune
Best AWS Training in Pune
Best RPA Training in Pune