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.

Bug 57429 - Illegal Javac Flag '-source' Used Against 1.3.1 Platform Project
Summary: Illegal Javac Flag '-source' Used Against 1.3.1 Platform Project
Status: RESOLVED DUPLICATE of bug 55608
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-04 15:06 UTC by alex_coates
Modified: 2005-04-05 17:40 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description alex_coates 2005-04-04 15:06:51 UTC
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)
Comment 1 Martin Matula 2005-04-04 21:55:15 UTC
Compilation is handled by project system. Reassigning...
Comment 2 Jan Chalupa 2005-04-05 06:43:56 UTC
alex: which NB 4.1 build are you using? I believe this has been fixed recently.
Comment 3 Tomas Zezula 2005-04-05 07:46:14 UTC
Duplicate of #55608. Works fine in current build.

*** This issue has been marked as a duplicate of 55608 ***
Comment 4 alex_coates 2005-04-05 17:28:35 UTC
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.
Comment 5 Jan Chalupa 2005-04-05 17:35:57 UTC
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.
Comment 6 alex_coates 2005-04-05 17:40:32 UTC
Doh.=)  Will grab the most recent from Daily Builds. 

alex.