Forum archive 2000-2006

Jeff Denny - Difficulty with Java in Union College Multivariable Problems

Jeff Denny - Difficulty with Java in Union College Multivariable Problems

by Arnold Pizer -
Number of replies: 0
inactiveTopicDifficulty with Java in Union College Multivariable Problems topic started 1/10/2006; 9:56:15 AM
last post 1/10/2006; 10:07:36 PM
userJeff Denny - Difficulty with Java in Union College Multivariable Problems  blueArrow
1/10/2006; 9:56:15 AM (reads: 482, responses: 2)
Some faculty here want to use the Union College problems for multivariable calculus. I've loaded the problems onto our server via the CVS update and placed the problems and directories in the templates directory for the course. The graphics all look great on the problems when I access them in the library browser, but the java applets won't load. Here is the error that I'm getting in the java console:

java.io.FileNotFoundException: http://mathww.mercer.edu/webwork2_course_files/mat293/live.jar

I figure that I'm missing a file somewhere. Any ideas?

Thank you!

<| Post or View Comments |>


userMichael Gage - Re: Difficulty with Java in Union College Multivariable Problems  blueArrow
1/10/2006; 10:37:47 AM (reads: 585, responses: 0)
We're just beginning to use applets more widely in the WeBWorK community and there are still issues with portability. Certain things may need to be tweaked by hand. Here is one way to do it which will allow all of your faculty to use the problems without further modification.

First grab the applet live.jar from http://www.vis.uni-stuttgart.de/~kraus/LiveGraphics3D/download.html

Place it in ..../webwork2/htdocs/applets/

In the file union_problib/LiveGraphics3D.pl change the line defining the address for the jar to:

jar => "http://webwork.math.rochester.edu/webwork2_files/applets/live.jar",

(you will use your own machine name not webwork.math.rochester.edu)

As a check, when you view the problem source you should see a segment such as:

 



<TD WIDTH="200" HEIGHT="200" ALIGN="CENTER">
<APPLET ARCHIVE="http://webwork.math.rochester.edu/webwork2_files/applets/live.jar" CODE="Live.class" WIDTH="200" HEIGHT="200">
<PARAM NAME="BGCOLOR" VALUE="#FFFFFF">
<PARAM NAME="MAGNIFICATION" VALUE="1.4">
<PARAM NAME="INPUT_ARCHIVE" VALUE="/tmp/mth164/html/gage-822-set5-prob11-graph7-zip.html">
<PARAM NAME="INPUT_FILE" VALUE="graph7.m">
<IMG SRC="/tmp/mth164/gif/5-prob11-graph7s.gif" BORDER="0">
<SMALL>[Enable Java to make this image interactive]</SMALL><BR></APPLET></TD>



This is a bit of a hack. The alternative, which involves no change to the LiveGraphics3D.pl file, is to place a link in each course

courseName/html/live.jar   ---->  ..../webwork2/htdocs/applets/live.jar
you need to make a link for each course in this case.

Good luck. They are great applets

-- Mike

<| Post or View Comments |>


userJeff Denny - Re: Difficulty with Java in Union College Multivariable Problems  blueArrow
1/10/2006; 10:07:36 PM (reads: 565, responses: 0)
Mike,

Thank you for your help! This did the trick. Our copies of the Union College problems are now up and running. This is great!

Jeff

<| Post or View Comments |>