Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Folder and package oranization (please I need this o procced)

 
Vinicius Souza
Ranch Hand
Posts: 70
1
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi! This is my first post, my first language is not english but I will try to expose my problem
Im new on Java world but not new as a programmer, and Im using Netbeans. To learn Java Im creating a lot of mini projects on the structure showed below:


Im working on the project called DeskApplet and I need a public class that I created on the project called YCreator. I like my projects very organised, so I need to know how can I share classes among all projects, but on a organized way.
Thanks in advance for all replyes!
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15483
43
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!

To make the classes from one project available in another project, you will have to create a dependency in NetBeans from the other project to the first project, or you will have to add the classes from the first project in the classpath of the other project. You can set this by selecting File / Project Properties, Libraries. Use the buttons "Add Project...", "Add Library..." or "Add JAR/Folder" to add a depencency on another project, a library or a JAR file or folder with class files.

Please check your private messages for an administrative matter.
 
Vinicius Souza
Ranch Hand
Posts: 70
1
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you a lot! Exactly that I was searching for! I started using Netbeans and Java and I like to learn the correct way to do something. Now I can move on!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic