Share

JavaCC Eclipse Plugin

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

Problems with Ganymede on Mac OSX

  1. 2008-07-29 21:11:29 UTC
    Hi, I've tried installing the JavaCC plugin on the Ganymede Eclipse release with the update site:
    http://eclipse-javacc.sourceforge.net/
    It seems to work on Linux, but I'm having difficulty getting the plugin to work on the Mac. There aren't any errors in the error log, but the plugin fails to load correctly, no "Compile with JavaCC", no preference, no anything. Anyone have any ideas?

    Thanks for the help!
    -Scott
  2. 2008-07-31 11:38:39 UTC
    I have the exact same problem. I run eclipse with 1.5 (1.6 crashes on startup), whereas it says somewhere that eclipse-javacc requires 1.6, that is one possible explanation.
  3. 2008-08-01 09:36:01 UTC
    I was able to get highlighting and Outline by installing version 1.5.9. (Software updates, Available updates, Uncheck "show only latest")


  4. 2008-08-02 05:35:09 UTC
    Same here ... Eclipse JavaCC plugin 1.5.12, on Ganymede running on Java5 (no Java6 love for me, I have a 32 bit machine) - I unzipped the download into my Eclipse directory, verified that the files were in the plugins and features directory, but the plugin does not load.
  5. 2008-08-02 15:42:59 UTC
    Hi,
    the plug-in version 1.5.12 is targeting Java 1.6.

    I use Eclipse 3.4 and Java 1.6
    and when targeting Java 1.5 it refuses to run with java 1.6.
    Not because of the code, but because of Eclipse Ganymede.

    Eclipse reports this :
    Incompatible .class files version in required binaries.
    Project 'sf.eclipse.javacc_12' is targeting a 1.5 runtime,
    but is compiled against 'C:eclipse/plugins/org.eclipse.jdt.compiler.apt_1.0.100.v20080513-1235.jar'
    which requires a 1.6 runtime.

    Well, I switched back to Eclipse 3.2.2
    pushed a version 1.5.13 on the update site
    and a zip on http://pagesperso-orange.fr/eclipse_javacc/

    I cannot test it with java 1.6 and Ganymede.
    The update site only shows 1.5.12.
    Eclipse just silently ignores plugins that it cannot load.

    Unzipping and launching Eclipse with -clean only leads to
    The activator sf.eclipse.javacc.Activator for bundle sf.eclipse.javacc is invalid.

    I can't afford a Mac; so maybe you can test and if it fails
    grab the head version from CVS debug it and tell me what to correct.

    Remi Koutcherawy


  6. 2008-08-05 06:47:00 UTC
    Remi: I am unfamiliar with how plugin stuff works in Eclipse, so I am not able to help much. But if there is no version of that apt compiler thing that can use 1.5, it sounds difficult to fix. The 1.5.13 that you pushed doesn't show up here either. (In 3.4...)

    FWIW: the actual problem for Mac users is explained here: http://lookfirst.com/2008/06/eclipse-3x-and-java-16-on-osx.html The API SWT is written in on Mac has too limited support.

  7. 2008-08-05 08:21:51 UTC
    Hi,
    following your advice, I removed dependencies on java 1.6.

    All dependencies on JDT are removed, that means no Wizard and no Classpath test.
    I pushed a new 1.5.13 on the update site.
    Now I see this version with Eclipse 3.4.
    And you should see it too on your Mac.

    Remi
  8. 2008-08-08 10:25:59 UTC
    Hello,

    my configuration:
    MacOs X
    Java 1.6
    Eclipse 3.40

    Installation of JaVaCC Plugin 1.5.10 works. Automatic installation of 1.5.13 (via Eclipse) clicling on Options gives Error message. Manual installation of the 1.5.13 version for Java 1.5 from homepage even does not show options at all.

    Are there any solutions out there?

    Will this happen with all Java 1.6 plugins in the future?

    Cheers,

    Bastian
  9. 2008-08-09 14:01:58 UTC
    If you use Java 1.6 install version 1.5.12

    Version 1.5.13 is exactly the same, except
    -compiled with java 1.5
    -without Wizard

    I you have a solution, please give it.

    Remi
  10. 2008-08-13 07:36:04 UTC
    I use Java 1.6 on MacOS, but a Eclipse that is Java 1.5 as there is not Eclipse for MacOs that uses 1.6. I develop all my programs for Java 1.6. Version 1.5.10 is the last version of the plugin that works on my MacOs computer. All other versions do not work. Version 1.5.12 and 1.5.13 for Java 1.6 do not show the options. The 1.5 version of 1.5.13 shows in options dialog, but it says something like wrong version number in class file.

    What can I do? Was someone successfull in getting the new version running on MacOs X?

    Bastian
  11. 2008-10-04 06:17:54 UTC
    Salut Remi,

    this JavaCC looks wonderful, thank you!

    After also running into the "Bad version number in .class file" problem, I followed your instructions in 'readme_developer' and the source compiled and ran perfectly.

    From there it wasn't too hard to export a new plug-in; even though I've never done that before. After installing the new plug-in and clicking 'Change project compliance and JRE to 1.5' it looks fine.

    If it would help anyone, I could email you the .jar file of EclipseJavaCC-1.5.13 compiled on Mac OS 10.5.5, Java 1.5.0.

    Merci,
    Bruno
  12. 2008-11-13 17:59:42 UTC
    I am still having issues getting this to work in Eclipse 3.4.1 (Eclipse for Developers). 1.5.13 will not open any any JJ files. I get a "Bad Version in .class file" error whenever I try.

    I have tried to do as Bruno did importing the plug-in and trying to compile and export it on my system. I have gotten it installed, but I cannot get it to run or export.

    Anyone think they can help me out?
  13. 2009-04-01 13:50:32 UTC
    FWIW, I had the same problem and rebuilt the plugin; you can get more details and can also download the plugin.jar file that I built here:

    http://tomcopeland.blogs.com/juniordeveloper/2009/04/the-eclipse-javacc-plugin-and-mac-os-x.html

    Yours,

    Tom
    http://generatingparserswithjavacc.com/
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.