Thanks for your reply. Another user of this mailing list already
answered my question and fixed the problem. The details are found here:
http://stackoverflow.com/questions/11808829/jre-1-7-returns-java-lang-noclassdeffounderror-java-lang-object
I think he forgot to CC the group.
Thanks though!
On 19-02-15 12:48, Denys Vlasenko wrote:
On Thu, Feb 19, 2015 at 12:42 AM, Camil Staps <[email protected]> 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
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox