facebook

How to create a directory and not make it part of a package

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #252588 Reply

    jadeite1000
    Member

    To Whom It May Concern:

    I have the following directory:
    c:\eclipse\workspace\ProSpringChapter4\src\

    I right clicked on the directory src and click “New” and than “Folder”.
    I called the folder “java”. My new directory structure is
    c:\eclipse\workspace\ProSpringChapter4\src\java.
    I right click on src\java and choose import. I choose file system, with radio button “Create selected folders only” selected. I selected the following folder:c:\ProSpring\Chapters\ch4\src\java. It gives an “import” screen. I clicked on the check box in the order: java\com\apress\prospring\ch4\autowiring.
    It creates the following directory in my src\java\com\apress\prospring\ch4\autowiring\ which is what I wanted.

    The problem is the the file ArtworkSender.java in the folder src\java\com\apress\prospring\ch4
    which has the package
    com.apress.prospring.ch4 is giving the error package besides the package name the following:
    The declared package does not match the expected package apress.prospring.ch4. I don’t anything why myeclipse is giving me this error when the java file ArtworkSender.java has the right package “com.apress.prospring.ch4”. How do I tell myEclipse that the current package in the ArtworkSender.java file is correct?

    Yours,

    Desperate

    #256406

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

    You need to go to your build path and adjust your Source Directories

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: How to create a directory and not make it part of a package

You must be logged in to post in the forum log in