Java Assignments
A Java assignment is a more complicated
assignment type that allows for the storage of Java simulation data. This allows
instructors to analyze how students are working with simulations. This type of
assignment involves designing a Java applet which interacts with a second data
server. This assignment type is proving to be a powerful tool and needs to be
developed in consultation with the ClassNet administrators.
However, it is possible to
create a simple Java assignment that does not store data on the ClassNet server,
and does not require consultation with the ClassNet administrators. By following
the directions below, it is possible to give students private access to an assignment
containing a Java applet.
Creating the Assignment
Using your favorite HTML editor,
create an assignment file consisting of HTML text and a Java applet.
Uploading the Assignment
- Put the HTML file and Java class(es)
into a Web directory.
- Create a new assignment of the
type Java.
- Give the assignment a name. This
name must be the same name as the HTML file without the .html extension.
- Example: If the HTML
file in the first step is called java1.html, then the assignment must
be named java1.
- Spaces are not allowed in
Java assignment names.
- In the Initial URL field,
specify the URL for where the file was stored in the Web directory.
- Example: http://www.public.iastate.edu/~mvg/java1.html
- Click Add.
- ClassNet will read this file
and store it on the ClassNet server. You will be presented with an updated
Assignments Menu.
Uploading the Java Applet Classes
Notes:
- Storing even a simple Java assignment
is a more detailed process than the other assignment types. Please contact
ClassNet administrators with any questions.
- One of the quickest ways to store
the classes is to create a single archive by zipping the classes, with
no compression, into a single .zip file.
An example session
LessonGraph
is an example Java assignment HTML file that uses a zip file. Note that
LinearLesson.class is actually stored within LessonGraph.zip. After loading
LessonGraph.html, it would only be necessary to add LessonGraph.zip
Example Steps:
- Put the LessonGraph.zip and LessonGraph.html
files into a web readable directory.
- Log into the class as Instructor
and go to the Assignments menu.
- Click on Add.
- Assignment Type: Java
Name: LessonGraph
Initial URL: http://www.public.iastate.edu/~mvg/LessonGraph.html
- Click Add.
- Click on Add in the Assignments
Menu.
- Assignment Type: Java
Name: LessonGraph
Initial URL: http://www.public.iastate.edu/~mvg/LessonGraph.zip
- Click Add.
- Select "LessonGraph".
- Click on Edit in the Assignments
Menu.
- Click the Publish checkbox.
- Click on Save
The assignment is now available for
student use.
Click on Back in your browser
to return to the Adding Assignments page.