Class Not Found


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Class Not Found

  1. #1
    Bong bongortiz Guest

    Class Not Found


    I have a java class called x in e:\bin\com\abc folder. It has a package statement,

    package com.abc; at the beginning.

    My classpath says, set classpath=e:\bin

    I still can't find the class when I call it from another class. What's wrong
    here ?

    Thanks.

  2. #2
    Ruchi Dhar Guest

    Re: Class Not Found


    How did you compile that class? You have to compile that class from the e:\bin
    directory by giving

    javac com\abc\x.java

    apart from this there shouldn't be any problem.

    "Bong" bongortiz wrote:
    >
    >I have a java class called x in e:\bin\com\abc folder. It has a package

    statement,
    >
    >package com.abc; at the beginning.
    >
    >My classpath says, set classpath=e:\bin
    >
    >I still can't find the class when I call it from another class. What's wrong
    >here ?
    >
    >Thanks.



  3. #3
    bong Guest

    Re: Class Not Found


    I got it, Thanks.

    "Ruchi Dhar" <ruchi.dhar@tradeum.com> wrote:
    >
    >How did you compile that class? You have to compile that class from the

    e:\bin
    >directory by giving
    >
    >javac com\abc\x.java
    >
    >apart from this there shouldn't be any problem.
    >
    >"Bong" bongortiz wrote:
    >>
    >>I have a java class called x in e:\bin\com\abc folder. It has a package

    >statement,
    >>
    >>package com.abc; at the beginning.
    >>
    >>My classpath says, set classpath=e:\bin
    >>
    >>I still can't find the class when I call it from another class. What's

    wrong
    >>here ?
    >>
    >>Thanks.

    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center