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 55608 - cannot compile project in NB with java 1.3 (MAC)
Summary: cannot compile project in NB with java 1.3 (MAC)
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Platform (show other bugs)
Version: 4.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
: 56574 57429 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-02-28 13:41 UTC by Pavel Rehak
Modified: 2006-03-24 13:01 UTC (History)
0 users

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 Pavel Rehak 2005-02-28 13:41:03 UTC
Create new NB project (General->JavaApplication) 
set Java Platform to JavaVN 1.3.1_xx and try 
build such a project.

Build fails ->
..
JavaApplication2/build/classes
javac: invalid flag: -source
Usage: javac <options> <source files>

Prolly apple supported java 1.3 and lesser 
doesn't have switch -source.
Comment 1 Tomas Zezula 2005-02-28 18:13:16 UTC
Checking in
j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/PlatformUiSupport.java;
/cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/PlatformUiSupport.java,v
 <--  PlatformUiSupport.java
new revision: 1.8; previous revision: 1.7
done
Comment 2 Tomas Zezula 2005-03-10 10:03:18 UTC
Checking in PlatformUiSupport.java;
/cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/PlatformUiSupport.java,v
 <--  PlatformUiSupport.java
new revision: 1.9; previous revision: 1.8
done
Comment 3 zikmund 2005-03-10 11:23:42 UTC
Both commits were applied to Web and EJB projects.
Comment 4 Tomas Zezula 2005-03-21 12:26:41 UTC
*** Issue 56574 has been marked as a duplicate of this issue. ***
Comment 5 Tomas Zezula 2005-04-05 07:46:14 UTC
*** Issue 57429 has been marked as a duplicate of this issue. ***
Comment 6 Pavel Rehak 2005-04-12 13:14:00 UTC
Verified with build 200504101930.

I've found obscure scenario how to simulate this problem once again:
import eclipse project with JDK/JRE 1.3- to netbeans, after import
try build this project and message 
javac: invalid flag: -source
Usage: javac <options> <source files>
still appears.
Changing java platform to 1.4 and back to 1.3 solves this problem.

I file issue for project importer.
Comment 7 Tomas Zezula 2005-04-12 13:16:58 UTC
The importer generated a project.xml with <explicit-platform
source-supported="true"> for JDK 1.3, it is bug in importer.