Child pages
  • Java Client-WebStart Incremental Build
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

WOLips incremental builder will not automatically create the required jar of your client-side classes and place it in the project.woa/Contents/WebServerResources/Java/ directory as is required by a Java Client application. Without the client classes placed here, the built-in Run... command will not work properly as the client application will not have access to it's classes and WebObjects will silently fail back to EOGenericRecord. This causes the confusing condition of the application launching and likely not generating any errors, but not working correctly.

Below is a work-around until the incremental builder can be modified to create the needed directory and jar file.

  1. Add a "Java" directory to the "WebServerResources" directory in your Eclipse project.
  2. Right-click on the new directory and select: "WOLips Tools -> Include as WebServerResource"
  3. Add the following code to the "javaclient" target (See the Ant Build instructions) below the mkdir line.
    <jar basedir="${classes.dir}" includes="**/client/**/*.class,**/common/**/*.class"

This code will cause the "WOLips Ant Tools -> Install" function to put the required jar file in the project's WebServerResources directory, which the incremental builder will then pick-up and place in the build directory.

You will need to "Install" your application each time prior to running it in Eclipse, but it is much better than Eclipse's Run functionality not being available to you at all.

  • No labels