Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
AW: [pde-build-dev] Headless build cannot resolve classes inorg.eclipse.swt.widgets

Ha-ha, found it myself ...
 
the build.properties specify archivesFormat=linux,gtk,x86-folder while I
am trying to build with a win32 installation.

Hope I didn't bother ...


Norbert

________________________________

Von: pde-build-dev-bounces@xxxxxxxxxxx
[mailto:pde-build-dev-bounces@xxxxxxxxxxx] Im Auftrag von Ploett,
Norbert
Gesendet: Donnerstag, 8. Dezember 2005 11:12
An: pde-build-dev@xxxxxxxxxxx
Betreff: [pde-build-dev] Headless build cannot resolve classes
inorg.eclipse.swt.widgets


Hello all,
 
I am making progress with the headless build but am encountering one
strange compile error.
Here is the scenario:
 
Start eclipse (3.1.1 Release, CDT 3.0.1 also installed, Win XP) as
headless antRunner:
 
java -jar startup.jar -data D:\Projekt\RTP\ws-ant-debug -application
org.eclipse.ant.core.AntRunner 
-buildfile
D:\Projekt\RTP\ws-ant-debug\com.siemens.ad.rtp.build\scripts\build.xml 
-Dbuilder=D:\Projekt\RTP\ws-ant-debug\com.siemens.ad.rtp.build\scripts 
-DbuildDirectory=D:\Projekt\RTP\ant-export
 
The buildfile and genericTargets.xml were copied unmodified from
org.eclipse.pde.build/scripts to the builder directory. Additionally the
builder directory contains the attached customTargets.xml and
build.properties. I had to do some unusual stuff with the fetch targets
because our sources are not stored in CVS. Instead I am copying them
from someplace. I don't think this is an issue here.
 
The feature I am building contains two plug-ins, one that we did from
scratch, and another from CDT which we are planning to patch. They both
get built as desired except that the compiler gives error messages:
 
(Self-made plugin)
=============snip 1============
    [javac] Compiling 15 source files to
D:\Projekt\RTP\ant-export\plugins\com.siemens.ad.rtp.telnetconsole\temp.
folder\telnetconsole.jar.bin
    [javac] ----------
    [javac] 1. ERROR in
D:\Projekt\RTP\ant-export\plugins\com.siemens.ad.rtp.telnetconsole\src\c
om\siemens\ad\rtp\telnetconsole\TelnetProcess.java
    [javac]  (at line 144)
    [javac]  PlatformUI.getWorkbench().getDisplay().syncExec(refresher);
    [javac]  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    [javac] The type org.eclipse.swt.widgets.Display cannot be resolved.
It is indirectly referenced from required .class files
    [javac] ----------
    [javac] 1 problem (1 error)
    [javac] Compilation failed. Compiler errors are available in
D:\Projekt\RTP\ant-export\plugins\com.siemens.ad.rtp.telnetconsole\temp.
folder\telnetconsole.jar.bin.log
    [javac] Compile failed; see the compiler error output for details.
=============snap 1============
 
(CDT based plugin)
=============snip 1============
    [javac] Compiling 49 source files to
D:\Projekt\RTP\ant-export\plugins\org.eclipse.cdt.managedbuilder.ui\temp
.folder\mgdbuildui.jar.bin
    [javac] ----------
    [javac] 1. ERROR in
D:\Projekt\RTP\ant-export\plugins\org.eclipse.cdt.managedbuilder.ui\src-
mgdbuildui\org\eclipse\cdt\managedbuilder\internal\ui\ToolsSettingsBlock
.java
    [javac]  (at line 116)
    [javac]  private class PageLayout extends Layout {
    [javac]                                   ^^^^^^
    [javac] The type org.eclipse.swt.widgets.Layout cannot be resolved.
It is indirectly referenced from required .class files
    [javac] ----------
    [javac] 1 problem (1 error)
    [javac] Compilation failed. Compiler errors are available in
D:\Projekt\RTP\ant-export\plugins\org.eclipse.cdt.managedbuilder.ui\temp
.folder\mgdbuildui.jar.bin.log
     [copy] Copying 1 file to
D:\Projekt\RTP\ant-export\plugins\org.eclipse.cdt.managedbuilder.ui\temp
.folder\mgdbuildui.jar.bin
    [javac] Compile failed; see the compiler error output for details.
=============snap 1============
 
The "missing" classes are in the platform-specific fragment
org.eclipse.swt.win32.win32.x86_3.1.1.jar which contributes to
org.eclipse.swt_3.1.0.jar.
 
I am also attaching manifest and plugin.xml files for these two
plug-ins,  neatly packaged in zip-files. Any more info I can supply?
 
Needless to say, the export of "my" plug-ins from the eclipse workbench
functions without any problems. It is only in headless mode that there
are difficulties.
 
 
Thanks for looking at this,
 
 
Norbert


Back to the top