Either I misunderstood your question, or you incorrectly copied the GWT compilation with Java byte code compilation.
Traditional Java Development
- The Java source is compiled into .class files into Java bytecode.
- Compiled .class files during development as well as during deployment.
- compiled .class files can be used in the development path and deployment class paths
- It does not matter if the .class files are banks or hierarchy folders if their location matches their respective package namespace.
- Java source files cannot be deployed in the deployment class path, but you can deploy JSP source files to war as JSPs.
Not for GWT.
- GWT is a client-side development.
- GWT compiled in Javascript.
- The resulting javascript will be packaged in a war folder.
- ie, GWT compiled into executables are javascript files.
- To compile GWT, all Java classes are source files.
- Any Java library referenced by your Java classes must also be Java source files.
GWT War
- GWT also facilitates client-side alignment and server-side communications.
- The server side is typically traditional Java deployed in a JEE military structure.
- Therefore, in the deployment war, both the GWT client is compiled into javascript and the JEE.class bytecode files.
- However, GWT JavaScript files are placed in the visible part of the war URL page along with HTML, CSS, and other URLs.
- Compiled bytecode java files or jars on the server side are placed in class and lib directories that are not addressed to URLs.
Therefore ,
- Compiled GWT deployment structures cannot be used for development.
- GWT compiled into javascript deployment war framework.
- "There is no such thing" as packing GWT compiled resources into a jar for deployment.
- Compiled GWT resources must be packaged into a URL to the war side.
- Compiled javascript files have โno such thingโ as classpath. Any javascript classpath concept is modeled for JSNI convenience.
Conclusion
Compiled GWT resources are unusable and will not be visible for GWT development, because ... GWT development requires a java source, and deploying a GWT client is javascript in a war, and javascript is not like bans / bytecode files.
Therefore, in GWT there is โno such thingโ as can packaging, which can be used for both development and deployment. In some examples and tutorials, package development and deployment files are installed in one jar, but this jar is essentially a zip code that you must first break down the deployment pieces from the development components.
GWT Development jars = source banks,
GWT deployment = war of javascript and resources.
Before you start working in GWT, you must have at least 3-6 months of experience when writing traditional JEE applications with JSP, servlets, HTML and javascript. This will help you instill a strong sense of segregation of the server side against the client side, the war against the bank and, therefore, understand why GWT was invented in the first place. You would understand the deployment process.
source share