|
|
|
Jonathon Fletcher
|
Some javascript/style in this post has been disabled (why?)
I am compiling 0.5.0 I followed the instructions at: http://trac.marketcetera.org/trac.fcgi/wiki/0.5.0/Marketcetera/BuildingPlatform I get as far as % mvn install which stops with the following error: [INFO] [compiler:compile] [INFO] Compiling 151 source files to /usr/home/mirror/marketcetera/marketcetera-platform/source/core/target/classes [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE [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 Where am i going wrong? [marketcetera@storage ~/marketcetera-platform]$ uname -a FreeBSD storage.zenbu.lan 7.0-STABLE FreeBSD 7.0-STABLE #18: Sun Jun 29 09:49:03 JST 2008 [hidden email]:/usr/obj/usr/home/mirror/freebsd/src/sys/GENERIC i386 [marketcetera@storage ~/marketcetera-platform]$ pkg_info | grep jdk diablo-jdk-1.5.0.07.01_10 Java Development Kit 1.5.0_07.01 jdk-1.5.0.14p8_2,1 Java Development Kit 1.5.0 jdk-1.6.0.3p4_2 Java Development Kit 1.6.0 Thanks, Jonathon _______________________________________________ _______________________________________________ Marketcetera Users mailing list Marketcetera Documentation: http://trac.marketcetera.org To unsubscribe, go to http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-users or send an email to [hidden email]. |
||||||||||||||||
|
Colin DuPlantis-2
|
If you say, "javac -version", what do you get back? I suspect that,
since you have multiple versions of java installed, the first one that comes up in your path is not the 1.6 version. Jonathon Fletcher wrote: > > I am compiling 0.5.0 > I followed the instructions > at: http://trac.marketcetera.org/trac.fcgi/wiki/0.5.0/Marketcetera/BuildingPlatform > > I get as far as > % mvn install > > which stops with the following error: > > [INFO] [compiler:compile] > [INFO] Compiling 151 source files to > /usr/home/mirror/marketcetera/marketcetera-platform/source/core/target/classes > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD FAILURE > [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 > > > > > Where am i going wrong? > > [marketcetera@storage ~/marketcetera-platform]$ uname -a > FreeBSD storage.zenbu.lan 7.0-STABLE FreeBSD 7.0-STABLE #18: Sun Jun 29 > 09:49:03 JST 2008 [hidden email] > <mailto:[hidden email]>:/usr/obj/usr/home/mirror/freebsd/src/sys/GENERIC > i386 > > [marketcetera@storage ~/marketcetera-platform]$ pkg_info | grep jdk > diablo-jdk-1.5.0.07.01_10 Java Development Kit 1.5.0_07.01 > jdk-1.5.0.14p8_2,1 Java Development Kit 1.5.0 > jdk-1.6.0.3p4_2 Java Development Kit 1.6.0 > > > Thanks, > Jonathon > > > > ------------------------------------------------------------------------ > > _______________________________________________ > _______________________________________________ > Marketcetera Users mailing list > Marketcetera Documentation: http://trac.marketcetera.org > To unsubscribe, go to > http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-users or send an email to [hidden email]. _______________________________________________ Marketcetera Users mailing list Marketcetera Documentation: http://trac.marketcetera.org To unsubscribe, go to http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-users or send an email to [hidden email]. |
|
toli
|
Jonathon,
Also make sure that you copy the default build profile in the top-level directory: $ cp profiles.xml.sample profiles.xml -- Toli Kuznets http://www.marketcetera.com: Open-Source Trading Platform download.run.trade. _______________________________________________ _______________________________________________ Marketcetera Users mailing list Marketcetera Documentation: http://trac.marketcetera.org To unsubscribe, go to http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-users or send an email to [hidden email]. |
||||||||||||||||
|
Jonathon Fletcher
|
In reply to this post
by Colin DuPlantis-2
Colin, You are right. Looks like I default to 1.5 on my machine. Do I need 1.6 to compile marketcetera ? Regards, Jonathon % javac -version javac 1.5.0_14-p8 javac: no source files 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 On Jul 13, 2008, at 11:41 PM, Colin DuPlantis wrote: > If you say, "javac -version", what do you get back? I suspect that, > since you have multiple versions of java installed, the first one > that comes up in your path is not the 1.6 version. > > Jonathon Fletcher wrote: >> I am compiling 0.5.0 >> I followed the instructions at: http://trac.marketcetera.org/trac.fcgi/wiki/0.5.0/Marketcetera/BuildingPlatform >> I get as far as >> % mvn install >> which stops with the following error: >> [INFO] [compiler:compile] >> [INFO] Compiling 151 source files to /usr/home/mirror/marketcetera/ >> marketcetera-platform/source/core/target/classes >> [INFO] >> ------------------------------------------------------------------------ >> [ERROR] BUILD FAILURE >> [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 >> Where am i going wrong? >> [marketcetera@storage ~/marketcetera-platform]$ uname -a >> FreeBSD storage.zenbu.lan 7.0-STABLE FreeBSD 7.0-STABLE #18: Sun >> Jun 29 09:49:03 JST 2008 [hidden email] <mailto:[hidden email] >> >:/usr/obj/usr/home/mirror/freebsd/src/sys/GENERIC i386 >> [marketcetera@storage ~/marketcetera-platform]$ pkg_info | grep jdk >> diablo-jdk-1.5.0.07.01_10 Java Development Kit 1.5.0_07.01 >> jdk-1.5.0.14p8_2,1 Java Development Kit 1.5.0 >> jdk-1.6.0.3p4_2 Java Development Kit 1.6.0 >> Thanks, >> Jonathon >> ------------------------------------------------------------------------ >> _______________________________________________ >> _______________________________________________ >> Marketcetera Users mailing list >> Marketcetera Documentation: http://trac.marketcetera.org >> To unsubscribe, go to http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-users >> or send an email to [hidden email]. _______________________________________________ _______________________________________________ Marketcetera Users mailing list Marketcetera Documentation: http://trac.marketcetera.org To unsubscribe, go to http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-users or send an email to [hidden email]. |
||||||||||||||||
|
Colin DuPlantis-2
|
Jonathon,
As of 0.5.0, you do need 1.6. - C Jonathon Fletcher wrote: > > Colin, > > You are right. Looks like I default to 1.5 on my machine. Do I need > 1.6 to compile marketcetera ? > > Regards, > Jonathon > > % javac -version > javac 1.5.0_14-p8 > javac: no source files > 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 > > > > On Jul 13, 2008, at 11:41 PM, Colin DuPlantis wrote: > >> If you say, "javac -version", what do you get back? I suspect that, >> since you have multiple versions of java installed, the first one that >> comes up in your path is not the 1.6 version. >> >> Jonathon Fletcher wrote: >>> I am compiling 0.5.0 >>> I followed the instructions at: >>> http://trac.marketcetera.org/trac.fcgi/wiki/0.5.0/Marketcetera/BuildingPlatform >>> >>> I get as far as >>> % mvn install >>> which stops with the following error: >>> [INFO] [compiler:compile] >>> [INFO] Compiling 151 source files to >>> /usr/home/mirror/marketcetera/marketcetera-platform/source/core/target/classes >>> >>> [INFO] >>> ------------------------------------------------------------------------ >>> [ERROR] BUILD FAILURE >>> [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 >>> Where am i going wrong? >>> [marketcetera@storage ~/marketcetera-platform]$ uname -a >>> FreeBSD storage.zenbu.lan 7.0-STABLE FreeBSD 7.0-STABLE #18: Sun Jun >>> 29 09:49:03 JST 2008 [hidden email] >>> <mailto:[hidden email]>:/usr/obj/usr/home/mirror/freebsd/src/sys/GENERIC >>> i386 >>> [marketcetera@storage ~/marketcetera-platform]$ pkg_info | grep jdk >>> diablo-jdk-1.5.0.07.01_10 Java Development Kit 1.5.0_07.01 >>> jdk-1.5.0.14p8_2,1 Java Development Kit 1.5.0 >>> jdk-1.6.0.3p4_2 Java Development Kit 1.6.0 >>> Thanks, >>> Jonathon >>> ------------------------------------------------------------------------ >>> _______________________________________________ >>> _______________________________________________ >>> Marketcetera Users mailing list >>> Marketcetera Documentation: http://trac.marketcetera.org >>> To unsubscribe, go to >>> http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-users or >>> send an email to [hidden email]. > _______________________________________________ Marketcetera Users mailing list Marketcetera Documentation: http://trac.marketcetera.org To unsubscribe, go to http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-users or send an email to [hidden email]. |
||||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |