Results 1 to 5 of 5
  1. #1
    juan4412 is offline Member
    Join Date
    Jun 2013
    Posts
    6
    Rep Power
    0

    Default Moving files to new package

    I have about 30 .java files under a package. I now need to move them to another package. Can someone walk me through 1st how to create a new package, then how to move the files from package to package.

    Currently they are under (default package) I need to create a package called Old Files and move all of the .java files to the new (Old Files) package I am going to create.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default Re: Moving files to new package

    The easiest way that I do it is to create my new package in Eclipse and then drag the files from the old package into the new one. Done.

  3. #3
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,988
    Rep Power
    9

    Default Re: Moving files to new package

    Are you using an IDE, or doing this by hand? Recommended reading: Creating and Using Packages (The Java™ Tutorials > Learning the Java Language > Packages)
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  4. #4
    juan4412 is offline Member
    Join Date
    Jun 2013
    Posts
    6
    Rep Power
    0

    Default Re: Moving files to new package

    Quote Originally Posted by Fubarable View Post
    The easiest way that I do it is to create my new package in Eclipse and then drag the files from the old package into the new one. Done.
    Very simple. Thanks.

  5. #5
    juan4412 is offline Member
    Join Date
    Jun 2013
    Posts
    6
    Rep Power
    0

    Default Re: Moving files to new package

    Quote Originally Posted by KevinWorkman View Post
    Are you using an IDE, or doing this by hand? Recommended reading: Creating and Using Packages (The Java™ Tutorials > Learning the Java Language > Packages)
    Thanks for the reading. Will help me getter a better grasp on it all.

Similar Threads

  1. Help moving the selected files
    By Radu in forum New To Java
    Replies: 1
    Last Post: 10-10-2011, 09:31 AM
  2. moving files (text/immages) into jar
    By dko in forum Advanced Java
    Replies: 5
    Last Post: 05-26-2011, 03:20 AM
  3. Can you run files without a package?
    By twiggy62 in forum NetBeans
    Replies: 6
    Last Post: 02-15-2010, 07:50 AM
  4. Moving files in Java
    By techbossmb in forum Advanced Java
    Replies: 1
    Last Post: 10-09-2009, 01:55 PM
  5. Help with moving jpeg files
    By Umi in forum New To Java
    Replies: 11
    Last Post: 09-30-2009, 01:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •