Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Ant Build Problem

 
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

 
Bartender
Posts: 1558
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.
 
Sheriff
Posts: 21866
105
Eclipse IDE Spring VI Editor Chrome Java Ubuntu 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: 1558
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.
 
Doe, a deer, a female deer. Ray, a pockeful of sun. Me, a name, I call my tiny ad ...
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!