I submitted a patch a few weeks ago to get JDE to work with Mac OS X's
strange Java directory structure.  Hopefully it will appear in the
next version of JDE.

Dwight Shih <[EMAIL PROTECTED]> writes:

> When you say that it doesn't work, what exactly isn't working?
> 
> I'm a recent switcher on Mac OS X 10.2, and the first thing that I had
> to do was to twiddle the JDK installation. The JDEE uses the beanshell
> extensively and needs to be able to find tools.jar from the JDK.
> However, Apple has repackaged the contents of tools.jar in
> classes.jar.  I don't think that it makes sense to patch JDEE to chase
> Apple's JDK,  so I built an alternate structure with a more standard
> format. Here's  what it looks like:
> 
> CurrentJDK/Sun-Repro 160 $ pwd
> /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Sun-
> Repro
> CurrentJDK/Sun-Repro 161 $ ls -l
> total 8
> lrwxr-xr-x  1 root  wheel   11 Oct 30 11:13 bin -> ../Commands
> drwxr-xr-x  3 root  wheel  102 Oct 30 11:14 lib
> CurrentJDK/Sun-Repro 162 $ ls ../Commands
> appletviewer jarsigner    javadoc      keytool      policytool
> serialver
> extcheck     java         javah        native2ascii rmic
> tnameserv
> idlj         java-rmi.cgi javap        oldjava      rmid
> jar          javac        jdb          oldjavac     rmiregistry
> CurrentJDK/Sun-Repro 163 $ ls -l lib
> total 8
> lrwxr-xr-x  1 root  wheel  25 Oct 30 11:14 tools.jar ->
> ../../Classes/classes.jar
> 
> Since everything is internally consistent I don't need to set
> JAVA_HOME  for the command line, so I just set JAVA_HOME for JDEE by
> adding:
> 
> (setenv "JAVA_HOME"
>       "/System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Sun-
> Repro")
> 
> to my initialization file (~/emacs/my-osx.el in my case which I load
> from my .emacs).
> 
> As far as emacs itself goes, I wanted a current native version, so I
> had to build it myself.
> 
>       http://members.shaw.ca/akochoi-emacs/
> 
> YMMV
> 
> Dwight
> 
> On Wednesday, October 30, 2002, at 08:22  AM, mike hakata wrote:
> 
> > I am running Mac OS X 10.1.5 and am trying to run the JDEE with emacs.
> > Unfortunately emacs works fine, but the JDEE doesn't seem to run at
> > all.
> >
> > I'm sure it's the way I have it configured! Of course!
> >
> > Firstly, I have my .emacs file in my ~/ directory.
> > (although my emacs application runs from /usr/emacs/20.7) - 20.7
> > being  the
> > Darwin version.
> >
> > The .emacs file reads:
> >
> > (setq default-major-mode 'text-mode)
> > (add-hook 'text-mode-hook 'turn-on-auto-fill)
> >
> >
> > (global-font-lock-mode t)
> >
> >
> >  (setq gnus-button-url 'browse-url-generic
> >        browse-url-generic-program "InternetExplorer"
> >        browse-url-browser-function gnus-button-url)
> >
> >
> >  (global-set-key [(control tab)] 'bury-buffer)
> >
> >  (iswitchb-default-keybindings)
> >
> > ;;JDEE setup.
> > (setq debug-on-error t)
> >  (autoload 'speedbar-frame-mode "speedbar" "Popup a speedbar frame" t)
> >    (autoload 'speedbar-get-focus "speedbar" "Jump to speedbar frame" t)
> >
> >
> > (add-to-list 'load-path (expand-file-name
> > "~/emacs/site/jde-2.2.8/lisp"))
> > (add-to-list 'load-path (expand-file-name "~
> > /emacs/site/semantic"))
> > (add-to-list 'load-path (expand-file-name "~/emacs/site/speedbar"))
> > (add-to-list 'load-path (expand-file-name "~/emacs/site/elib"))
> > (add-to-list 'load-path (expand-file-name "~/emacs/site/eieio"))
> >
> > (require 'jde)
> >
> > (defun my-jde-mode-hook ()
> >   (setq c-basic-offset 2))
> >
> > (add-hook 'jde-mode-hook 'my-jde-mode-hook)
> >
> > Any help as to why this isn't working would be great.
> > And also why it won't accept the browser, saying it cannot be found.
> >
> > Thanks in advance
> > Mike
> >
> >
> >
> >

Reply via email to