Important Concepts: Publishing
Publish means to copy and paste a project into a portfolio visible to the HTTP server so that others on the Internet can copy it or run it remotely.
For example, suppose you have a portfolio named personal.psf in /local/karen/.jws. You created the project Blink.prj in
/local/karen/.jws/Blink in portfolio personal.psf. personal.psf and Blink.prj are in locations local to your file system; only users local to your file system can access them.
You also have a portfolio named public.psf in /home/karen/public_html. This portfolio is in a directory visible to the HTTP server; it can be accessed by WorkShop users on the Internet.
You copy and paste your local Blink project into the "public" portfolio, specifying the destination /home/karen/public_html/Blink, which is visible to your HTTP server. Internet users can now access your project. They can run the public version of the Blink project or they can copy and paste it into their own local portfolio and work with it locally.
When you copy and paste a project, the following files become part of your file system:
- The .prj project file.
- The .class files created when the project was built.
- The HTML file that displays the project, if you specified an HTML file other than the default file project.tmp.html.
- The .gui file, if the project contains Visual Java information.
- The .map file used internally by the Java WorkShop .
- Any other data files (for example, .gif and .au files) that the project needs, which the project's author specified using the Project Manager.
- The .src.jws and .jws files, which contains the source files for the project. If another user copies the project, the WorkShop copies these files instead of the individual project files.
The .java source code files are copied only if the original project location contains source files and you specify you want to copy the sources.
Next lesson:
- Exercise 1: Creating a Public Portfolio