Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Package, CLASSPATH, Import fundas
- From: ARohatgi at NIIT.com (ARohatgi@xxxxxxxx)
- Subject: Package, CLASSPATH, Import fundas
- Date: Sat Nov 12 19:30:16 2005
Hi All Please consider the following scenario File TP.java (Location is c:\pwd Package k1; // rest of the code File TP1.java (Location is c:\pwd Import k1.* // code to user TP I compile the TP.java file and move it to c:\pwd\k1 The classpath is set to . ; c:\jdk1.1.3\lib\classes.zip When I compile TP1.java it gives a error, saying File .\TP.java does not contain type TP as expected.Please adjust the classpath so that file does not appear in the unnamed package. As per my knowledge the compiler looks at the .java file for a existing .class file only if both the files are in the same directory. Any help ? Amit Rohatgi , 620 3576 arohatgi@xxxxxxxx NIIT Ltd. --- To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx
- Prev by Date: idl inheritance
- Next by Date: [no subject]
- Previous by thread: Inheritance Question
- Next by thread: [no subject]
- Index(es):