LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-01-2014, 04:34 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Question Deploying Java JDK to Server


I've got a CentOS 6.5 application server that requires OpenJDK installed on it before JBoss can be manually loaded. I've never install Java / JBoss before and while I can just do the following and call it a day:

Code:
yum install java-1.7.0-openjdk.x86_64
I would like to download the tarball of this and install it manually. Currently the tarball is located in /tmp/ and I would like to know where in the Linux file structure hiarchy is it appropriate for me to install the JDK package in? I assume it goes "usually in /some/path/commonly/used" and then I can update my users .bashrc and add the path and export JAVA_HOME or something to that nature. Can anyone please help me struggling to do this correctly or guide me in the right direction?

Looking for help on where I extract this tarball and install the OpenJDK package and then reference it so my users can all access it.

Thank you!
 
Old 10-02-2014, 04:14 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Please use # yum install java-1.7.0-openjdk.x86_64

There are too many dependencies and automatic settings
that you will miss with any kind of manual install.
----

Besides that, the /tmp/ directory is not meant to be used.
Except for the processes that are using /tmp/ .
Using the /tmp/ folder for other things will alter the permissions.

The tmp folder to use for {building / storing "manaual" tasks}
is : /home/<name>/tmp/ ( Or any folder in /home/<name>/ ).

-
 
1 members found this post helpful.
Old 10-02-2014, 07:28 AM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Thank you for the info about using /tmp and it altering permissions which obviously is not recommended / bad. I've installed OpenJDK using Yum to avoid dependency hell as well as creating a JAVA_HOME variable in my users ~/.bashrc. I never know / understand when I should add / append something to .bashrc versus .bash_profile.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Java Woes: A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available ... chytraeus Slackware 10 11-27-2010 10:04 AM
Java JDK idgeitman Linux - Newbie 4 01-21-2010 02:53 PM
Eclipse: Deploying Java Applications help Mega Man X Programming 23 09-12-2006 07:49 PM
Java problems, JDK 1.5.x, server crashes/hangs InJesus Programming 4 10-28-2005 04:16 PM
Deploying Java program bbresc512 Programming 8 05-05-2004 07:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration