Hello,

I am using JDE for about a year, but only for the editing mode. The
compilation is done in a xterm using a Makefile. The project is becoming
more and more complex and I have not been able to implement the
dependencies into the Makefiles. So I decided to give this a try in the
JDE environment, but also in vain.

The project structure is the following

~/java/visual (top level dir)
~/java/visual/src (java top level source files)
                 /pack1/file1.java
                 /pack2/file2.java
~/java/visual/classes (byte top level compiled code)

I tried to setup the JDE prj.el file and launch a compilation which
should also recompile other files (eg file2.java was modified and
file1.java depends on it). The class file2 is recompiled but not the
file1.class.

I can not figure out what I am doing wrong. I set up the corerct classpath

M-x describe-variable jde-global-classpath returns

Value: ("~/java/visual/classes" "~/java/visual/src"
"/opt/jbuilder4/jdk1.3/jre/lib/rt.jar"
"/opt/jbuilder4/jdk1.3/jre/lib/ext/comm.jar"
"/opt/jbuilder4/jdk1.3/jre/lib/ext/jcl.jar") 

Also a rebuild does not give what I expected, it returns the eroor message

Could not find source for ~/java/visual/classes/septentrio/MainWindow

(this is the main class containing the main routine)

Would it be possible to get someones prj.el file so that I would only
have to change the classpath variable and have everything set up
corerctly, or could someone have a look at my prj.el file (in
attachlment) and corerct it

Many thanks

PS: my colleague using JBuilder underr windows laughs at what he calls
my archaic programming, but I want to proof him emacs can do the same
(or better)


    
-- 


MvG
Alain,

-----------------------------------------------------------------------
Alain Muls                                          tel +32/2/737.63.40
Royal Military Academy                         fax +32/2/737.62.12 ASGE
Renaissanceavenue 30              e-mail [EMAIL PROTECTED]
B-1000 Brussels BELGIUM                   ICBM 50d50,6669'N 4d23.5299'E
                                              http://www.asge.rma.ac.be
-----------------------------------------------------------------------
(custom-set-variables
 '(jde-compiler "jikes")
 '(toolbar-mail-commands-alist (quote ((not-configured . toolbar-not-configured) (vm . 
vm) (gnus . gnus-no-server) (rmail . rmail) (mh . mh-rmail) (pine toolbar-external 
"xterm" "-e" "pine") (elm toolbar-external "xterm" "-e" "elm") (mutt toolbar-external 
"xterm" "-e" "mutt") (opera toolbar-external "opera") (netscape toolbar-external 
"netscape" "mailbox:") (send . mail))))
 '(mwheel-follow-mouse t)
 '(jde-run-working-directory "~/java/visual")
 '(paren-mode (quote sexp) nil (paren))
 '(jde-compile-finish-hook (quote (jde-compile-finish-refresh-speedbar 
jde-compile-finish-flush-completion-cache)))
 '(jde-gen-window-listener-template (quote ("'& (P \"Window name: \")" 
"\".addWindowListener(new WindowAdapter()\" 'n> \" {\" 'n>" "\"public void 
windowActivated(WindowEvent e)\" 'n> \" {\" 'n> 'n> \"}\" 'n>" "\"public void 
windowClosed(WindowEvent e)\" 'n> \" {}\" 'n>" "\"public void 
windowClosing(WindowEvent e)\" 'n> \" {\" 'n> \"System.exit(0);\" 'n> \"}\" 'n>" 
"\"public void windowDeactivated(WindowEvent e)\" 'n> \" {}\" 'n>" "\"public void 
windowDeiconified(WindowEvent e)\" 'n> \" {}\" 'n>" "\"public void 
windowIconified(WindowEvent e)\" 'n> \" {}\" 'n>" "\"public void 
windowOpened(WindowEvent e)\" 'n> \" {}\" 'n> \"}\" 'n> \");\" 'n>")))
 '(jde-run-application-class "~/java/visual/classes/septentrio/MainWindow")
 '(jde-global-classpath (quote ("~/java/visual/classes" "~/java/visual/src" 
