Problem compiling ehcache

  • Jonathan Barbero


    I downloaded the ehcache code from (there is no 1.6.1 tag) and I tried to compile it.
    When it tries to execute the RMIC tasks it throws this error message:

    [INFO] [compiler:compile {execution: default-compile}]
    [INFO] Compiling 96 source files to C:\Documents and Settings\Jonathan\workspace
    [INFO] [antrun:run {execution: rmic}]
    [INFO] Executing tasks
         [rmic] RMI Compiling 1 class to C:\Documents and Settings\Jonathan\workspac
    [INFO] ------------------------------------------------------------------------
    [INFO] ------------------------------------------------------------------------
    [INFO] An Ant BuildException has occured: Cannot use SUN rmic, as it is not avai
    lable.  A common solution is to set the environment variable JAVA_HOME

    I set the JAVA_HOME var and the Maven vars. I'm using jdk 1.6.0_14 .
    Do you have any idea?

    Thanks in advance,

    • Greg Luck

      Greg Luck - 2009-08-05

      1.6.1 is tagged now. Was on the road - sorry.

      See for how to build. It is maven based these days.

      • Matthew Passell

        Matthew Passell - 2009-08-20

        Hi Greg,

        The page you referenced still says, "To build Ehcache from source: ... From within the ehcache/core directory, type ant".

        Now that you (and others from Terracotta) will have more time to work on Ehcache, is there a chance the build instructions will be updated?  The two times I've submitted patches, I've had to comment-out parts of the pom to get the build to complete.  Maybe it's just that I'm not very comfortable with Maven, but I'd guess that was true of others on this list as well.


      • Greg Luck

        Greg Luck - 2009-08-24


        Building from source instructions fixed. In terms of quality of the doco going forward, I asked the devs at Terracotta to review. They have found several other issues which I will be fixing today.

        These fixes goes up tomorrow.

        • Matthew Passell

          Matthew Passell - 2009-08-24

          Great.  Thanks!  I look forward to building ehcache properly, as opposed to hackily. :)



Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks