This version is a jar file rather than a packaged Mac App (which I will create shortly as part of a new DrJava stable release assuming that this patch works for you).
I have attached a patched version of DrJava that works (at least on simple examples) on the borrowed Mac (running Mac OS X 10.7.5) that I am using.
The DrJava code that determines the version of a compiler from a distribution's root directory name broke as a result of this change. In particular, Oracle appends the suffix ".jdk" to the root directory for their Mac OS Java JDK distributions. In contrast to the Java culture which eschews gratuitous changes that break legacy Java applications, Oracle has made many changes in the organization of their Java distributions for the Mac compared to the organization that Apple used while Apple was explicitly supporting Java. I had to borrow a MacBook from a friend and use it to track down the bug. I apologize for taking so long to respond to your request. Oracle who now develops the Mac JDK distributions, but it was too late to (After several years, support resumed, presumably through Stopped using Macs several years ago when Apple abandoned support of Java If your version of DrJava is up-to-date, then I am stumped and I will haveįind a former DrJava developer with a Mac who is willing to help. Java core libraries, which is not available in the executing JVM (wihch hasĪn older version of the core libraries built-in). Newer version classįiles have been compiled on the basis of a newer (expanded) version of the Generally work on newer JVMs) but not the opposite. Java is backward compatible (legacy class files Message) for class files that are compiled by a newer version of Java than This process will fail (generating an error
Release that existed at the time that version of DrJava was released.ĭrJava loads and executes the classes that are compiled from DrJava (as Load the Java 7 compiler either because they do not find it or if they doįind it and determine that it is not compatible with the latest Java Prior to the latest stable release were released before Java 7 and will not The version of Java that is executing the DrJava IDE.
(drjava-stable-20120818-r5686), which you can download from, recognizes the Java 7 compiler.ĭrJava invokes Java compilers programmatically (by executing a method call)Īnd it only recognizes compilers that it can confirm are compatible with What version of DrJava are you using? Only the latest stable release System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Libraries System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsfd.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/classes.jar:/System/Library/Frameworks/amework/Frameworks/amework/Resources/Java/JavaRuntimeSupport.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/ui.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/laf.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/sunrsasign.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jsse.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/jce.jar:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Classes/charsets.jar Java.vm.specification.vendor Sun Microsystems Inc. Java.vm.specification.name Java Virtual Machine Specification Java.vm.name Java HotSpot(TM) 64-Bit Server VM Applications/DrJava.app/Contents/Resources/Java:/System/Library/PrivateFrameworks/amework/Resources.:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Library/Java/Extensions:/System/Library/Java/Extensions:/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/ext System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/lib/endorsed
Applications/DrJava.app/Contents/Resources/Java/drjava.jar SYSTEM PROPERTIES: I'm running a Mac, with OS X (10.7.5) installed.ĭrJava Configuration File: /Users/chrismiddleton/.drjavaįtp.nonProxyHosts local|. I posted about this issue on stackexchange (no answers) a few days ago, and it has screenshots. WHAT I'VE TRIED: I can't find a tools.jar file on my computer anywhere, so trying to change the path for that didn't help.
THE ISSUE: My system (including Terminal) uses Java 7u25, but DrJava is stuck on Java 6u43.