Kevin Jones | 3 Jul 2007 10:27
Picon

JDE on Emacs 22

I'm still trying to get to the bottom of a problem I have with Emacs
22 and JDE, this time on Windows.

When I load Emacs and try to use JDE I get an error

"Symbol's value as variable is void: java-font-lock-keywords-3"

whenever I try to use JDE.

I've installed Emacs 22.1 and the latest versions of JDE (2.3.5.1) and
CEDET (1.0pre4).

I've tried various .emacs files, including a minimal file with nothing
in apart from JDE and its required software.

This all works fine on Emacs 21

I've seen couple of other reports of this but no solution.

Anybody

--

-- 
Kevin Jones
http://blogs.advantaje.com/blog/kevin/

Henry S. Thompson | 3 Jul 2007 20:38
Picon
Picon
Favicon

two minor patches for XEmacs


*** jde-jdb.el~ Sun Feb 19 13:22:34 2006
--- jde-jdb.el  Tue Jul  3 17:28:44 2007
***************
*** 353,359 ****
      (if (string-match 
         (concat "^  \\[" 
                 (oref debuggee :stack-depth)
!                "\\] .*(\\([^\$\n]*\\).*:\\([0-9]*[^[:digit:]]?[0-9]+\\))")
         output)
        (let ((marker (match-string 0 output))
              (class (match-string 1 output))
--- 353,359 ----
      (if (string-match 
         (concat "^  \\[" 
                 (oref debuggee :stack-depth)
!                "\\] .*(\\([^\$\n]*\\).*:\\([0-9]*[^0-9]?[0-9]+\\))")
         output)
        (let ((marker (match-string 0 output))
              (class (match-string 1 output))
***************
*** 1869,1875 ****
  (defun jde-jdb-string-to-int(number)
    "This method removes punctuation from a string, e.g, 1,200 (1.200 in Danish,
  and converts the result to an integer."
!   (if (string-match "[^[:digit:]]" number)
        (setq number (replace-match "" nil nil number)))
    (string-to-int number))

--- 1869,1875 ----
(Continue reading)

Sunnan | 10 Jul 2007 15:29
Favicon

bsh eval error

I'm trying to automatically import (C-c C-v z) an exception class. What 
am I missing?

bsh: Beanshell eval error. See messages buffer for details.
Beanshell expression evaluation error.
  Expression: jde.util.JdeUtilities.getQualifiedName("IOException");
  Error: // Error: EvalError: Class or variable not found: 
jde.util.JdeUtilities : at Line: 2 : in file: <unknown file> : jde .util 
.JdeUtilities .getQualifiedName ( "IOException" )
 [2 times]

Thanks, Sunnan

Sunnan | 11 Jul 2007 08:58
Favicon

Re: bsh eval error

jdonohue654-jde <at> yahoo.com wrote:
> You might not have the jde.jar in the bsh classpath.
>   
Thanks, that did it. I ought to put together a jde-bsh-troubleshooting 
file for all these things that I forget all the time.
I'm sorry. Thanks again.

jdonohue654-jde | 11 Jul 2007 05:05
Picon
Favicon

Re: bsh eval error

You might not have the jde.jar in the bsh classpath.
The startup command with the classpath is normally
displayed as the first couple of lines in the *JDEE
bsh* buffer.

--- Sunnan <sunnan <at> handgranat.org> wrote:

> I'm trying to automatically import (C-c C-v z) an
> exception class. What 
> am I missing?
> 
> bsh: Beanshell eval error. See messages buffer for
> details.
> Beanshell expression evaluation error.
>   Expression:
>
jde.util.JdeUtilities.getQualifiedName("IOException");
>   Error: // Error: EvalError: Class or variable not
> found: 
> jde.util.JdeUtilities : at Line: 2 : in file:
> <unknown file> : jde .util 
> .JdeUtilities .getQualifiedName ( "IOException" )
>  [2 times]
> 
> Thanks, Sunnan
> 

Arantxa Otegi | 12 Jul 2007 10:45
Picon
Picon

create jar file

Hi!
I'm using emacs (JDEE) for developing my java project. But I have 
problems to compile and creat a jar file.
These is the structure of my project:

src
  process
    (java files)
  util
    (java files)

I want to compile and create a jar file with all those java files. Can 
anybody help me? I'm a little bit lost with all jde-compile, jde-make... 
configurations.

I'm also interested in knowing how to crate a war file using JDEE.

Thanks

JM Ibanez | 12 Jul 2007 18:27
Face

Re: create jar file

Arantxa Otegi <aotegui004 <at> ikasle.ehu.es> writes:

> Hi!
> I'm using emacs (JDEE) for developing my java project. But I have
> problems to compile and creat a jar file.
> These is the structure of my project:
>
> src
>  process
>    (java files)
>  util
>    (java files)
>
> I want to compile and create a jar file with all those java files. Can
> anybody help me? I'm a little bit lost with all jde-compile,
> jde-make... configurations.
>
> I'm also interested in knowing how to crate a war file using JDEE.

I suggest you write an ant build file. There should be a lot of HOWTOs
online on doing that.

JDEE can integrate with ant when building, so that you can run Ant to
build your project. I use the following settings for that:

   (setq jde-build-function 'jde-ant-build)
   (setq jde-ant-read-target t)

Read the docs on the jde-build-function variable, or hit M-x
customize-variable jde-ant-build.
(Continue reading)

Joseph S | 12 Jul 2007 21:27

font-lock mode not working on ubuntu-7.04

This may be the same problem refrenced on 
http://sunsite.dk/fom/jde/cache/53.html but the urls to download the fix 
don't work anymore.  Anyone have any ideas?

Joseph S | 12 Jul 2007 21:41

ede-save-cache: Buffer is read-only: #<buffer .projects.ede>

A new problem:  After just upgrading JDE, ecb, and CEDET whenever I try 
to quit emacs (even if I never opened a file to edit) I get:

ede-save-cache: Buffer is read-only: #<buffer .projects.ede>

There is this buffer .projects.ede that I can't get rid of.  No matter 
how many times I kill it it keeps coming back, and I end up having to 
kill emacs from the command line.  Does anyone know what this is?

Joseph S | 13 Jul 2007 01:07

Re: font-lock mode not working on ubuntu-7.04

Joseph S wrote:
> This may be the same problem refrenced on 
> http://sunsite.dk/fom/jde/cache/53.html but the urls to download the fix 
> don't work anymore.  Anyone have any ideas?

Could this message have anything to do with font lock not working?
jde-java-font-lock: building names cache...empty

In other news these lines in my .emacs don't seem to be working:

(defun my-jde-mode-hook ()
  (setq indent-tabs-mode nil) ; added to set no-tab mode
   (setq c-basic-offset 4))

My offset is 2 and I'm getting tabs in my indents.  Does anyone have any 
idea what Ubuntu screwed up?


Gmane