DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
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.

    >



Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links