"/opt/jbuilder4/jdk1.3/jre/lib/rt.jar" "/opt/jbuilder4/jdk1.3/jre/lib/ext/comm.jar" 
"/opt/jbuilder4/jdk1.3/jre/lib/ext/jcl.jar")))
 '(jde-compile-option-depend t)
 '(jde-compile-option-directory "~/java/visual/classes")
 '(jde-gen-property-change-support (quote ("'&" "\"protected PropertyChangeSupport pcs 
=  new PropertyChangeSupport(this);\" 'n>" "\"/**\" 'n>\"* Adds a 
PropertyChangeListener to the listener list.\" 'n>" "\"* The listener is registered 
for all properties.\" 'n>" "\"*\" 'n> \"* @param listener The PropertyChangeListener 
to be added\" 'n> \"*/\" 'n>" "\"public void 
addPropertyChangeListener(PropertyChangeListener listener)\" 'n> \" {\" 'n>" 
"\"pcs.addPropertyChangeListener(listener);\" 'n> \"}\" 'n> 'n>" "\"/**\" 'n>\"* 
Removes a PropertyChangeListener from the listener list.\" 'n>" "\"* This removes a 
PropertyChangeListener that was registered for all properties.\" 'n>" "\"*\" 'n> \"* 
@param listener The PropertyChangeListener to be removed\" 'n> \"*/\" 'n>" "\"public 
void removePropertyChangeListener(PropertyChangeListener listener) \" 'n> \"{\" 'n>" 
"\"pcs.removePropertyChangeListener(listener);\" 'n> \"}\" 'n> 'n>" "\"/**\" 'n>\"* 
Adds a PropertyChangeListener for a specific property.\" 'n>" "\"* The listener will 
be invoked only when a call on firePropertyChange\" 'n>" "\"* names that specific 
property.\" 'n>" "\"*\" 'n> \"* @param propertyName The name of the property to listen 
on\" 'n>" "\"* @param listener The PropertyChangeListener to be added\" 'n> \"*/\" 
'n>" "\"public void addPropertyChangeListener(String propertyName,\" 'n>" 
"\"PropertyChangeListener listener) \" 'n> \"{\" 'n>" 
"\"pcs.addPropertyChangeListener(propertyName, listener);\" 'n> \"}\" 'n> 'n>" 
"\"/**\" 'n>\"* Removes a PropertyChangeListener for a specific property.\" 'n>" 
"\"*\" 'n> \"* @param propertyName The name of the property that was listened on\" 
'n>" "\"* @param listener The PropertyChangeListener to be removed\" 'n> \"*/\" 'n>" 
"\"public void removePropertyChangeListener(String propertyName,\" 'n>" 
"\"PropertyChangeListener listener) \" 'n> \"{\"  'n>" 
"\"pcs.removePropertyChangeListener(propertyName, listener);\" 'n> \"}\" 'n> 'n>" 
"\"/**\" 'n>\"* Reports a bound property update to any registered listeners. \" 'n>" 
"\"* No event is fired if old and new are equal and non-null.\" 'n>" "\"*\" 'n> \"* 
@param propertyName The programmatic name of the property that was changed\" 'n>" "\"* 
@param oldValue The old value of the property\" 'n>" "\"* @param newValue The new 
value of the property.\" 'n> \"*/\" 'n>" "\"public void firePropertyChange(String 
propertyName, Object oldValue, Object newValue) \" 'n> \"{\" 'n>" 
"\"pcs.firePropertyChange(propertyName, oldValue, newValue);\" 'n> \"}\" 'n> 'n>" 
"\"/**\" 'n>\"* Reports a bound property update to any registered listeners. \" 'n>" 
"\"* No event is fired if old and new are equal and non-null.\" 'n>" "\"* This is 
merely a convenience wrapper around the more general\" 'n>" "\"* firePropertyChange 
method that takes Object values.\" 'n>" "\"* No event is fired if old and new are 
equal and non-null.\" 'n>" "\"*\" 'n> \"* @param propertyName The programmatic name of 
the property that was changed\" 'n>" "\"* @param oldValue The old value of the 
property\" 'n>" "\"* @param newValue The new value of the property.\" 'n> \"*/\" 'n>" 
"\"public void firePropertyChange(String propertyName, int oldValue, int newValue) \" 
'n> \"{\" 'n>" "\"pcs.firePropertyChange(propertyName, oldValue, newValue);\" 'n> 
\"}\" 'n> 'n>" "\"/**\" 'n>\"* Reports a bound property update to any registered 
listeners. \" 'n>" "\"* No event is fired if old and new are equal and non-null.\" 
'n>" "\"* This is merely a convenience wrapper around the more general\" 'n>" "\"* 
firePropertyChange method that takes Object values.\" 'n>" "\"* No event is fired if 
old and new are equal and non-null.\" 'n>" "\"*\" 'n> \"* @param propertyName The 
programmatic name of the property that was changed\" 'n>" "\"* @param oldValue The old 
value of the property\" 'n>" "\"* @param newValue The new value of the property.\" 'n> 
\"*/\" 'n>" "\"public void firePropertyChange(String propertyName, boolean oldValue, 
boolean newValue) \" 'n> \"{\" 'n>" "\"pcs.firePropertyChange(propertyName, oldValue, 
newValue);\" 'n> \"}\" 'n> 'n>" "\"/**\" 'n>\"* Fires an existing PropertyChangeEvent 
to any registered listeners.\" 'n>" "\"* No event is fired if the given event's old 
and new values are equal and non-null. \" 'n>" "\"*\" 'n> \"* @param evt The 
PropertyChangeEvent object.\" 'n>\"*/\" 'n>" "\"public void 
firePropertyChange(PropertyChangeEvent evt) \" 'n> \"{\" 'n>" 
"\"pcs.firePropertyChange(evt);\" 'n> \"}\" 'n> 'n>" "\"/**\" 'n>\"* Checks if there 
are any listeners for a specific property.\" 'n>" "\"*\" 'n> \"* @param evt The 
PropertyChangeEvent object.\" 'n>" "\"* @return <code>true</code>if there are one or 
more listeners for the given property\" 'n>" "\"*/\" 'n>" "\"public boolean 
hasListeners(String propertyName) \" 'n> \"{\" 'n>" "\"return 
pcs.hasListeners(propertyName);\" 'n> \"}\" 'n> 'n>")))
 '(install-mwheel-at-startup t)
 '(jde-gen-console-buffer-template (quote ("(funcall jde-gen-boilerplate-function) 'n" 
"\"/**\" 'n" "\" * \"" "(file-name-nondirectory buffer-file-name) 'n" "\" *\" 'n" "\" 
*\" 'n" "\" * Created: \" (current-time-string) 'n" "\" *\" 'n" "\" * @author \" 
(user-full-name) 'n" "\" * @version\" 'n" "\" */\" 'n>" "'n>" "\"public class \"" 
"(file-name-sans-extension (file-name-nondirectory buffer-file-name)) 'n>" "\" {\" 'n> 
'n>" "\"public \"" "(file-name-sans-extension (file-name-nondirectory 
buffer-file-name))" "\"()\" 'n> \"{\" 'n>" "'n>" "\"} // EOF constructor \"" 
"(file-name-sans-extension (file-name-nondirectory buffer-file-name)) 'n>" "'n>" 
"\"public static void main ( String[] args )\" 'n> \"{\" 'n>" "'p 'n>" "\"} // EOF 
main\" 'n> 'n>" "\"} // EOF class\"" "(file-name-sans-extension 
(file-name-nondirectory buffer-file-name))" "'n>")))
 '(jde-jdk-doc-url "/usr/java/jdk1.3.0_02/docs/api/index.html")
 '(jde-java-font-lock-api-file nil)
 '(jde-imenu-include-modifiers nil)
 '(setq (quote jde-enable-abbrev-mode) t)
 '(jde-gen-get-set-var-template (quote ("'n>" "(P \"Variable type: \" type) \" \"" "(P 
\"Variable name: \" name) \";\" 'n> 'n>" "\"/**\" 'n>" "\"* Get the value of \" (s 
name) \".\" 'n>" "\"* @return Value of \" (s name) \".\" 'n>" "\"*/\" 'n>" "\"public 
\" (s type) \" get\" (jde-gen-init-cap (jde-gen-lookup-named 'name))" "\"()\" 'n> \" 
{\" 'n> \"return \" (s name) \";\" 'n> \"}\" 'n> 'n>" "\"/**\" 'n>" "\"* Set the value 
of \" (s name) \".\" 'n>" "\"* @param v  Value to assign to \" (s name) \".\" 'n> " 
"\"*/\" 'n>" "\"public void set\" (jde-gen-init-cap (jde-gen-lookup-named 'name))" 
"\"(\" (s type) \"  v)\" 'n> \" {\" 'n> \"this.\" ( s name ) \" = v;\" 'n> \"}\" 'n> 
")))
 '(toolbar-mail-reader (quote vm))
 '(jde-compile-option-sourcepath nil)
 '(jde-compile-option-depend-switch (quote ("+F")))
 '(jde-gen-buffer-boilerplate (quote ("/** Copyright: Septentrio nv" " *  
Willemsstraat 7" " *  B3000 Leuven" " *  Belgium " " *  ------------------------ */")))
 '(cdlatex-paired-parens "$[{(" t)
 '(jde-build-use-make nil)
 '(jde-compile-option-verbose-path nil)
 '(jde-imenu-include-signature t)
 '(jde-compile-option-command-line-args "-g +M +E -deprecation -depend")
 '(jde-mode-abbreviations (quote (("ab" . "abstract") ("bo" . "boolean") ("br" . 
"break") ("by" . "byte") ("byv" . "byvalue") ("cas" . "cast") ("ca" . "catch") ("ch" . 
"char") ("cl" . "class") ("co" . "const") ("con" . "continue") ("de" . "default") 
("dou" . "double") ("el" . "else") ("ex" . "extends") ("fa" . "false") ("fi" . 
"final") ("fin" . "finally") ("fl" . "float") ("fo" . "for") ("fu" . "future") ("ge" . 
"generic") ("go" . "goto") ("impl" . "implements") ("impo" . "import") ("ins" . 
"instanceof") ("in" . "int") ("inte" . "interface") ("lo" . "long") ("na" . "native") 
("ne" . "new") ("nu" . "null") ("pa" . "package") ("pri" . "private") ("pro" . 
"protected") ("pu" . "public") ("re" . "return") ("sh" . "short") ("st" . "static") 
("su" . "super") ("sw" . "switch") ("sy" . "synchronized") ("th" . "this") ("thr" . 
"throw") ("throw" . "throws") ("tra" . "transient") ("tr" . "true") ("vo" . "void") 
("vol" . "volatile") ("wh" . "while") ("ub" . "UnsignedByte") ("ui" . "UndignedInt") 
("us" . "UnsignedShort") ("sep" . "septentrio") ("Sep" . "Septentrio"))))
 '(jde-gen-code-templates (quote (("Get Set Pair" . jde-gen-get-set) ("toString 
