• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Error while building with ant

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys,

I have win 2000 pro, db27.2 trail version, j2ee tutorial installed on my PC. I tried do the tutorial on my PC . I set all the environment variables
JAVA_HOME
J2EE_HOME
ANT_HOME
correctly.
When i tried to use ant for building with the below command at command line :
ant converter
I am getting a error as following
--------------------------------------------------------
Exception in thread "main" java.lang.NoClassDefFoundError: Files\SQLLIB\java\db2
java/zip;D:\Program
------------------------------------------------------------
Can anybody suggest what to do to get rid of this error

Thank you
GothamK
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
gothamk,
Thanks for joining JavaRanch, but could you take a quick look at the naming policy and edit your profile accordingly.
 
Chris Mathews
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to the Ant Forum...
 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
if you could tell me how you are calling....and how you are setting path...then I can tell you....are you passing any arguments to the file?
laxmi
 
gautham k
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi laxmi,
I set the variables as below
JAVA_HOME=c:\jdkse1.3;
J2EE_HOME=c:\jdksee1.3;
ANT_HOME=c:\jakarta-ant-1.3;
and
PATH=.;%JAVA_HOME%\bin; %J2EE_HOME%\bin; %ANT_HOME%\bin;
I used the Sun's j2ee deploy tool for creating the j2ee applications
I am getting the the said error when I am trying to build the application using ant.I am not passing any varaibles when building
just the command at the dos prompt
ant coverter // at the command prompt, here converter is application name
can give some suggestions
Thank you
Gautham K
 
permaculture is giving a gift to your future self. After reading this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic