Results 1 to 2 of 2

Thread: packaging question

  1. #1

    Default 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 src.com.sprinttest;

    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. #2
    Join Date
    Nov 2006
    Location
    Montreal Canada
    Posts
    67

    Default 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.

Posting Permissions

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