This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Description: Compiling simple projects with a 1.3.1 JRE (Java HotSpot(TM) Client VM 1.3.1_01) selected doesn't appear to function. Did appear to work correctly under 4.0. When selecting the 1.3.1 platform, IDE appears to be using a javac flag ('-source') which isn't compatible with the 1.3.1 compiler. Code: /* * Main.java * * Created on April 1, 2005, 12:54 PM */ package helloworld; /** * * @author alex_coates */ public class Main { /** Creates a new instance of Main */ public Main() { System.out.println("Hello World."); } /** * @param args the command line arguments */ public static void main(String[] args) { // TODO code application logic here } } Compiler Output: init: deps-jar: Compiling 1 source file to C:\cvsrepositories\power_mig\mig\HelloWorld\build\classes javac: invalid flag: -source 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 -O Optimize; may hinder debugging or enlarge class file -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 -sourcepath <path> Specify where to find input source files -bootclasspath <path> Override location of bootstrap class files -extdirs <dirs> Override location of installed extensions -d <directory> Specify where to place generated class files -encoding <encoding> Specify character encoding used by source files -target <release> Generate class files for specific VM version BUILD FAILED (total time: 1 second)
Compilation is handled by project system. Reassigning...
alex: which NB 4.1 build are you using? I believe this has been fixed recently.
Duplicate of #55608. Works fine in current build. *** This issue has been marked as a duplicate of 55608 ***
Downloaded & installed from the 4.1 Beta link off the Netbeans homepage on Thu Mar 31st. Will download again now & confirm that the problem no longer exists. alex.
4.1 Beta has been release in February and hasn't been updated since then, so you'll very likely to experience the bug again. However, daily builds of th 4.1 codeline are also available on the web site and they do include the fix.
Doh.=) Will grab the most recent from Daily Builds. alex.