Setting Class Path
For those of you who are new to Netbeans, you have to resolve Problems with P0.
Read this post on Piazza to see the Medieval incantations to fix this.
prerequisite for this course is that you know Java. And an
important indicator is that you can set your Java class path.
If you need a refresher, read this How to Set
your Classpath and setting classpaths in Netbeans.
you have difficulties with this assignment, you should reconsider your
enrollment in this course. I'm serious. You're not ready if
Work alone. If you work in groups or consult with your classmates, you will fail
this assignment. DO YOUR OWN WORK!
Finally, finish this assignment a.s.a.p. and get on with assignment P1.
The AssignmentInstall JDK.
is a JAR file SetDate.jar. Place it on your classpath and
report the output of
> java setdate.Main
> ls Post* // or dir Post*
- Here is another JAR file, JavaApplication53.jar. Place it on your classpath and
report the output of:
> java javaapplication53.Main
- Here is a zip file, ziptest.zip. Place it on your classpath and
report the output of:
> java ziptest.Main
- Here is a Java file, WH.java, which belongs to package WHExample. Place it on your
classpath. Report the output of:
> java WHExample.WH
- Write a program that calls all 4 of the above executables in main(String args).
writing this teeny program is trickly. I wrote it using
command-line tools, relying on the correct setting of my classpath.
I supply a NetBeans project for you to complete. In it you'll
find all of the downloads in a Needed/ directory. Use the "Add
JAR/Folder" option to add Jar files and zipfiles. WH.java is
given in the Needed directory; compile it to WH.class and place this
class in Needed/WHExample/ to be able to access it via Netbeans.
program works, you should be able to invoke it from the command line
> java runem
Of course to get the above to work, you'll need to set your command-line classpath correctly. Hint: it is not that different from what you needed to do for NetBeans above.
What to Submit to Canvas
A single zip file that has:
- A PDF with our
name, email address, screeen snapshots off the outputs of the above programs, appropriately
documented, and any special action that you needed to do to make the programs execute correctly..
- Your runem Java program source. The TA will set a classpath correctly for your program to work when he/she grades it.
late assignments/submissions will be accepted.