W3C home > Mailing lists > Public > www-svg@w3.org > February 2000

Re: Java binding for SVG DOM

From: Vincent J Hardy <vincent.hardy@sun.com>
Date: Tue, 22 Feb 2000 14:02:11 -0800
Message-ID: <38B30763.5FEA8C1E@sun.com>
CC: www-svg@w3.org
Dave,

The Java binding can be generated from the IDL  with a tool such as Sun's idltojava. This requires some clean-up of the IDL but it works
(detailed instructions below). The SVG Working Group is working on the IDL cleanup and the Java binding.

I hope this helps.
Regards.
V.

PS. Detailed instructions on using idltojava for getting the Java bindings from the SVG IDL:

You should add the following pragma to the idl source:

#pragma javaPackage "dom.w3c.org"

to generate the files in the proper java package (i.e., dom.w3c.org.svg).

Once the files have been generated (with idltojava), you will need to do the following
through a script:

1. Delete all the _XXX.java, XXXHelper.java and XXXHolder files (only
used for CORBA).
2. Strip the "extends org.om.CORBA.Object,
org.omg.CORBA.portable.IDLEntity from the remaining java files.

idltojava is available at:

http://developer.java.sun.com/developer/earlyAccess/jdk12/idltojava.html


--
+-----------------------------------------------------------+
| Vincent Hardy                   vincent.hardy@eng.sun.com |
| Scalable Vector Graphics      XML Technology Center (XTC) |
| 650-786-4066                                   Menlo Park |
+-----------------------------------------------------------+
Received on Tuesday, 22 February 2000 17:01:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 5 November 2012 23:52:47 GMT