Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed ubuntu 12-04 virtually using oracle virtual box. I have installed jdk on windows. Is it possible to use the same jdk for ubuntu or i will have to install jdk seperatley for ubuntu?

share|improve this question
up vote 1 down vote accepted

Windows executables don't run natively on Linux platform. You can try to execute them with wine once you have shared the JDK directory of Windows with the Virtual Machine, but that'd again require you to install wine on the Ubuntu VM, so why not install the OpenJDK from Ubuntu Software centre or the Oracle's JDK for Linux instead in Ubuntu?

share|improve this answer
Thanks for the response :) – baig772 Jun 5 '12 at 10:57

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.