Re: support for Sun Java 6
<[email protected]> Thu, 22 Mar 2007 18:27:03 -0700 (PDT)
| Newsgroups | gmane.emacs.jdee |
|---|---|
| Message-ID | <[email protected]> |
> For example when I'm compiling, I always get: > "The JDE does not recognize JDK 1.6 javac. Assume > JDK 1.5 javac?(yes or no)" > > I know that there are easy workarounds for this > (cheating with the version number), but I would > really prefer a normal support. > > Malte > Something like this might work (though I know you're really asking if jde itself will support this out of the box): (require 'jde-compile) (defclass jde-compile-javac-16 (jde-compile-javac-15) () "Class of J2SDK 1.6 javac compilers.") (defmethod initialize-instance ((this jde-compile-javac-16) &rest fields) ;; Call parent initializer. (call-next-method) ;; Set compiler version. (oset this version "1.6")) (add-to-list 'jde-compile-javac-compilers (jde-compile-javac-16 "javac 1.6.x") t)