Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Creating folders in Eclipse

  1. #1
    Junior Member
    Join Date
    Jul 2013
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Creating folders in Eclipse

    Hello,

    I have some java projects in eclipse.
    I want to organize the projects into some folders in the Package Explorer.
    How can I do it? (I tried to add new folder, but it ask me to choose one of the jave projects and creates the folder in the project...)


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Creating folders in Eclipse

    While the Package Explorer looks like the typical folder hierarchy that you see with File Explorer, it isn't as flexible. You can't just move items from one folder to another without either causing errors in the project setup or changing the project setup to reflect the new structure.

    It might be easier to edit the source files that you want to belong to a new or existing project or package and then let the Eclipse "error fixer" move those source files to the new project/package folder for you.

  3. #3
    Forum VIP
    Join Date
    Jul 2010
    Posts
    1,676
    Thanks
    25
    Thanked 329 Times in 305 Posts

    Default Re: Creating folders in Eclipse

    You can create working sets. They will not reflect that way in the physical file system, but they will appear to be in folders in Eclipse.
    What you need to do is right-click the package explorer and go to New->Java->Java Working Sets. Go through the wizard and it will ask you what projects you want to add where, ect.
    When you are all done with that, find the little downwards facing triangle on the top-right corner of the package explorer (directly above the scroll bar). Press that, and go to "Top Level Elements" and select "Working Sets".
    NOTE TO NEW PEOPLE LOOKING FOR HELP ON FORUM:

    When asking for help, please follow these guidelines to receive better and more prompt help:
    1. Put your code in Java Tags. To do this, put [highlight=java] before your code and [/highlight] after your code.
    2. Give full details of errors and provide us with as much information about the situation as possible.
    3. Give us an example of what the output should look like when done correctly.

    Join the Airline Management Simulation Game to manage your own airline against other users in a virtual recreation of the United States Airline Industry. For more details, visit: http://airlinegame.orgfree.com/

  4. #4
    Junior Member
    Join Date
    Jul 2013
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Creating folders in Eclipse

    thnks!

Similar Threads

  1. creating files and folders using GUI
    By viper_pranish in forum What's Wrong With My Code?
    Replies: 1
    Last Post: March 19th, 2013, 04:31 AM
  2. Moving files between two folders
    By prakash24 in forum File I/O & Other I/O Streams
    Replies: 2
    Last Post: April 26th, 2012, 10:50 AM
  3. Creating JAR file in eclipse HELP !
    By Maheshkh in forum Java IDEs
    Replies: 3
    Last Post: September 16th, 2011, 12:37 PM
  4. WatchService - small code for monitoring folders
    By zincc in forum What's Wrong With My Code?
    Replies: 5
    Last Post: March 8th, 2011, 10:19 AM