From: thomas at tada.se (Thomas Hallgren) Date: Fri, 21 Nov 2014 08:20:34 +0100 Subject: [Pljava-dev] pljava on centos 6.5 64bit and postgres 9.? and java ? In-Reply-To: <546EB049.7070802@hogranch.com> References: <546D1072.1090803@hogranch.com> <546D29EB.101@2ndquadrant.com> <5DC2684C-C883-4393-BD8F-E1B7F3D0F912@me.com> <546E6F22.6060103@hogranch.com> <546E7881.5050006@hogranch.com> <546E838B.80607@hogranch.com> <546E9A59.2080506@hogranch.com> <546EB049.7070802@hogranch.com> Message-ID: <546EE7C2.1050001@tada.se> You'll need to set the environment JAVA6_HOME (note the 6) in order for it to compile. - thomas On 2014-11-21 04:23, John R Pierce wrote: > On 11/20/2014 5:50 PM, John R Pierce wrote: >> I put /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin in the front of the path and got exactly the same thing. > > and for MORE fun. I tried Sun JDK 1.6, and same thing > > wait, the notes/wiki did say something about compiling in JDK 1.6 was broken, so I installed Sun-err-Oracle JDK > 1.5.0_22 64bit, and enabled that as the default java with alternatives, also set my JAVA_HOME and PATH accordingly ... > > nope. weirder more different errors. > > > $ mvn compile > [INFO] Scanning for projects... > [INFO] ------------------------------------------------------------------------ > [INFO] Reactor Build Order: > [INFO] > [INFO] PostgreSQL pl/java > [INFO] PL/JAVA API > [INFO] pl/java implementation > [INFO] pl/java deploy > [INFO] pl/java Ant Tasks > [INFO] pl/java examples > [INFO] pl/java server side library > [INFO] pl/java packaging > [INFO] > [INFO] ------------------------------------------------------------------------ > [INFO] Building PostgreSQL pl/java 0.0.2-SNAPSHOT > [INFO] ------------------------------------------------------------------------ > [INFO] > [INFO] ------------------------------------------------------------------------ > [INFO] Building PL/JAVA API 0.0.2-SNAPSHOT > [INFO] ------------------------------------------------------------------------ > [INFO] > [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ pljava-api --- > [debug] execute contextualize > [INFO] Using 'UTF-8' encoding to copy filtered resources. > [INFO] skip non existing resourceDirectory /home/me/git/pljava/pljava-api/src/main/resources > [INFO] > [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ pljava-api --- > [INFO] Compiling 18 source files to /home/me/git/pljava/pljava-api/target/classes > [INFO] ------------------------------------------------------------- > [ERROR] COMPILATION ERROR : > [INFO] ------------------------------------------------------------- > [ERROR] Failure executing javac, but could not parse the error: > javac: invalid flag: -s > Usage: javac > 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 Specify where to find user class files > -cp Specify where to find user class files > -sourcepath Specify where to find input source files > -bootclasspath Override location of bootstrap class files > -extdirs Override location of installed extensions > -endorseddirs Override location of endorsed standards path > -d Specify where to place generated class files > -encoding Specify character encoding used by source files > -source Provide source compatibility with specified release > -target 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 Pass directly to the runtime system > > > [INFO] 1 error > [INFO] ------------------------------------------------------------- > [INFO] ------------------------------------------------------------------------ > [INFO] Reactor Summary: > [INFO] > [INFO] PostgreSQL pl/java ................................ SUCCESS [0.001s] > [INFO] PL/JAVA API ....................................... FAILURE [0.631s] > [INFO] pl/java implementation ............................ SKIPPED > [INFO] pl/java deploy .................................... SKIPPED > [INFO] pl/java Ant Tasks ................................. SKIPPED > [INFO] pl/java examples .................................. SKIPPED > [INFO] pl/java server side library ....................... SKIPPED > [INFO] pl/java packaging ................................. SKIPPED > [INFO] ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] ------------------------------------------------------------------------ > [INFO] Total time: 1.549s > [INFO] Finished at: Fri Nov 21 03:11:00 PST 2014 > [INFO] Final Memory: 9M/104M > [INFO] ------------------------------------------------------------------------ > [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on > project pljava-api: Compilation failure > [ERROR] Failure executing javac, but could not parse the error: > [ERROR] javac: invalid flag: -s > [ERROR] Usage: javac > [ERROR] where possible options include: > [ERROR] -g Generate all debugging info > [ERROR] -g:none Generate no debugging info > [ERROR] -g:{lines,vars,source} Generate only some debugging info > [ERROR] -nowarn Generate no warnings > [ERROR] -verbose Output messages about what the compiler is doing > [ERROR] -deprecation Output source locations where deprecated APIs are used > [ERROR] -classpath Specify where to find user class files > [ERROR] -cp Specify where to find user class files > [ERROR] -sourcepath Specify where to find input source files > [ERROR] -bootclasspath Override location of bootstrap class files > [ERROR] -extdirs Override location of installed extensions > [ERROR] -endorseddirs Override location of endorsed standards path > [ERROR] -d Specify where to place generated class files > [ERROR] -encoding Specify character encoding used by source files > [ERROR] -source Provide source compatibility with specified release > [ERROR] -target Generate class files for specific VM version > [ERROR] -version Version information > [ERROR] -help Print a synopsis of standard options > [ERROR] -X Print a synopsis of nonstandard options > [ERROR] -J Pass directly to the runtime system > [ERROR] -> [Help 1] > [ERROR] > [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > [ERROR] > [ERROR] For more information about the errors and possible solutions, please read the following articles: > [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException > [ERROR] > [ERROR] After correcting the problems, you can resume the build with the command > [ERROR] mvn -rf :pljava-api > > (and I verified, thats /exactly/ the error that the 1.5 javac gives with a -s, so its running the right compiler. > >