OK, I got a working installation. The thing was that I was trying to make JDEE work with CEDET-1.0pre7 but I had compiled JDEE from source using the CEDET that comes with Emacs.
So this was the procedure to install JDEE from source in: openSUSE 12.1 Emacs 23.3.1 With: CEDET-1.0pre7 elib 1.0 Oracle JDK-1.7.0 (not the default that comes with the distribution i.e. IcedTea and GJC) ant-1.8.2 1. Install elib 2. Install CEDET-1.0pre7 from http://sourceforge.net/projects/cedet/files/cedet/ Installation of CEDET is quite straightforward. Just 2.1 download 2.2 unpack to an appropriate directory, such as ~/opt/lib/ 2.3 cd to directory where CEDET was unpacked 2.4 make 2.5 add this to your ~/.emacs file. (load-file "/home/edwinh/opt/lib/lisp/cedet-1.0pre7/common/cedet.el") (semantic-load-enable-guady-code-helpers) 3. Install JDEE 3.1 Download from the SVN repository using svn co https://jdee.svn.sourceforge.net/svnroot/jdee/trunk jdee cd jdee (I followed the instructions in the file jdee/jdee/doc/flat/install.html) 3.2 Configure (check the paths in your system) env CLASSPATH=/usr/share/java/ant-contrib-1.0b2.jar JAVA_HOME=/path/to/jdk1.7.0_02/ ant configure 3.3 Edit directly the file build.properties just created or copy it to ~/.jdee-config.properties and edit it (see jdee/jdee/doc/flat/install.html) so that: cedet.dir=/path/to/cedet-1.0pre7/ elib.dir=/path/to/elib/ prefix.dir=/path/where/jdee/will/be/installed/ build.bin.emacs=emacs 3.4 Configure again. env CLASSPATH=/usr/share/java/ant-contrib-1.0b2.jar JAVA_HOME=/path/to/jdk1.7.0_02/ ant configure 3.5 Build env CLASSPATH=/usr/share/java/ant-contrib-1.0b2.jar JAVA_HOME=/path/to/jdk1.7.0_02/ ant build 3.6 Create the distribution env CLASSPATH=/usr/share/java/ant-contrib-1.0b2.jar JAVA_HOME=/path/to/jdk1.7.0_02/ ant bindist 3.7 Install env CLASSPATH=/usr/share/java/ant-contrib-1.0b2.jar JAVA_HOME=/path/to/jdk1.7.0_02/ ant install 4. Load into Emacs by adding the following to ~/.emacs file (after having loaded CEDET) (add-to-list 'load-path "/path/to/jdee/lisp/") (load "jde-autoload") That's it. Until now, it have worked OK. On Fri, 2012-01-20 at 09:28 -0600, Paul Landes wrote: > This is difficult in part because I can't reproduce it. By now you should > have the same setup as I do and everything works for me. Did you set up and > install things per the SourceForge JDEE docs? > > Also a stack trace would be helpful. > > > On Jan 20, 2012, at 8:38 AM, Edwin Helbert Aponte Angarita wrote: > > > I tried that but it didn't work. (semantic-mode 1) can only be used with > > the cedet installed with Emacs. I tried it but it didn't work. > > > > There is a bug somewhere that needs to be fixed first. > > > > I am not developing very large java programs by now so I think I can > > work with this JDE installation. > > > > If you want me to test something to fix this and I have time I will do. > > > > Thanks a lot. > > > > On Fri, 2012-01-20 at 05:12 -0600, Paul Landes wrote: > >> Try this: > >> > >> http://www.mail-archive.com/[email protected]/msg00581.html > >> > >> I have a somewhat customized set up and it might not work for you. Looks > >> like the upshot was that this person used CEDET 1.0, however, there might > >> be something there with load order. > >> > >> > >> > >> On Jan 20, 2012, at 3:52 AM, Edwin Helbert Aponte Angarita wrote: > >> > >>> M-: (featurep 'cedet) > >>> t > >>> > >>> My .emacs file is as follows: > >>> > >>> ;;CEDET > >>> (load-file "~/opt/lib/lisp/cedet-1.0pre7/common/cedet.el") > >>> (semantic-load-enable-guady-code-helpers) > >>> ;;JDEE > >>> (require 'cedet) > >>> (add-to-list 'load-path "/usr/share/jdee/lisp/") > >>> ;;Load autoloads file > >>> (load "jde-autoload") > >>> > >>> Thanks. > >>> > >>> On Thu, 2012-01-19 at 17:40 -0600, Paul Landes wrote: > >>>> What is the output of > >>>> > >>>> M-x (featurep 'cedet) > >>>> > >>>> Have you loaded cedet? Something like > >>>> > >>>> (require 'cedet) > >>>> > >>>> needs to go in your ~/.emacs file. > >>>> > >>>> > >>>> > >>>> On Jan 19, 2012, at 2:56 PM, Edwin Helbert Aponte Angarita wrote: > >>>> > >>>>> Sorry, I was wrong. Emacs do open the .java file since the beginning > >>>>> (the thing was that it didn't show the buffer). Anyway, JDE seems to be > >>>>> unable to perform any operation that calls the > >>>>> semantic-brute-find-tag-by-class function. > >>>>> > >>>>> Now I have tested loading previously > >>>>> cedet-1.0pre7/semantic/semantic-find.el where the > >>>>> semantic-brute-find-tag-by-class function is defined but I get the same > >>>>> error. > >>>>> > >>>>> Thanks. > >>>>> > >>>>> On Thu, 2012-01-19 at 18:41 +0000, Edwin Helbert Aponte Angarita wrote: > >>>>>> I used cedet-1.0pre7 but now I am getting the following error when I > >>>>>> attempt to open a .java file for the _first_ time after I open Emacs. > >>>>>> > >>>>>> Package lmenu is obsolete! > >>>>>> > >>>>>> and the .java file is not loaded. Then I try to open the file again and > >>>>>> it loads, even now I get a "Class" menu, but I am getting the next > >>>>>> error > >>>>>> after executing M-x jde-open-class-at-point > >>>>>> > >>>>>> Invalid function: semantic-brute-find-tag-by-class > >>>>>> > >>>>>> Doen JDEE only work with this configuration: > >>>>>> > >>>>>> JDEE: 2.4.1 > >>>>>> Cedet: cedet-1.0pre7 > >>>>>> Emacs: 23.2.1 > >>>>>> No elib > >>>>>> > >>>>>> as is stated here > >>>>>> http://www.mail-archive.com/[email protected]/msg00584.html > >>>>>> > >>>>>> I am using Emacs 23.3.1 > >>>>>> JDEE 2.4.1 > >>>>>> cedet-1.0pre7 > >>>>>> I tested first with elib then without elib but either case I get the > >>>>>> same error. > >>>>>> > >>>>>> > >>>>>> Thanks. > >>>>>> > >>>>>> On Wed, 2012-01-18 at 13:00 -0600, Paul Landes wrote: > >>>>>>> Use the cedet-1.0pre7 version instead. > >>>>>>> > >>>>>>> > >>>>>>> On Jan 18, 2012, at 12:36 PM, Edwin Helbert Aponte Angarita wrote: > >>>>>>> > >>>>>>>> OK, I have installed the last CEDET (1.0.1). It is loaded correctly > >>>>>>>> but > >>>>>>>> now I am getting this error from JDEE when I attempt to open a .java > >>>>>>>> file. > >>>>>>>> > >>>>>>>> JDEE requires a version of CEDET between 1.0beta2 and 1.0 (found > >>>>>>>> 1.0.1) > >>>>>>>> > >>>>>>>> And the JDE mode is not activated. > >>>>>>>> > >>>>>>>> Thanks. > >>>>>>>> > >>>>>>>> On Wed, 2012-01-11 at 13:01 -0600, Paul Landes wrote: > >>>>>>>>> The Emacs distributed CEDET version in 23 is broke. I suggest > >>>>>>>>> switching to the most recent version of CEDET from: > >>>>>>>>> > >>>>>>>>> http://cedet.sourceforge.net/ > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> On Jan 11, 2012, at 12:32 PM, Edwin Helbert Aponte Angarita wrote: > >>>>>>>>> > >>>>>>>>>> Daniels, you were right. The jde-xref* variables are there. > >>>>>>>>>> > >>>>>>>>>> I loaded file /usr/share/emacs/23.3/lisp/cedet/semantic/find.elc > >>>>>>>>>> where > >>>>>>>>>> the semantic-brute-find-tag-by-class function is defined but I > >>>>>>>>>> still get > >>>>>>>>>> the same error when I do M-x jde-ope-class-at-point. Also, I > >>>>>>>>>> cannot get > >>>>>>>>>> the "Classes" menu. > >>>>>>>>>> > >>>>>>>>>> Thanks > >>>>>>>>>> > >>>>>>>>>> On Wed, 2012-01-11 at 11:03 -0600, Paul Landes wrote: > >>>>>>>>>>> This is a great suggestion. Try M-x load-file edit.el and if > >>>>>>>>>>> that still doesn't work, try loading semantic-find.el (which is > >>>>>>>>>>> where the function is for me). If that still doesn't work, do a > >>>>>>>>>>> find/grep on your emacs or cedet install dir (or better igrep) > >>>>>>>>>>> for the funciton. > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> On Jan 11, 2012, at 10:26 AM, Sam Steingold wrote: > >>>>>>>>>>> > >>>>>>>>>>>>> * Edwin Helbert Aponte Angarita > >>>>>>>>>>>>> <[email protected]> [2012-01-08 > >>>>>>>>>>>>> 23:22:32 +0000]: > >>>>>>>>>>>>> > >>>>>>>>>>>>> jde-parse-import-list: Invalid function: > >>>>>>>>>>>>> semantic-brute-find-tag-by-class > >>>>>>>>>>>> > >>>>>>>>>>>> I had a similar problem and fixed it by adding an autoload > >>>>>>>>>>>> cookie in > >>>>>>>>>>>> semantic/edit.el > >>>>>>>>>>>> > >>>>>>>>>>>> -- > >>>>>>>>>>>> Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) > >>>>>>>>>>>> X 11.0.11004000 > >>>>>>>>>>>> http://honestreporting.com http://pmw.org.il > >>>>>>>>>>>> http://mideasttruth.com > >>>>>>>>>>>> http://truepeace.org http://www.memritv.org http://camera.org > >>>>>>>>>>>> In C you can make mistakes, while in C++ you can also inherit > >>>>>>>>>>>> them! > >>>>>>>>>>>> > >>>>>>>>>>>> > >>>>>>>>>>>> ------------------------------------------------------------------------------ > >>>>>>>>>>>> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need > >>>>>>>>>>>> a complex > >>>>>>>>>>>> infrastructure or vast IT resources to deliver seamless, secure > >>>>>>>>>>>> access to > >>>>>>>>>>>> virtual desktops. With this all-in-one solution, easily deploy > >>>>>>>>>>>> virtual > >>>>>>>>>>>> desktops for less than the cost of PCs and save 60% on VDI > >>>>>>>>>>>> infrastructure > >>>>>>>>>>>> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > >>>>>>>>>>>> _______________________________________________ > >>>>>>>>>>>> jdee-users mailing list > >>>>>>>>>>>> [email protected] > >>>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/jdee-users > >>>>>>>>>>> > >>>>>>>>>>> > >>>>>>>>>>> ------------------------------------------------------------------------------ > >>>>>>>>>>> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a > >>>>>>>>>>> complex > >>>>>>>>>>> infrastructure or vast IT resources to deliver seamless, secure > >>>>>>>>>>> access to > >>>>>>>>>>> virtual desktops. With this all-in-one solution, easily deploy > >>>>>>>>>>> virtual > >>>>>>>>>>> desktops for less than the cost of PCs and save 60% on VDI > >>>>>>>>>>> infrastructure > >>>>>>>>>>> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > >>>>>>>>>>> _______________________________________________ > >>>>>>>>>>> jdee-users mailing list > >>>>>>>>>>> [email protected] > >>>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/jdee-users > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> > >>>>>>>>>> ------------------------------------------------------------------------------ > >>>>>>>>>> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a > >>>>>>>>>> complex > >>>>>>>>>> infrastructure or vast IT resources to deliver seamless, secure > >>>>>>>>>> access to > >>>>>>>>>> virtual desktops. With this all-in-one solution, easily deploy > >>>>>>>>>> virtual > >>>>>>>>>> desktops for less than the cost of PCs and save 60% on VDI > >>>>>>>>>> infrastructure > >>>>>>>>>> costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > >>>>>>>>>> _______________________________________________ > >>>>>>>>>> jdee-users mailing list > >>>>>>>>>> [email protected] > >>>>>>>>>> https://lists.sourceforge.net/lists/listinfo/jdee-users > >>>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> ------------------------------------------------------------------------------ > >>>>>>>> Keep Your Developer Skills Current with LearnDevNow! > >>>>>>>> The most comprehensive online learning library for Microsoft > >>>>>>>> developers > >>>>>>>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, > >>>>>>>> MVC3, > >>>>>>>> Metro Style Apps, more. Free future releases when you subscribe now! > >>>>>>>> http://p.sf.net/sfu/learndevnow-d2d > >>>>>>>> _______________________________________________ > >>>>>>>> jdee-users mailing list > >>>>>>>> [email protected] > >>>>>>>> https://lists.sourceforge.net/lists/listinfo/jdee-users > >>>>>>> > >>>>>> > >>>>>> > >>>>> > >>>>> > >>>>> > >>>>> ------------------------------------------------------------------------------ > >>>>> Keep Your Developer Skills Current with LearnDevNow! > >>>>> The most comprehensive online learning library for Microsoft developers > >>>>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > >>>>> Metro Style Apps, more. Free future releases when you subscribe now! > >>>>> http://p.sf.net/sfu/learndevnow-d2d > >>>>> _______________________________________________ > >>>>> jdee-users mailing list > >>>>> [email protected] > >>>>> https://lists.sourceforge.net/lists/listinfo/jdee-users > >>>> > >>> > >>> > >>> > >>> ------------------------------------------------------------------------------ > >>> Keep Your Developer Skills Current with LearnDevNow! > >>> The most comprehensive online learning library for Microsoft developers > >>> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > >>> Metro Style Apps, more. Free future releases when you subscribe now! > >>> http://p.sf.net/sfu/learndevnow-d2d > >>> _______________________________________________ > >>> jdee-users mailing list > >>> [email protected] > >>> https://lists.sourceforge.net/lists/listinfo/jdee-users > >> > > > > > > > > ------------------------------------------------------------------------------ > > Keep Your Developer Skills Current with LearnDevNow! > > The most comprehensive online learning library for Microsoft developers > > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > > Metro Style Apps, more. Free future releases when you subscribe now! > > http://p.sf.net/sfu/learndevnow-d2d > > _______________________________________________ > > jdee-users mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/jdee-users > ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ jdee-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jdee-users
