Uploaded image for project: 'Commons Crypto'
  1. Commons Crypto
  2. CRYPTO-66

Warnings compiling - bootstrap class path not set

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      The following appears in the build output:

      [exec] "$JAVA_HOME/bin/javac" -source 1.6 -target 1.6 -d target/jni-classes -sourcepath src/main/java src/main/java/org/apache/commons/crypto/random/OpensslCryptoRandomNative.java
      [exec] warning: [options] bootstrap class path not set in conjunction with -source 1.6

      This can be fixed by adding something like the following to Makefile:

      $(JAVAC) $(BOOT) -source 1.6 ...

      where

      BOOT_LIB:=$(JAVA_HOME)/jre/lib/rt.jar
      BOOT:=-bootclasspath $(BOOT_LIB)

      The BOOT variables should probably be defined in Makefile.common

      Attachments

        Activity

          People

            dapengsun Dapeng Sun
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: