Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 29th, 2012  |  syntax: None  |  size: 2.02 KB  |  hits: 53  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How to set a java compiler in Netbeans
  2. warning: java/lang/Boolean.class(java/lang:Boolean.class): major version 51 is newer than 50, the highest major version supported by this compiler.
  3. It is recommended that the compiler be upgraded.
  4.        
  5. javac: invalid target release: 1.7
  6. /Applications/NetBeans/NetBeans 7.1.app/Contents/Resources/NetBeans/harness/suite.xml:184: The following error occurred while executing this line:
  7. /Applications/NetBeans/NetBeans 7.1.app/Contents/Resources/NetBeans/harness/common.xml:206: Compile failed; see the compiler error output for details.
  8.        
  9. <target name="build" depends="-init,branding,release,-hide-excluded-modules" description="Build all modules in the suite.">
  10.     <subant target="netbeans" buildpath="${modules.sorted}" inheritrefs="false" inheritall="false">
  11.         <property name="cluster.path.evaluated" value="${cluster.path.evaluated}"/> <!-- Just for speed of pre-7.0 projects -->
  12.     </subant>
  13. </target>
  14.        
  15. <nb-javac srcdir="${src.dir}" destdir="${build.classes.dir}" debug="${build.compiler.debug}" debuglevel="${build.compiler.debuglevel}" encoding="UTF-8"
  16.         deprecation="${build.compiler.deprecation}" optimize="${build.compiler.optimize}" source="${javac.source}" target="${javac.target}" includeantruntime="false">
  17.     <classpath refid="cp"/>
  18.     <compilerarg line="${javac.compilerargs}"/>
  19.     <processorpath refid="processor.cp"/>
  20. </nb-javac>
  21.        
  22. <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}"
  23. encoding="${source.encoding}" excludes="@{excludes}"
  24. executable="${platform.javac}" fork="${javac.fork}" includeantruntime="false"
  25. includes="@{includes}" source="${javac.source}" srcdir="@{srcdir}"
  26. target="${javac.target}" tempdir="${java.io.tmpdir}">
  27.        
  28. <javac debug="@{debug}" deprecation="${javac.deprecation}" destdir="@{destdir}"
  29. encoding="${source.encoding}" excludes="@{excludes}"
  30. executable="${platform.javac}" fork="yes" includeantruntime="false"
  31. includes="@{includes}" source="${javac.source}" srcdir="@{srcdir}"
  32. target="${javac.target}" tempdir="${java.io.tmpdir}">