I've never tried mailing sas/graph device=java output, but here's how I think it would go ...
The person receiving the email & wanting to view the dev=java sas/graph output file would need to have the sas/graph jar file(s), and those files would need to be saved in the exact location that the "codebase" in the html file is pointing to. (And there might be some caveats that the html file and jar file have to be on the same 'web server' ... which could maybe be the local machine 'web server' looking at the local c: filesystem). In the past, you only needed a single jar file (such as graphapp.jar, mapapp.jar, or treeview.jar) to view the corresponding graph in the html file ... but in more recent versions I believe these jar files were split up (so that they could all use shared code), and therefore now you must have several jar files rather than just one.
I haven't used the java graphs in this particular way (emailing them), and am not a java expert, so maybe one of the java-savvy folks can chime in and correct me if I'm wrong, and/or fill in any details I might have left out (or correct my terminology). 🙂
Typically, with the dev=java sas/graphs, I see people put the html files & jar files on a web server, and then email people a url/link to the html file (rather than trying to email everything).
... View more