LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-11-2009, 12:41 PM   #1
SteveTheRed
LQ Newbie
 
Registered: Sep 2008
Location: Indianapolis
Distribution: Ubuntu
Posts: 1

Rep: Reputation: 0
Can I (non-root) change the default Java for just my account to my own local java?


Hello,

I have a shell account on one of my university's servers, so I don't have root access. The only version of java currently available is the gnu version, but I need the sun version. I'd like to put everything in /home/me/usr/bin and then change that to my default java compiler. Is that possible without root access?

The server is running "Red Hat Enterprise Linux Server release 5.3 (Tikanga)" the kernel version is 2.6.18-128.1.10 the current java version is "java version "1.4.2" gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-44)"

If anyone could point me in the right direction, or even tell me why this would be a Really Bad Idea, I would appreciate it. Thanks.
 
Old 11-11-2009, 12:51 PM   #2
MensaWater
Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,028
Blog Entries: 5

Rep: Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791Reputation: 791
It is common to see local applications running their own supplied version of Java and even Apache so I'd say the basic answer to your "is it possible" question is yes.

As to whether or not you have permissions to download and install such a local version that depends on the way your server is setup. You likely don't have permission to run rpm as a non-root user so you'd need to get something like a gzipped tar bundle (usually these have a tar.gz or .tgz extension on the end).

By the way there can be multiple Java versions installed on the OS so you might be able to get your system administrator to install the version you need and just point to it. In fact it may already be there and you just need to point to it. Check to see what is in /usr/lib/java.
 
  


Reply

Tags
java, nonroot


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how can i run a java program with root privilages from a non-root account? joyjjs Linux - Software 1 08-04-2009 01:14 AM
[SOLVED] Can launch Java webapp from rc.local navigat0 Linux - Server 2 07-01-2009 11:48 AM
How do I change the default settings for the guest account? win32sux Ubuntu 5 12-18-2008 06:13 PM
NIS vs Local account password change thllgo Linux - Server 2 07-17-2008 05:47 PM
Mainly out of curiousity, is it possible to change the username of the root account? microsoft/linux Debian 3 07-21-2005 04:11 PM


All times are GMT -5. The time now is 05:32 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration