aspose file tools*
The moose likes Beginning Java and the fly likes Ant Build Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Ant Build Problem" Watch "Ant Build Problem" New topic
Author

Ant Build Problem

Javan Roberts
Greenhorn

Joined: May 23, 2012
Posts: 4
Hi there. I'm trying to build icepdf from source so I can customize the viewer, but i'm having some issues. Im wondering if I setup my project incorrectly? Any help would be appreciated.




Buildfile: D:\eclipse\workspace\icepdf\build.xml
build.all:
update.product.info:
[copy] Copying 1 file to D:\eclipse\workspace\icepdf\core\src\org\icepdf\core\application
compile:
[mkdir] Created dir: D:\eclipse\workspace\icepdf\core\build\classes
[javac] D:\eclipse\workspace\icepdf\examples\etc\build-common.xml:77: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 229 source files to D:\eclipse\workspace\icepdf\core\build\classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 warning
jar:
[mkdir] Created dir: D:\eclipse\workspace\icepdf\core\dist
[jar] Building jar: D:\eclipse\workspace\icepdf\core\dist\icepdf-core.jar
[copy] Copying 1 file to D:\eclipse\workspace\icepdf\lib
build.all:
compile:
[javac] D:\eclipse\workspace\icepdf\examples\etc\build-common.xml:77: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 70 source files to D:\eclipse\workspace\icepdf\viewer\build\classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
[javac] D:\eclipse\workspace\icepdf\viewer\src\org\icepdf\ri\common\SwingViewBuilder.java:443: error: cannot find symbol
[javac] JMenuBar menuBar = buildCompleteMenuBar();
[javac] ^
[javac] symbol: method buildCompleteMenuBar()
[javac] location: class SwingViewBuilder
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error
[javac] 1 warning

BUILD FAILED
D:\eclipse\workspace\icepdf\build.xml:65: The following error occurred while executing this line:
D:\eclipse\workspace\icepdf\viewer\build.xml:63: The following error occurred while executing this line:
D:\eclipse\workspace\icepdf\examples\etc\build-common.xml:77: Compile failed; see the compiler error output for details.

Total time: 9 seconds
Anayonkar Shivalkar
Bartender

Joined: Dec 08, 2010
Posts: 1506
    
    5

Hello Javan Roberts,

Welcome to CodeRanch!

Please, TellTheDetails (e.g. if you think that there's a problem with ant script - providing the script itself would be helpful to others).

Apart from this, I'm not much of an ant user, but I think that the problem is because JMenuBar is not imported in D:\eclipse\workspace\icepdf\viewer\src\org\icepdf\ri\common\SwingViewBuilder.java

Please make sure that if the project compiles without using ant - if it still fails, then probably this is not an ant problem

I hope this helps.


Regards,
Anayonkar Shivalkar (SCJP, SCWCD, OCMJD, OCEEJBD)
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19696
    
  20

The ^ is wrongly placed there. The compiler error says that symbol buildCompleteMenuBar cannot be found. So Javan, you need to make sure that the method exists, without any parameters. Otherwise you will need to fix that - either remove any parameters from the method, or (more likely) add arguments to the method call.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Anayonkar Shivalkar
Bartender

Joined: Dec 08, 2010
Posts: 1506
    
    5

Rob Spoor wrote:The compiler error says that symbol buildCompleteMenuBar cannot be found

my bad. Sorry.
Javan Roberts
Greenhorn

Joined: May 23, 2012
Posts: 4
Glad to be here thanks!

Thank you, looks like it was a silly newbie error on my part, I commented out that piece and forgot to uncomment. Still new to this java thing. I should probably get back to the books before digging around.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ant Build Problem