method" . jde-gen-to-string-method) ("Action Listener" . jde-gen-action-listener) 
("Window Listener" . jde-gen-window-listener) ("Mouse Listener" . 
jde-gen-mouse-listener) ("Mouse Motion Listener" . jde-gen-mouse-motion-listener) 
("Inner Class" . jde-gen-inner-class) ("println" . jde-gen-println) ("property change 
support" . jde-gen-property-change-support))))
 '(jde-compile-option-classpath (quote ("~/java/visual/classes" 
"/opt/jbuilder4/jdk1.3/jre/lib/rt.jar" "/opt/jbuilder4/jdk1.3/jre/lib/ext/comm.jar" 
"/opt/jbuilder4/jdk1.3/jre/lib/ext/jcl.jar")))
 '(jde-gen-class-buffer-template (quote ("(funcall jde-gen-boilerplate-function) 'n" 
"\"/**\" 'n" "\" * \"" "(file-name-nondirectory buffer-file-name) 'n" "\" *\" 'n" "\" 
*\" 'n" "\" * Created: \" (current-time-string) 'n" "\" *\" 'n" "\" * @author \" 
(user-full-name) 'n" "\" * @version\" 'n" "\" */\" 'n>" "'n>" "\"public class \"" 
"(file-name-sans-extension (file-name-nondirectory buffer-file-name))" "\" \" 
(jde-gen-get-super-class) 'n>" "\"{\" 'n>" "\"public \"" "(file-name-sans-extension 
(file-name-nondirectory buffer-file-name))" "\"()\" 'n>" "\"{\" 'n>" "'p 'n>" "\"} // 
EOF constructor \"" "(file-name-sans-extension (file-name-nondirectory 
buffer-file-name))" "'n>" "\"} // EOF class \"" "(file-name-sans-extension 
(file-name-nondirectory buffer-file-name))" "'n>")))
 '(jde-gen-action-listener-template (quote ("'& (P \"Component name: \")" 
"\".addActionListener(new ActionListener() \" 'n> \"{\" 'n>" "\"public void 
actionPerformed(ActionEvent e) \" 'n> \"{\" 'n>" "\"}\" 'n> \"}\" 'n> \");\" 'n>")))
 '(jde-enable-abbrev-mode t)
 '(jde-quote-classpath nil)
 '(jde-imenu-sort (quote asc))
 '(jde-gen-inner-class-template (quote ("'& \"class \" (P \"Class name: \" class)" "(P 
