• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

importing files in nebeans

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
commands
import org.apache.commons.cli.*;

i giving me the error that package does not exist
i have downloaded the package but how should i add it to the build path of the project in net beans.
and what if was not using netbeans
 
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is why beginners are recommended not to use IDEs - you have two learning curves, Java and the IDE.
So, dump the IDE for the moment and just use a good programming editor - Notepad++ is one that is often recommended around here but there are others as well. Search the forums for Notepad++ and you will find posts that list the others.

archit thakur wrote:and what if was not using netbeans


To get javac to find your jar file you need to include it in your classpath. You can specify this using the -cp option.
 
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Joanne Neal wrote: . . . Search the forums for Notepad++ and you will find posts that list the others. . . .

Nice to see you again, Joanne.

Try jEdit, Notepad2 or TextPad.
On *nix systems, here are several which come with the platform, eg gedit, Kate. I usually use gedit, but Kate is probably even better.
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:Kate is probably even better.


Should I be jealous ?
 
Campbell Ritchie
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, you should be jealous.
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Okay. My face has acquired an appropriate shade of green.
Keep a close eye on your rabbits or hide any large cooking pans.
 
archit thakur
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
@campbell and joanne
thanks for your help.
but as a part of our curriculum its (kind of) mandatory for us to use netbeans.
please solve the query for netbeans as well.
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Open your project's properties dialog and see what you can find in there. I could tell you where exactly to go, but it's much more fun looking around yourself and seeing what else is in there.
 
archit thakur
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks again
i'll let you know if problem still remains
 
Campbell Ritchie
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Joanne Neal wrote: . . . hide any large cooking pans.

Ruth has a maslin pan which is about 2 foot across. Is that large enough for me to hide?
 
reply
    Bookmark Topic Watch Topic
  • New Topic