• 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
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

how to compile classes not in API

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am writing a code on telnet networking , i downloaded a library to help me with some classes but i can't compile it because it displays errors like package does not exit. please i need to know how to compile it. here is a snippet of the code



[Added code tags - see UseCodeTags for details]
 
Ranch Hand
Posts: 679
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You need to include the jar file in your classpath.

Kene Ifedi wrote:i can't compile it because it displays errors like package does not exit.


It also helps if you tell us what the exact errors are, rather than just what they are like.
 
Ranch Hand
Posts: 36
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
did you include all the jars from http://commons.apache.org/net/download_net.cgi in your classpath?


From http://commons.apache.org/net/download_net.cgi download a version like http://apache.techartifact.com/mirror//commons/net/binaries/commons-net-3.1-bin.zip
, extract zip/ tar, include commons-net-3.1.jar in your classpath besides other jars if you use them later (like log4j)


you could use ant to make a classpath jar ... look at http://ant.apache.org/manual/Tasks/manifestclasspath.html
 
reply
    Bookmark Topic Watch Topic
  • New Topic