Bug 812540

Summary: Fedora ecj.jar is missing org.eclipse.jdt.core.JDTCompilerAdapter
Product: [Fedora] Fedora Reporter: Mattias Ellert <mattias.ellert>
Component: ecjAssignee: Deepak Bhole <dbhole>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 16CC: akurtako, dbhole, dpino, patrickm
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-29 16:46:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Mattias Ellert 2012-04-14 16:21:02 UTC
Description of problem:

I am trying to build a Java project the proper way for Fedora. This requires to replace all bundled jars with the Fedora distribution versions. When I replace the bundled ecj.jar with the Fedora ecj.jar the build fails with:

Class not found: org.eclipse.jdt.core.JDTCompilerAdapter

Version-Release number of selected component (if applicable):

ecj-3.4.2-9.fc15.x86_64

How reproducible:

Always

Additional info:

The Fedora ecj.spec contains the lines:

# JDTCompilerAdapter isn't used by the batch compiler
rm -f org/eclipse/jdt/core/JDTCompilerAdapter.java

Can this class be restored in the Fedora version?

Comment 1 Andrew Overholt 2012-04-16 12:33:42 UTC
Are you perhaps looking for org.eclipse.jdt.core provided (now) by eclipse-platform?

Comment 2 Diego Pino 2012-06-27 07:17:57 UTC
I experienced this issue in Fedora16. I tried to build a project with ant using Eclipse compiler, however got a "Class not found: org.eclipse.jdt.core.JDTCompilerAdapter". The reason was that Fedora could not find the ecj.jar. My ecj.jar was located at /usr/share/ant/lib. I needed to define ANT_HOME variable as:

export ANT_HOME="/usr/share/ant/"

Comment 3 Deepak Bhole 2012-06-29 16:46:30 UTC
Closing, as the class is provided by eclipse-platform per comment #1.