Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams Adding external jar is generally a good option, importing might result in errors though. I am not very sure about BlueJ Shashankk Shekar Chaturvedi Dec 8, 2018 at 12:25

I am not sure what your problem actually is, but here is an overview that hopefully helps:

When you want to use 3rd party JARs for your project, you need to do three things:

  • your IDE must know that x.jar will be used by the project, that is where you add an external jar in bluej, see here
  • in your source code for your classes, you have to import any 3rd party class, so that the compiler knows you want to use it
  • later, when "shipping" your project to other people, you have to include the jar files, too. And of course, your class path setup must be correct.
  • When you want to use 3rd party JARs for your project, you need to do three things:

    your IDE must know that x.jar will be used by the project, that is where you add an external jar in bluej, see here in your source code for your classes, you have to import any 3rd party class, so that the compiler knows you want to use it later, when "shipping" your project to other people, you have to include the jar files, too. And of course, your class path setup must be correct.

    First You have to Extract the .jar file into the library folder of BlueJ. Then goto to Tools option, then Preferences option, then choose Libraries & then Add File then select .jar file from BlueJ/lib/userlib/__.jar

    Thanks for contributing an answer to Stack Overflow!

    • Please be sure to answer the question . Provide details and share your research!

    But avoid

    • Asking for help, clarification, or responding to other answers.
    • Making statements based on opinion; back them up with references or personal experience.

    To learn more, see our tips on writing great answers .