Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jgit-dev] Errors compiling jgit(master)

Hey JGit team,

I was trying to get my hands dirty building a git based browser using jruby+jgit. I got compiler errors when building jgit on java 1.5.

The contribution guide mentions that jgit needs java 1.5 to build, which clearly does not seem to be the case according to the error message.

The compile goes ahead when I switch to java 1.6. But I think this is something you might want to fix in the build scripts or the contribution guide.


Ketan |

[INFO] Building jar: /Users/ThoughtWorks/projects/dev/jgit/org.eclipse.jgit.iplog/target/org.eclipse.jgit.iplog-0.9.0-SNAPSHOT-javadoc.jar [INFO] ------------------------------------------------------------------------
[INFO] Building JGit - Console User Interface
[INFO]    task-segment: [clean, package]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting directory /Users/ThoughtWorks/projects/dev/jgit/org.eclipse.jgit.console/target
[INFO] [antrun:run {execution: translate-qualifier}]
[INFO] Executing tasks
[copy] Copying 1 file to /Users/ThoughtWorks/projects/dev/jgit/org.eclipse.jgit.console/target/META-INF
[INFO] Executed tasks
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 1 resource
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 3 source files to /Users/ThoughtWorks/projects/dev/jgit/org.eclipse.jgit.console/target/classes [INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
Failure executing javac, but could not parse the error:
javac: invalid target release: 1.6
Usage: javac <options> <source files>
where possible options include:
  -g                         Generate all debugging info
  -g:none                    Generate no debugging info
  -g:{lines,vars,source}     Generate only some debugging info
  -nowarn                    Generate no warnings
-verbose Output messages about what the compiler is doing -deprecation Output source locations where deprecated APIs are used
  -classpath <path>          Specify where to find user class files
  -cp <path>                 Specify where to find user class files
  -sourcepath <path>         Specify where to find input source files
  -bootclasspath <path>      Override location of bootstrap class files
  -extdirs <dirs>            Override location of installed extensions
  -endorseddirs <dirs>       Override location of endorsed standards path
  -d <directory>             Specify where to place generated class files
-encoding <encoding> Specify character encoding used by source files -source <release> Provide source compatibility with specified release
  -target <release>          Generate class files for specific VM version
  -version                   Version information
  -help                      Print a synopsis of standard options
  -X                         Print a synopsis of nonstandard options
  -J<flag>                   Pass <flag> directly to the runtime system

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 47 seconds
[INFO] Finished at: Mon Aug 16 17:29:07 PDT 2010
[INFO] Final Memory: 32M/63M
[INFO] ------------------------------------------------------------------------

Back to the top