Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 11-11-2009, 11:41 AM   #1
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?


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, 11:51 AM   #2
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
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.


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

All times are GMT -5. The time now is 10:04 AM.

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