Bug 43842 - JDTCompilerAdapter doesn't find bootclasspath
Summary: JDTCompilerAdapter doesn't find bootclasspath
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 major (vote)
Target Milestone: 3.0 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 42496 43726 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-09-29 13:04 EDT by Andre Weinand CLA
Modified: 2003-10-13 07:30 EDT (History)
1 user (show)

See Also:


Attachments
javac log file (3.71 KB, text/plain)
2003-09-29 13:05 EDT, Andre Weinand CLA
no flags Details
Console output (1.06 KB, text/plain)
2003-09-29 13:07 EDT, Andre Weinand CLA
no flags Details
Replace your jdtCompilerAdapter.jar with this file and restart Eclipse (8.99 KB, application/octet-stream)
2003-09-29 14:41 EDT, Olivier Thomann CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andre Weinand CLA 2003-09-29 13:04:38 EDT
Mac OS X, 10.2.6
I20030925 with (or without) latest jdt.core (v_370)

- using PDE create Hello plugin
- from its plugin.xml file "Create Ant Build File" for it
- "Run Ant..." build.xml

Observe in Console: javac error (see attached log file)

If I uncomment the line
	<property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
everything works fine.

If I explicitely add "classes.jar" as the bootclasspath the problem disappears.
	<property name="bootclasspath"
              value="/System/Library/Frameworks/JavaVM.framework/Versions/1.4.1/Classes/
classes.jar"/>
Comment 1 Andre Weinand CLA 2003-09-29 13:05:50 EDT
Created attachment 6277 [details]
javac log file
Comment 2 Andre Weinand CLA 2003-09-29 13:07:54 EDT
Created attachment 6278 [details]
Console output
Comment 3 Andre Weinand CLA 2003-09-29 13:10:49 EDT
Oops, in the description from above I meant: "if I comment out the line..." (not "uncomment")
Comment 4 Andre Weinand CLA 2003-09-29 13:23:57 EDT
*** Bug 43726 has been marked as a duplicate of this bug. ***
Comment 5 Wassim Melhem CLA 2003-09-29 13:31:34 EDT
*** Bug 42496 has been marked as a duplicate of this bug. ***
Comment 6 Andre Weinand CLA 2003-09-29 13:43:01 EDT
May be this bug is related to bug #36405.
However, there seems to be an additional issue because the standard Java compiler uses the 
correct bootclasspath whereas the DTCompilerAdapter does not. 
Comment 7 Olivier Thomann CLA 2003-09-29 13:53:27 EDT
I will investigate it for tomorrow's build.
Comment 8 Olivier Thomann CLA 2003-09-29 14:40:37 EDT
Could you please let me know if this patch is fixing your problem?
Comment 9 Olivier Thomann CLA 2003-09-29 14:41:25 EDT
Created attachment 6279 [details]
Replace your jdtCompilerAdapter.jar with this file and restart Eclipse
Comment 10 Andre Weinand CLA 2003-09-29 16:04:40 EDT
Yes, that fixes my problem.
Cool, thanks!
Comment 11 Olivier Thomann CLA 2003-09-29 16:48:48 EDT
Fixed and released in HEAD.
Changes verified by André and Sonia with a nightly build.