Jump to content
  • Advertisement
Sign in to follow this  
Stranger

[java] Java and IntelliJ questions.

This topic is 4836 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have some questions about these two things if anyone could reply: 1) How do I include packages from other projects in IntelliJ? 2) How do I import other .jar in my classpath in IDEA? 3) I have a new .jar file I want to add in the Java JDK folder so that every time I start a project is loaded automatically. In which folder of the main Java JDK should I will place it?

Share this post


Link to post
Share on other sites
Advertisement

1. Add the desired package's compiled code directory (usually "classes") to your current project's classpath

2. To add something to classpath, click the project settings button just to the right of the build/debug buttons (It looks like a wrench with a gear). Go to paths. Then go to Libraries(Classpath). From here you can add a .jar file, or you can choose add a directory to add another project's packages (as per question 1).

3. For me, this directory would be: /Java/jdk1.5.0_02/lib

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!