Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

After installed JDK7, I disabled Java 1.6 in Java Preferences. Then I found the system cannot launch jars by new JDK 1.7, so I want to reenable 1.6, but I cannot relaunch preference again, it told me No compatible version of Java 1.5+ is available.

What should I do to bring it back?

share|improve this question
    
What does java -version show in Terminal? –  Mark Feb 27 '13 at 11:13
    
@Mark java version "1.7.0_15" Java(TM) SE Runtime Environment (build 1.7.0_15-b03) Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode) –  Shisoft Mar 1 '13 at 4:22
    
What does the Java control panel in System Preferences and what exactly do you mean by " system cannot launch jars" –  Mark Mar 1 '13 at 9:58
    
@Mark When I launch Java applications like umongo, it appears 'No compatible version of Java 1.6+ is available.' –  Shisoft Mar 4 '13 at 9:33
    
Is the issue just packaged java .apps or running jars from the command line as well? –  Mark Mar 4 '13 at 10:27

1 Answer 1

up vote 1 down vote accepted

This is a partial answer and will need adding to, mainly to show the change in Info.plist and an official reference for it.

It seems (from this blog) that the structure or the Info.plist in running packaged Java apps has changed. The blog says in Mountain Lion but I would have the same issue in Lion, the issue is the change in Java.

Thus I can see two ways of running pakaged apps

  1. Install java 1.6 from Apple (running Mongo.app uses this one for me)
  2. Repackage the app using the suggested AppBundler
share|improve this answer
    
Please, do you have a link for Mongo.app? And do you suggest repackaging Apple's outdated Java Preferences.app? –  Graham Perrin May 26 '13 at 5:43
    
Do you mean UMongo? –  Graham Perrin May 26 '13 at 5:51
    
@GrahamPerrin - a misunderstanding I could not find umongo as in the OP's question but could find Mongo.app - now it is the other way round. Mountain Lion says Umongo.app is damaged and won't run. The answer is the same I think as Mongo.app was a packaged Java app –  Mark May 26 '13 at 10:01

Your Answer

 
discard

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.