Announcement Announcement Module
No announcement yet.
packaging question Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • packaging question

    whyo does EVERY folder added to an eclipse project have to be apart of a package..for example i have a project with

    Project - /src/com/sprinttest - contains my source code
    but i dont want 'src' to be a part of the package ie

    package com.sprinttest;
    not pacakge;

    but eclipse wont let me do this..why?

    i usually work from the command line and i like to seperate my code by folders, but i dont want my class files to be packaged with a 'src' package

    what can i do?

  • #2
    Java Build Path not set correctly

    Set your source directory in your Java Build Path in "project preferences".
    Point it at the src directory and your packages will be understood to be in src with com as the start of the package name.