Results 1 to 2 of 2

Thread: custom packages

  1. #1
    Join Date
    Nov 2010
    Posts
    1
    Rep Power
    0

    Default custom packages

    Hi everyone
    I'm studying java at university and even if i don't like much this language i want to understand how it works so i started making few tries...
    the prolem came qhen i decided to create a little package of my own.7i wrote my 2 classes (scan and print) and i copied them into my classpath in subfolders like this: $CLASSPATH/shd/io/*.class

    well I thought it would be enough but it seems it is not...

    initially everything worked but lately i realized that was because in the same path of the classes that used that package ther were a copy of my scan.class and print.class. when i removed them from my java folder (so the compiler now doesn't find them in the ./ path) every time i compile i have this error:


    javac recognises the class but says it's somehow not valid...

    can anyone tell me what to do to fix it?

  2. #2
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    12,012
    Rep Power
    20

Similar Threads

  1. Packages
    By urbim in forum Eclipse
    Replies: 2
    Last Post: 07-02-2009, 02:01 PM
  2. packages
    By fogus in forum New To Java
    Replies: 1
    Last Post: 03-24-2009, 06:14 AM
  3. Replies: 3
    Last Post: 02-12-2008, 11:03 AM
  4. Using packages
    By prfalco in forum New To Java
    Replies: 5
    Last Post: 01-31-2008, 10:38 PM

Posting Permissions

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