The rapid deployment tools preserve the
folder structures created and dropped into a free-form project. When
dropping Java source files,
place these files in the correct package structure to avoid compilation
errors. For example, suppose a Java package
statement,
package java.src;, is defined in a Java source file, HelloWorld.java.
Simply dropping the Java source
file, HelloWorld.java, in the file path,
workspace/MyFreeForm/HelloWorld.java,
where
workspace is the directory where your rapid
deployment project resides, results in the following compilation error,
displayed in the console output:
[06:32:19 PM] [/MyFreeForm/HelloWorld.java] Added
[06:32:20 PM] [/MyFreeForm/bin/HelloWorld.class] copied to project [MyFreeFormUtility]
[06:32:20 PM] 'The declared package does not match the expected package ' in resource 'HelloWorld.java' on line number 10
To correct the compilation error, place the HelloWorld.java
source file in the following file path
workspace/MyFreeForm/java/src/HelloWorld.java