\"Superclass: \" super t)" "(let ((parent (jde-gen-lookup-named 'super)))" "(if (not 
(string= parent \"\"))" "(concat \" extends \" parent))) \" 'n> \"\" {\" 'n>" 
"\"public \" (s class) \"() \" 'n> \"{\" 'n> \"}\" 'n> \"}\" 'n>")))
 '(jde-setnu-mode-enable nil)
 '(ecb-source-path (quote ("/home/alain/java/visual" "/home/alain/java/examples")))
 '(jde-compile-option-deprecation t)
 '(jde-gen-jfc-app-buffer-template (quote ("(funcall jde-gen-boilerplate-function) 'n" 
"\"import java.awt.*;\" 'n" "\"import java.awt.event.*;\" 'n" "\"import 
javax.swing.*;\" 'n 'n" "\"/**\" 'n" "\" * \"" "(file-name-nondirectory 
buffer-file-name) 'n" "\" *\" 'n" "\" *\" 'n" "\" * Created: \" (current-time-string) 
'n" "\" *\" 'n" "\" * @author \" (user-full-name) 'n" "\" * @version\" 'n" "\" */\" 
'n>" "'n>" "\"public class \"" "(file-name-sans-extension (file-name-nondirectory 
buffer-file-name))" "\" extends JFrame\" 'n> \"{\" 'n>" "\"public \"" 
"(file-name-sans-extension (file-name-nondirectory buffer-file-name))" "\" ( ) \" 'n> 
\"{\" 'n>" "\"super ( \\\"\" (P \"Enter app title: \") \"\\\" ) ;\" 'n>" "\"setSize ( 
600, 400 ) ;\" 'n>" "\"addWindowListener\" 'n> \"( new WindowAdapter()\" 'n> \"{\" 
'n>" "\"public void windowClosing ( WindowEvent e ) { System.exit(0) ; }\" 'n>" 
"\"public void windowOpened ( WindowEvent e ) {}\" 'n> \"}\" 'n> \") ;\" 'n>" "\"} // 
EOF constructor \"" "(file-name-sans-extension (file-name-nondirectory 
buffer-file-name)) 'n>" "'n>" "\"public static void main ( String[] args )\" 'n> \"{\" 
'n>" "(file-name-sans-extension (file-name-nondirectory buffer-file-name))" "\" f = 
new \"" "(file-name-sans-extension (file-name-nondirectory buffer-file-name))" "\"() 
;\" 'n>" "\"f.show();\" 'n>" "\"} // EOF main\" 'n> 'n>" "\"} // EOF class c\"" 
"(file-name-sans-extension (file-name-nondirectory buffer-file-name))" "'n>")))
 '(jde-compile-option-verbose nil)
 '(jde-compile-option-optimize nil)
 '(jde-help-docsets (quote (("javadoc" "/usr/java/jdk1.3.0_02/docs/api" nil))))
 '(jde-gen-to-string-method-template (quote ("'&" "\"public String toString()\" 'n> \" 
{\" 'n>" "\"return super.toString();\" 'n>" "\"}\" 'n>"))))
(custom-set-faces)

Reply via email to