Re: syntax highlighting isn't working

"Adhamh Findlay" <[email protected]> Wed, 7 Mar 2007 17:11:24 -0600 (CST)
Newsgroups gmane.emacs.jdee
Message-ID <[email protected]>
Okay, so syntax highlighting doesn't work if you don't have a JDK
installed.  I could have sworn I had one installed, but I didn't.

User error.

Adhamh


> Hi All,
>
> I have spent several hours trying to get sytax highlighting to work, and I
> am completly stuck.
>
> First the good news, if I use the package/instructions at
> http://www.skybert.nu/cgi-bin/viewpage.py.cgi?computers+emacs+java_configuration
> then syntax highlighting works.  However, these packages are old and I
> would prefer to be up-to-date.
>
> The second bit of odd news is that syntax highlight does work for non-java
> files like my .emacs file, it seems to just be in JDE that I am having
> problems.
>
> If I open a *.java file the sytax is not hightlighted, but if I do M-x
> font-lock-mode the syntax is suddenly highlighted.  I don't have to do
> this for my .emacs or html files though.  My .emacs file is available for
> inspection at http://adhamh.com/emacs.jdee.
>
> Here is the *Messages* buffer from emacs starting and not coloring java
> files:
>
> Loading derived...done
> Loading advice...done
> Loading mule-util...done
> Loading /usr/lib/emacs/21.4/i486-linux-gnu/fns-21.4.1-nox.el
> (source)...done
> Loading semantic-idle (source)...done
> Setting up semantic...done
> Setting up speedbar...done
> Setting up cedet-contrib...done
> Loading /home/adhamh/emacs/site/cedet/common/cedet.el (source)...done
> Note, built-in variable `x-bitmap-file-path' not bound
> Note, built-in variable `x-stretch-cursor' not bound
> jde-java-font-lock: building names cache...empty
> Loading cl-extra...done
> Loading cl-seq...done
> Loading semantic-el (source)...done
> For information about the GNU Project and its goals, type C-h C-p.
> ShortCodeExamples.java has auto save data; consider M-x recover-file
> Loading wisent-java-tags (source)...done
> Cannot find the JDK directory. See `jde-jdk'.
> Loading semantic-edit (source)...done
> Loading semanticdb-file (source)...done
> Mark set
>
> And here is some more information about emacs and my setup:
>
> ~:>emacs --version
> GNU Emacs 21.4.1
> ~:>uname -a
> Linux ns.adhamh.com 2.6.17-11-generic #2 SMP Thu Feb 1 19:52:28 UTC 2007
> (Ubuntu) i686 GNU/Linux
> ~:>ls -al ~/emacs/site
> total 20
> drwxrwxr-x 5 adhamh 4096 2007-03-07 11:55 ./
> drwxrwxr-x 4 adhamh 4096 2007-03-07 11:55 ../
> lrwxrwxrwx 1 adhamh   13 2007-03-07 11:55 cedet -> cedet-1.0pre3/
> drwxr-xr-x 9 adhamh 4096 2007-03-07 11:55 cedet-1.0pre3/
> lrwxrwxrwx 1 adhamh    8 2007-03-07 11:55 elib -> elib-1.0/
> drwxrwxr-x 2 adhamh 4096 2007-03-07 11:55 elib-1.0/
> lrwxrwxrwx 1 adhamh   11 2007-03-07 11:55 jde -> jde-2.3.5.1/
> drwxrwxr-x 6 adhamh 4096 2007-03-07 11:55 jde-2.3.5.1/
>
> Does anyone have any trouble shooting tips?  This seems like a pretty
> straight forward issue.  I have gotten this to work on OS X, but not on
> Linxu...
>
> Thanks,
>
> Adhamh
>
>
>
>
>
>
>