-
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.
-
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.
-
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
Forum Rules
|
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
|
Bookmarks