File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes package Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "package" Watch "package" New topic
Author

package

jidish kumar
Greenhorn

Joined: Sep 05, 2003
Posts: 3
yeah i had a doubt
yeah how can i set a classpath which i had made a package called
mypack
and the class name is acct.i had saved in F:\mypack
when i compile there is no error
when i run from the same F:\mypack it is showing an error
and when i removed mypack folder there is no error
so i want to know how class path are setting
myjava file is on D:\jdk1.3\bin
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

You should set the classpath to 'F:\' and run the file with its full classname - 'mypack.acct'.

Moving this to Java in General.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: package
 
Similar Threads
Importing Packages & Classpath
class access
Simple Package Problem.....
path issue
Help with Package understanding