Mac OS X 10.9
java -version
java version "1.7.0_17"
Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
jEdit 5.1.0
Installed Plugins:
BufferTabs
Common Controls
FTP
Mac OS X Support
QuickNotepad
How it happened:
I had another version of jEdit (I guess jEdit 4) and Java 6 before and my jEdit was working fine.
Then I installed Java 7 but when I tried to run the jEdit it brought up an alert saying it needs Java SE 6 to run!
I did some search in the net, and it seems that jEdit 4.5 (and I guess jEdit 5.1 too!) should not have any issue with Java 7, so I got rid of the old version, downloaded jEdit 5.1.0 and installed it. I expected that it should work and don't bring up that complain alert BUT it didn't work and brought up *To open "jEdit.app," you need a Java SE 6 runtime.* complain again, it offers to install Java 6 too and if I select *Not now* (because I need Java 7) it closes the application.
I still could run jEdit using this command, but I can't use Ctrl+C & Ctrl+V shortcuts for copy and paste!
java -jar /Applications/jEdit.app/Contents/Resources/Java/jedit.jar
the first time that I ran this command, it brought up plugin manager up and said some of plugins (including Mac OS X Support) needs to be updated, and so I updated them.
I don't think Activity log has any useful information in this case, because program is closed before it got started.
ok reopening the ticket.
3563983 describes what happens on OSX 10.8
this ticket describes what happens with OSX 10.9.
When the Mac installer is replaced with a newer one, both issues will be resolved at the same time.
Looks like the app starter needs to use this to get the JAVA_HOME value:
/usr/libexec/java_home -v 1.7
http://stackoverflow.com/questions/15826202/where-is-java-7-installed-on-mac-os-x
Hi folks,
this is related to the native Mac OS X native launcher which relies on the existence of Apple JDK. Starting with JDK 1.7 the Oracle JDK is used which uses different installation locations
Cheers,
Siegfried Goeschl
Last edit: Siegfried GOESCHL 2014-03-13
See also https://sourceforge.net/p/jedit/patches/510/ where I've had a solution already last summer. Alan Ezust has applied most of that patch already, but some questions about the actual application launcher were still pending.
In the meantime there might have been some updates on external application launcher projects -- I am presently not on latest versions of everything.
I am still using that app launcher, but it fails to find newer versions of Java 7 after updates, so I have to manually fix it up each time.
I was hoping a better solution (one that can fix itself after a java upgrade) would manifest.
Would it not be a solution to use the same method that BlueJ (www.bluej.org) uses, with the Oracle launcher stub and an included JDK inside the app?
Here is a post from David DeHaven david.dehaven@oracle.com
that was made to dev@appbundler.java.net about the replacement for appbundler that oracle is using now:
There is no separate project for the javapackager, it's part of OpenJFX. =
The source is in rt/modules/fxpackager. If you want to build it you need =
to follow the directions to build OpenJFX.
If you just want to use it, it's been included in the JDK since JavaFX =
was first cobundled with Java SE:
=
/Library/Java/JavaVirtualMachines/jdk<version>.jdk/Contents/Home/bin/javaf=
xpackager
=
/Library/Java/JavaVirtualMachines/jdk<version>.jdk/Contents/Home/bin/javap=
ackager
The documentation is more or less here:
http://docs.oracle.com/javafx/2/deployment/packager.htm
=
http://docs.oracle.com/javafx/2/deployment/javafx_ant_task_reference.htm#C=
IABIFCI
http://docs.oracle.com/javafx/2/deployment/self-contained-packaging.htm
Please note that these are all JavaFX 2.2 related and not current for 8, =
which will be updated as there have been many changes recently.
Also run javafxpackager on the command line for help or read the man =
page included in the JDK.
Hi folks,
I got the native launcher for JDK 7 running on Mac OS and Windows for Apache JSPWiki and will provide a patch for Jedit
Siegfried Goeschl
I fixed the AppBundle to correctly work with Oracle Java 7. This works with 5.2pre1.