This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ant Build Problem

 
Javan Roberts
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1557
5
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rob Spoor
Sheriff
Pie
Posts: 20510
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Anayonkar Shivalkar
Bartender
Posts: 1557
5
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Spoor wrote:The compiler error says that symbol buildCompleteMenuBar cannot be found

my bad. Sorry.
 
Javan Roberts
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic