Home Forums Kamanja Forums Features & Releases compiling Kamanja 1.2 from source

This topic contains 7 replies, has 4 voices, and was last updated by  Archived_User13 1 year, 8 months ago.

  • Author
    Posts
  • #13439 Reply

    Archived_User64
    Participant

    Hi all ;

    am trying to compile the 1.2 new release but keep getting :

    [error] (UtilsForModels/compile:compileIncremental) javac returned nonzero exit code
    [error] (Serialize/compile:compileIncremental) javac returned nonzero exit code
    [error] (KamanjaBase/compile:compileIncremental) javac returned nonzero exit code
    [error] Total time: 1691 s, completed Dec 14, 2015 12:46:23 PM

    I try to compile Kamanja 1.1 on the same machine it works fine , also spring8 branch is compiled fine but I can’t find the “kamanja” script in the bin directory , dev branch freeze when updating the “StorageManager” .

    Thnaks
    Saleh

  • #13440 Reply

    Archived_User28
    Participant

    Can you post what versions of sbt, scala & java are you using? That is always helpful for compilation issues.

  • #13441 Reply

    Archived_User64
    Participant

    Hi Pokuri ,
    yes sure .

    java 1.7.0
    scala 2.10.4
    sbt 0.13.9

    also i forget that the link on http://kamanja.org/download-v1-2/ the link that pointed to the source file return 404 even if am logged in .

    Thanks
    Saleh

  • #13442 Reply

    Archived_User79
    Participant

    Just asked william, and all the 1.2 models compile fine for him..

    Can you paste the entire compile log? There should be errors prior to the messages that you sited

    Dan

  • #13443 Reply

    Archived_User64
    Participant

    Hi ,
    i found the cause of the problem , i use “open jdk 1.7” on my VM , so i switch to “oracle jdk 1.7” and everything works fine , reading more about the issue it looks like there is a problem with “sbt” and “open jdk” , i think we should point that on the installation document .

    http://stackoverflow.com/questions/31132664/how-to-find-out-what-happened-when-sbt-says-javac-returned-nonzero-exit-code

    Thanks
    Saleh

  • #13444 Reply

    Archived_User13
    Participant

    Hi Saleh,
    kamanja.org already says to get the JDK from:

    http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

    Which installation doc are you referring to?
    thanks,
    alison

  • #13445 Reply

    Archived_User64
    Participant

    Hi Alison ,

    I mean if java is already installed , it should be removed and then install the correct jdk .

    Thanks
    Saleh

  • #13446 Reply

    Archived_User13
    Participant

    Hi Saleh,
    I see. Thank you for the tip! I will find a place to put it on kamanja.org so folks won’t have the trouble you ran into.
    thanks again,
    alison

Reply To: compiling Kamanja 1.2 from source
Your information: