Home > Mobile >  How to import a package from another folder?
How to import a package from another folder?

Time:09-29

I am trying to save all packages in lib/Package folder and my main program where i want to >import it is save in src file as shown in picture. How could i import Add package to perform task. I m new in java. the path of package is C:\Users\user_name\Documents\GitHub\NewProjectA\lib\packages the path of main file is C:\Users\sumit\Documents\GitHub\NewProjectA\src please help me to understand it in a easy way. That how can i import a package in the main

enter image description here

CodePudding user response:

For that you need to create package under your src folder or create a diffrent moduke and import it

CodePudding user response:

You should move the lib folder into the src folder. All code in a java project will be under the src file. Therefore the Source name.

  • Related