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 java-7-openjdk and it works well, but I need to use JavaFX in a project so I download "Java SE" (all packages) form Oracle and I store them inside/usr/lib/jvm/jdk1.7.0_45.

Now I want to execute Ensemble.jar that is a set of examples of JavaFX.

I try java -jar Ensemble.jar but it doesn't work because by default Ubuntu doesn't use my Oracle packages.

Can I execute Ensemble.jar using not the default Java but my donwloaded packets??

share|improve this question

I find a solution:

mimeopen Ensemble.jar 

the above command display some options.

You have to select other and after use the path to your java folder, in this case /usr/lib/jvm/jdk1.7.0_45/lib/jexec

share|improve this answer

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.