File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Trouble with packages.
Joined: Aug 13, 2003
Jul 01, 2004 00:56:00
I am making two directories pack2 and pack3 under c:/java/pack1. The directory structure is:
public class abc
public void abc()
System.out.println("Hello I am ABC.");
public class hello
public static void main(
abc obj=new abc();
When I try to compile hello.java it gives compilation error at
import pack1.pack2.*; does not exist.
Joined: Mar 06, 2001
Jul 01, 2004 01:11:00
Please don't post the same question in multiple forums. It creates duplicate conversations and wastes the time of the people trying to help you.
I'm going to ask for this thread to be closed. Anyone who wants to help should see the copy
I agree. Here's the link:
subject: Trouble with packages.
Compiling java files in different packages with single javac command
Package still not working
error while compiling
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014