Can a class be found if package has changed?

Hello:

I have a program that referrence a class from a thirdparty package "com.test":

import com.test.*;

public Class test{

::

testClass a =new testClass();

::

}

The class testClass is inside the package com.test. The program is compiled and packaged into a jar file and sent to the thirdparty. But the package on the thirdparty side has been changed from "com.test" to "test.com", and the thirdparty claims that they were able to execute the above class that referrening the old package in the jar file that I sent them, is that possible? How does java find a class at runtime, does it use the full package name or just the class name?

thanks in advance!

[869 byte] By [Tony1965a] at [2007-11-27 0:58:16]
# 1
No a class cannot be found if the package has changed. It might be possible that they are still including the old version with the old package name in the same jar
tjacobs01a at 2007-7-11 23:32:07 > top of Java-index,Java Essentials,Java Programming...
# 2

> they were

> able to execute the above class that referrening the

> old package in the jar file that I sent them, is that

> possible?

Only if they also had the old class on the classpath.

> How does java find a class at runtime, does

> it use the full package name or just the class name?

It does always use the fully qualified name. (There are no imports in the class file)

Kaj

kajbja at 2007-7-11 23:32:07 > top of Java-index,Java Essentials,Java Programming...