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 56574 - Cannot compile project with JDK 1.3 on Mac - javac args problem
Summary: Cannot compile project with JDK 1.3 on Mac - javac args problem
Status: RESOLVED DUPLICATE of bug 55608
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-16 22:58 UTC by _ tboudreau
Modified: 2005-03-21 12:26 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 _ tboudreau 2005-03-16 22:58:13 UTC
If I set the platform for a J2SE project to the JDK 1.3 that comes with MacOS, the compile fails - javac 
does not understand "-source" and "-target".  Not sure what the deal is - older versions of java on mac 
were based on MSVM, maybe they were using a different javac than Sun's for that release.

Anyway, some workaround should be done for this case - there are very real use cases for using 1.3 on 
mac (applets, 1.3 had hardware graphics acceleration and 1.4 doesn't...).

init:
deps-clean:
Deleting directory /Users/tim/Cal/build
Deleting directory /Users/tim/Cal/dist
clean:
init:
deps-jar:
Created dir: /Users/tim/Cal/build/classes
Compiling 4 source files to /Users/tim/Cal/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 Milan Kubec 2005-03-17 15:29:46 UTC
Tim, what build do you use? I'd bet it's already fixed in recent trunk builds.
Comment 2 Jan Chalupa 2005-03-18 15:55:44 UTC
Tim, could you please verify with up-to-date sources? According to Milan, the
problem was not specific to Mac and occurred with all 1.3-based platforms as
javac  up to 1.3 didn't support -target and -source switches. Milan also says it
has been fixed. Unfortunately, no bug was logged for this as it was found during
the netbeans.org outage.

Please try again and let us know. Thanks.
Comment 3 Tomas Zezula 2005-03-21 12:26:42 UTC

*** This issue has been marked as a duplicate of 55608 ***