A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
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:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Trouble with packages.
error while compiling
Package still not working
Compiling java files in different packages with single javac command
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013