HOW TO SUBMIT HOMEWORKS?

 

 

 

The following machine, account and the password are to be used for submitting the homeworks of ion526:

machine: vision2.eee.metu.edu.tr


user: ion526
password: (as will be given in the forum)

 

All the students will use the same account but will place their homework under the directories reserved for them:

 

public_html/surname

 

Here surname is the surname of the student, it is concataneted by the first letter of their name if more than one student has the same surname , for example:

 

public_html/bgul
public_html/lgul

 

There is a sample student directory

 

public_html/sample

 

containing a sample hw index page named sample.html. Examine this page and create an index page in your own directory having your surname that is <yoursurname>.htm Your homeworks should be stored in the subdirectories as hw1, hw2, etc. under the directory reserved for you, and they should be linked to the <yoursurname>.htm in the directory named with your surname.

 

The parent directory

 

public_html

 

contains the file index.html, which can be accessed by a web browser through the address:

 

http://vision2.eee.metu.edu.tr/~ion526

 

You will able to see a sample hw page, your homework page or your friend's homework page by using the links given in the page.

(NOTE: YOUR ACCOUNT IS NOT OPEN YET. THE ABOVE LINK WILL WORK HOPEFULLYBEFORE NOV 11, 2005, FRIDAY)

In case you can't run your applet under a java enabled browser, even though you had successfully run it in the program thatyou had constructed it, please check the following.

· While you are running your compiled code, the code needs some "*.class" files. These files may be the ones that you have constructed or you borrowed from the visual based Java compiler ("Components" in Java Builder). Your main class and the classes you borrowed from your compiler program should reside in the same directory.

· When you are running the program under a visual based Java compiler (e.g. Java Builder v.X, Microsoft Visual Caff v.X etc.) and if you have used any of the ready-to-use classes (e.g. if you had used a "button" in java builder, the program calls the necessary classes from the libraries. However, when you are executing your applet under a java-enabled browser, your applet doesn't know from where to call these ready-use-classes. What you exactly have to do is to create a compressed file with the extension "*.JAR" containing the classes that you need to use. ( To construct this file in java Builder go to the "Wizards" menu after successfully running your applet. Select "Deployment Wizard". Here, Java builder traces your code and creates a JAR file, which will contain the necessary CLASS files.)

· After creating your *.JAR files which contains the main and auxiliary class files, you have to create your HTML file. Your HTML file should call this library (by library, we mean the JAR file you have created.) To call this library from your program, your HTML file should contain the corresponding codes:
.
.

<APPLET
.
.
CODE = "yoursurname.class" //main Applet class
ARCHIVE = "yoursurname.jar"
.
.

.
>

</APPLET>
.
.
Also be careful to place your library file (yoursurname.JAR) and your HTML file in the same directory.

Good Luck