?
Solved

Installing Java on FreeBSD with out root access

Posted on 2003-03-24
5
Medium Priority
?
193 Views
Last Modified: 2013-12-16
I have a virtual server account with all of this stuff http://servers.digitaldaze.com/   .....
the problem is I don't have root access and I am told that you can install java version 1.2.2 or greater with out root on this server. ...   I have run into many problems along the way, one being

===>  linux-jdk-1.3.1.03 : Your system is too old to use this bsd.port.mk. You need a fresh make world or an upgrade kit. Please go to http://www.FreeBSD.org/ports/ or a mirror site and follow the instructions.


which was solved by replacing the expected version in the bsd.port.mk file which i had installed under my $HOME/usr/ports/MK  .... etc ....   now when i build i'm getting an error saying it can not write to the /var/db/...... folder which is owned by root......  Now i don't care if i emmulate linux jdk or build native threads but I need some version of java available 1.2.2 or greater to run tomcat for my web services which you will notice is not listed in the pre-installed packages in the link at the top.  I'd prefer to install this with out root access.  My other option is to pay the hosting company to do a custom install for $$$.   thanks for the help in advance.
0
Comment
Question by:JavaWizard
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 9

Accepted Solution

by:
mglxxx earned 200 total points
ID: 8208639
You could try to do the install manually without
using the ports system.
Get a JDK from Sun which can be installed without
using rpm, e.g. the 'Linux self extracting file' for
JDK 1.3.1. Follow instructions to do the install.
Now you need to tell FreeBSD that the executable you
just installed are Linux executables.
See
http://www.experts-exchange.com/Operating_Systems/Unix/Unix_Setup/Q_20389087.html
for how to do this.
0
 

Author Comment

by:JavaWizard
ID: 8228074
Maybe i'm missing something but I thought that in order to use the linux emmulation for the linux jdk you need the javavmwrapper which it tried to install as one of the dependencies when building the port but failed because it couldn't write to /var/db/pkg because it was owned by root.     I have been told that it is possible to install all of this (the jdk, and tomcat) with out root access but i am doubtful.... maybe the question i should ask first is "Is this possible" and if so how?    
0
 
LVL 9

Expert Comment

by:mglxxx
ID: 8236746
I didn't install any JVM wrapper in order to make
the JDK (IBM's 1.3.1) work on FreeBSD. The main issue
is that you cannot use any installation mechanism which
uses the BSD (or Linux) package mechnism.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question