Java JDK installation

Denys Vlasenko vda.linux at googlemail.com
Thu Feb 19 11:48:34 UTC 2015


On Thu, Feb 19, 2015 at 12:42 AM, Camil Staps <info at camilstaps.nl> wrote:
> Dear experts,
>
> I'm having problems installing the Java JDK in a busybox (which is in an LXC
> container on an Ubuntu Server 14.04).
>
> In a web application I'm developing, users will be able to upload java code
> and I will need to compile and run that. For security reasons, I'd like to
> that inside an LXC container, and for footprint reasons I'd like that to be
> a busybox. So, I created a busybox container successfully with:
>
>     lxc-create -n my-box -t busybox
>
> It's up and running fine. Then, I downloaded jdk-8u31-linux-i586.rpm from
> [here](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
> and ran `rpm -i jdk-8u31-linux-i586.rpm`, which returned no output but
> created `/usr/java/jdk1.8.0_31` which all looks good.
>
> However, when I go to `/usr/java/jdk1.8.0_31/bin` and run `./javac
> -version`, I get:
>
>     /usr/java/jdk1.8.0_31/bin # ./javac -version
>     Error occurred during initialization of VM
>     java/lang/NoClassDefFoundError: java/lang/Object

Please post a strace log of the above command


More information about the busybox mailing list