Note further that some of the .class names are longer than 31 characters, which may cause problems when downloading zip files on the Macintosh and using Stuffit.
#in_browser
, then
Ptolemy II will invoke the User's web browser. Unfortunately, this
does not always work, especially under Windows if Netscape is already
running. The workaround is to exit Netscape and let Ptolemy II
start up Netscape for you.
vergil.jnlp
file has spaces in it. The workaround is
to place your Ptolemy II tree in a directory that does not have spaces
in the path name if you plan on using Web Start.
http://developer.java.sun.com/developer/bugParade/bugs/4713003.html
-Dsun.java2d.d3d=false
or
-Dsun.java2d.noddraw=true
, but for applets we must
require Java 1.4.1_02 or later.
file:///d|/ptII/ptolemy/plot/demo/FourierSeries.htm
which work fine in Netscape 4.x, IE, Mozilla.
However, if I use the following style of URL, then some of the applets
work:
file://localhost/d:/ptII/ptolemy/plot/demo/FourierSeries.htm
.
Unfortunately any applet that accesses a data file will
not work with the above URL style because the data file will
be outside the codebase.
The solution is to install a web server on the local
machine and view the applets using
http://localhost/
Window
-> Special
-> Java Console
, and you will see the following
stack trace
java.lang.NoClassDefFoundError: diva/graph/GraphController at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:1576) at java.lang.Class.getConstructor0(Class.java:1748) at java.lang.Class.newInstance0(Class.java:266) at java.lang.Class.newInstance(Class.java:249) at opera.PluginPanel.run(opera/PluginPanel.java:343) at java.lang.Thread.run(Thread.java:536)
com.microstar.xml.XmlException: XML element "entity" triggers exception: java.lang.Exception: Attempted to lookup 'Waveform', but got: java.lang.ClassNotFoundException: Waveform Attempted to find as a moml class, but got: java.security.AccessControlException: access denied (java.net.SocketPermission ptolemy.eecs.berkeley.edu resolve) in file:/C:/Program Files/Ptolemy/Ptolemy II 3.0 beta2/ ptolemy/moml/demo/Networked/ at line 62 and column 118 at ptolemy.moml.MoMLParser.startElement(MoMLParser.java:1341) at com.microstar.xml.XmlParser.parseElement(XmlParser.java:944) at com.microstar.xml.XmlParser.parseContent(XmlParser.java:1117) at com.microstar.xml.XmlParser.parseElement(XmlParser.java:946) at com.microstar.xml.XmlParser.parseDocument(XmlParser.java:495) at com.microstar.xml.XmlParser.doParse(XmlParser.java:175) at com.microstar.xml.XmlParser.parse(XmlParser.java:145) at ptolemy.moml.MoMLParser.parse(MoMLParser.java:492) at ptolemy.moml.MoMLParser.parse(MoMLParser.java:471) at ptolemy.moml.MoMLParser.parse(MoMLParser.java:456) at ptolemy.actor.gui.MoMLApplet._createModel(MoMLApplet.java:188)The Network demo does not work as a local applet because the xml file includes a reference to http://ptolemy.eecs.berkeley.edu, which is not on the local file system, so we get a SecurityException.
http://ptolemy.eecs.berkeley.edu/ptolemyII/ptII4.0/ptII/ptolemy/moml/demo/Networked/Networked.htm
$PTII/ptolemy/actor/lib/BooleanSwitchIcon.xml
is an icon for
$PTII/ptolemy/actor/lib/BooleanSwitch.java
http://developer.java.sun.com/developer/bugParade/bugs/4838939.html
suggests invoking java with -Dsun.java2d.noddraw=true
.
vergil-full.lax
and add the line
lax.nl.java.option.additional=-Dsun.java2d.noddraw=truewhich we went ahead and did. Note that because of problems with Radeon displays, setting noddraw to true is not such a bad idea. See above for details.
vergil-full.exe
icon.
c:\j2sdk1.4.2\bin\java.exe -Dsun.java2d.noddraw=true com.zerog.lax.LAX C:\\Ptol emy\\Ptolemy_II_4.0ptiny\\vergil-ptiny.lax C:\\DOCUME~1\\cxh\\LOCALS~1\\Temp \\env.prop executing java...Note that to debug the binary, you would use the following line:
lax.nl.java.option.additional=-Xdebug -Xrunjdwp:transport=dt_shmem,server=y,suspend=n
You can either:
c:\j2sdk1.4.2_04\jre\javaws\javaws.exe
Didier Mauuary reports that under Windows 98, configure failed
to set up the MATLAB_DIR
, PTCC
and PTDLLTOOL
makefile variables, but after
he set them by hand:
MATLAB_DIR = /cygdrive/c/MATLABR11 PTCC = gcc PTDLLTOOL = dlltoolhe was able to get farther with the recompilation of the Matlab interface.
http://java.sun.com/products/javacomm/index.html
.
The SerialComm actor will only work under Windows.
http://www.geocities.com/marcoschmidt.geo/java-libraries-pdf.html
export JAVAFLAGS=-Dsun.java2d.print.pipeline=pdl vergilThen edit the file by hand in Illustrator to add the transparency back in.
For limitations discovered after the release, see the Ptolemy II 4.0.2 website