Could not find type of <class> Attempt to import <class>?

lolo gt <[email protected]> Mon, 30 Oct 2006 11:21:51 +0000 (GMT)
Newsgroups gmane.emacs.jdee
Message-ID <[email protected]>
Hi,

I'am using jde 2.3.5 and emacs 21.4 in ubuntu. I set all the variables to compile, run a class (I have no problem here). Then I tried to make
'completion' tool to work. It works if I define the class with the full
package path; it is like if it couldn't find the import to make completion.

For example:

----------------------------------------------------
import path.complete.class_B;

public void main(String[] args){
    path.complete.class_A object_A = new path.complete.class_A();
    class_B object_B = new class_B();
}
----------------------------------------------------
Then 'completion' works perfectly for object_A; but when i try to
do the same with object_B, I receive the following message:

'Could not find type
 of <class> Attempt to import <class>?'

If I reply yes, it writes the import perfectly but it writes it 3 times and then I receive the same messages.
It is as it couldn't read the imports.

thanks you in advance!

MiguelGT

PD. I Installed jde with universe repository (maybe it helps).
       

#file '.emacs':
--------------------------------------------------------------------
;;; XEmacs backwards compatibility file
(setq user-init-file
      (expand-file-name "init.el"
                        (expand-file-name ".xemacs" "~")))
(setq custom-file
      (expand-file-name "custom.el"
                        (expand-file-name ".xemacs" "~")))

(load-file user-init-file)
(load-file custom-file)

(setq java-mode-hook '(lambda () (font-lock-mode 1)))


;;

(require 'jde)

;; Sets the basic indentation for Java source files
;; to two spaces.
(defun my-jde-mode-hook ()
  (setq c-basic-offset 2))

-------------------------------------------------------

#file '.xemacs/custom.el':
--------------------------------------------------------
(custom-set-variables
  ;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
  ;; Your init file should contain only one such instance.
 '(jde-compiler (quote ("javac" "")))
 '(jde-complete-display-result-type t)
 '(jde-complete-function (quote jde-complete-menu))
 '(jde-global-classpath (quote ("/inv/lib/weka/weka-3-5-2/weka.jar"  "/inv/lib/mgt/lib_mdj/class" "/inv/lib/apache/commons-math-1.1/commons-math-1.1.jar" ".")))
 '(jde-jdk (quote ("1.4.2")))
 '(jde-jdk-registry (quote (("1.5.0" . "/inv/hdp/java/jdk1.5.0_06") ("1.4.2" . "
/inv/hdp/java/j2sdk1.4.2_10")))))
(custom-set-faces
  ;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
  ;; Your init file should contain only one such instance.
 )

----------------------------------------------------

#file '.xemacs/init.el':
--------------------------------------------------

;;activar la visualizacion del numero de fila y columna
(setq line-number-mode t)

(transient-mark-mode t)


;;activar los colores en la sintaxis de lenguajes de programacion
(add-hook 'c-mode-hook 'turn-on-font-lock)

(global-font-lock-mode 1)

(setq font-lock-maximum-decoration t)


;;activacion de señalar una region con el teclado
(setq ispell-highlight-face 'region)
(global-set-key [f1] 'goto-line)  ;; goto line number
(global-set-key [select] 'set-mark-command)  ;; set mark

;;activar los colores en la sintaxis en matlab

;; Add local lisp folder to load-path
(setq load-path (append load-path (list "~/.emacs.d")))

;; Set up matlab-mode to load on .m files
(autoload 'matlab-mode "matlab" "Enter MATLAB mode." t)
(setq auto-mode-alist (cons '("\\.m\\'" . matlab-mode) auto-mode-alist))
(autoload 'matlab-shell "matlab" "Interactive MATLAB mode." t)

;; Customization:
(setq matlab-indent-function t) ; if you want function bodies indented
(setq matlab-verify-on-save-flag nil) ; turn off auto-verify on save
(defun my-matlab-mode-hook ()
  (setq fill-column 76))                ; where auto-fill should wrap
(add-hook 'matlab-mode-hook 'my-matlab-mode-hook)
(defun my-matlab-shell-mode-hook ()
  '())
(add-hook 'matlab-shell-mode-hook 'my-matlab-shell-mode-hook)

;; Turn off Matlab desktop
(setq matlab-shell-command-switches '("-nojvm"))

;; activar Python
(setq load-path (cons "~/.emacs.d/" load-path))
(autoload 'python-mode "python-mode" "Python editing mode." t)

(setq auto-mode-alist
        (cons '("\\.py$" . python-mode) 
         auto-mode-alist))
   
(setq interpreter-mode-alist
        (cons '("python" . python-mode)
         interpreter-mode-alist))

;;activar archivos tipo arff
(require 'generic)
(define-generic-mode 'arff-file-mode
  (list ?%)
  (list "attribute" "relation" "end" "data")
  '(
    ("\\('.*'\\)" 1 'font-lock-string-face)    
    ("^\\@\\S-*\\s-\\(\\S-*\\)" 1 'font-lock-string-face)    
    ("^\\@.*\\(real\\)" 1 'font-lock-type-face)    
    ("^\\@.*\\(integer\\)" 1 'font-lock-type-face)    
    ("^\\@.*\\(numeric\\)" 1 'font-lock-type-face)    
    ("^\\@.*\\(string\\)" 1 'font-lock-type-face)    
    ("^\\@.*\\(date\\)" 1 'font-lock-type-face)    
    ("^\\@.*\\({.*}\\)" 1 'font-lock-type-face)    
    ("^\\({\\).*\\(}\\)$" (1 'font-lock-reference-face) (2
'font-lock-reference-face))
    ("\\(\\?\\)" 1 'font-lock-reference-face)    
    ("\\(\\,\\)" 1 'font-lock-keyword-face)    
    ("\\(-?[0-9]+?.?[0-9]+\\)" 1 'font-lock-constant-face)    
    ("\\(\\@\\)" 1 'font-lock-preprocessor-face)    
    )
  (list "\.arff?")
  (list
   (function
    (lambda () 
      (setq font-lock-defaults (list 'generic-font-lock-defaults nil t ; case
insensitive
                                     (list (cons ?* "w") (cons ?- "w"))))
      (turn-on-font-lock))))
  "Mode for arff-files.")








	
	
		
______________________________________________ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com