Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to execute a java program inside my debootstrap-chroot on an ubuntu machine for which I need to have java installed inside the chroot jail. I tried to install it using :

 apt-get install openjdk-6-jdk

but it gives an error:

"perl: warning: Setting locale failed"

How can I fix this ? or is there a better way ?

share|improve this question

migrated from stackoverflow.com Aug 16 '12 at 22:49

This question came from our site for professional and enthusiast programmers.

1 Answer 1

I got this solved , you just need to mount the /proc filesystem inside the chroot :

sudo mount -o bind /proc /chroot/proc

then inside chroot , install java

#install java
apt-get install oracle-java7-installer
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.