1 Reply Latest reply on Dec 8, 2010 2:56 PM by gimbal2

    Re: The Bookstore1 example given with the JavaEE tutorial Bundle

      Hi all ,

      I have downloaded the JavaEE tutorial bundle from oracle site and i am trying to build the application , however i am getting the following error :-


      [echo] Compiling bookstore
      [echo] javaee.classpath.prefix is: D:\All_about_Java\GlassFish\glassfish\docs\javaee-tutorial\examples\bp-project\m
      [echo] is.glassfish.v3 is: true
      [javac] Compiling 11 source files to D:\All_about_Java\GlassFish\glassfish\docs\javaee-tutorial\examples\web\booksto
      [javac] javac: invalid target release: 1.6
      [javac] Usage: javac <options> <source files>
      [javac] where possible options include:
      [javac] -g Generate all debugging info
      [javac] -g:none Generate no debugging info
      [javac] -g:{lines,vars,source} Generate only some debugging info
      [javac] -nowarn Generate no warnings
      [javac] -verbose Output messages about what the compiler is doing
      [javac] -deprecation Output source locations where deprecated APIs are used
      [javac] -classpath <path> Specify where to find user class files
      [javac] -sourcepath <path> Specify where to find input source files
      [javac] -bootclasspath <path> Override location of bootstrap class files
      [javac] -extdirs <dirs> Override location of installed extensions
      [javac] -d <directory> Specify where to place generated class files
      [javac] -encoding <encoding> Specify character encoding used by source files
      [javac] -source <release> Provide source compatibility with specified release
      [javac] -target <release> Generate class files for specific VM version
      [javac] -help Print a synopsis of standard options
      [subant] Failure for target 'default' of: D:\All_about_Java\GlassFish\glassfish\docs\javaee-tutorial\examples\web\boo
      [subant] The following error occurred while executing this line:
      [subant] D:\All_about_Java\GlassFish\glassfish\docs\javaee-tutorial\examples\bp-project\command-line-ant-tasks.xml:93
      : Compile failed; see the compiler error output for details.


      D:\All_about_Java\GlassFish\glassfish\docs\javaee-tutorial\examples\web\bookstore1\build.xml:36: Warning: Could not find
      file D:\All_about_Java\GlassFish\glassfish\docs\javaee-tutorial\examples\web\bookstore\dist\bookstore.jar to copy.

      Can anyone help me with in getting the bookstore1 application to work .
        • 1. Re: The Bookstore1 example given with the JavaEE tutorial Bundle
          invalid target release: 1.6
          seems like the version of Java you have installed is too old. Install the latest Java 6 JDK and make sure that its bin directory is the one added to the PATH system variable, plus is the one set in the JAVA_HOME variable.

          That is basic Java stuff by the way: I hope you are familiar with Java (not only the language, but also the tools!) itself before you try to dive into Java EE development. If not, you'll probably end up being very confused and frustrated.