Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Installing Java on FreeBSD with out root access

Posted on 2003-03-24
Medium Priority
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- : 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.
Question by:JavaWizard
  • 2

Accepted Solution

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.
for how to do this.

Author Comment

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?    

Expert Comment

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.

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
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

578 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