• 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
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • fred rosenberger
  • salvin francis

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: 73267
332
  • 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: 73267
332
  • 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: 73267
332
  • 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?
 
When I was younger I felt like a man trapped inside a woman’s body. Then I was born. My twin is a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic