I am trying to understand how all works, but the batik project is to complex for me, and I have not found any documentation or tutorial on how to use the basic implemented features.
I am trying the program below, but get the SVG Error:
Unable to make sense of URL for connection
Does it mean that I can not open a local file, but only remote ones?
I will appreciate any input,
Alice
/*
* Created on Aug 11, 2003
*
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
package org.apache.batik.apps.svgbrowser;
import org.apache.batik.swing.JSVGCanvas;
/**
* @author Alice Mello
*
* To change the template for this generated type comment go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
public class OpenSVG {
/**
*
*/
// JSVGViewerFrame vf = new JSVGViewerFrame();
public OpenSVG() {
super();
// TODO Auto-generated constructor stub
}
public static void main(String[] args) {
JSVGCanvas csvg = new JSVGCanvas();
csvg.loadSVGDocument("C:/Program Files/eclipse-SDK-2.1.1-win32/eclipse/workspace/Batik/samples/3D.svg");
}
}