It a 1.4 JVM thing (not 1.3)
Consider class Cowbell in package more.
file: Cowbell.java
--------------
package more;
import Fever
public class Cowbell {
}Then consider a class called Fever without a package.
file: Fever.java
--------------
public class Fever {
}Now try to compile them. The compiler will barf because it can't find Fever because its packageless.
$JAVA_HOME/bin/javac -d out/ Fever.java more/Cowbell.java
You should get:
more/Cowbell.java:3: '.' expected
import Fever;
^
1 error-Tim
J�r�me Duval wrote:
Then your out of luck. The java from a JSP page is always placed into >a
package. Becuase of this, you can't have packageless classes.
Tim, perhaps I don't understand what you are saying correctly, but I have no trouble using classes that are not in a package in my application. Once I am done developing they will be in a package, but for now, I don't see the point and my app works fine.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
