|
From: Robert H. <ha...@st...> - 2020-12-06 17:56:49
|
For this project you will need to use Eclipse with Java 8. I think you have Java 11. On Sat, Dec 5, 2020 at 1:08 PM Mark Perri <pe...@so...> wrote: > Hi Bob, > I'm trying to build the Jmol-SwingJS from github in Eclipse (7dee745). > Can you look at the errors below and let me know if I'm building with the > right scripts. Am I missing a library or extension in Eclipse? > > Thanks, > Mark > > If I run build.xml I get the error: > > [javac] warning: [options] bootstrap class path not set in conjunction > with -source 6 > [javac] error: Source option 6 is no longer supported. Use 7 or later. > [javac] error: Target option 6 is no longer supported. Use 7 or later > > If I run build-app-only.xml I get: > [javac] warning: [options] bootstrap class path not set in conjunction > with -source 8 > [javac] > C:\Users\perrim\Jmol-SwingJS\src\jspecview\application\AwtTreeNode.java:9: > error: AwtTreeNode is not abstract and does not override abstract method > children() in JSVTreeNode > [javac] public class AwtTreeNode extends > [javac] ^ > [javac] > C:\Users\perrim\Jmol-SwingJS\src\org\jmol\applet\Jmol.java:285: error: > cannot find symbol > [javac] jsoWindow = JSObject.getWindow(applet); > [javac] ^ > [javac] symbol: method getWindow(Applet) > [javac] location: class JSObject > [javac] > C:\Users\perrim\Jmol-SwingJS\src\org\jmol\applet\Jmol.java:357: error: > cannot find symbol > [javac] JSObject theWindow = JSObject.getWindow(app); > [javac] ^ > [javac] symbol: method getWindow(Applet) > [javac] location: class JSObject > [javac] > C:\Users\perrim\Jmol-SwingJS\src\org\jmol\applet\Jmol.java:389: error: > cannot find symbol > [javac] JSObject jsoWindow = JSObject.getWindow(applet); > [javac] ^ > [javac] symbol: method getWindow(Applet) > [javac] location: class JSObject > [javac] > C:\Users\perrim\Jmol-SwingJS\src\org\jmol\applet\Jmol.java:407: error: > cannot find symbol > [javac] JSObject jsoWindow = JSObject.getWindow(applet); > [javac] ^ > [javac] symbol: method getWindow(Applet) > [javac] location: class JSObject > [javac] > C:\Users\perrim\Jmol-SwingJS\src\org\jmol\applet\Jmol.java:548: error: > cannot find symbol > [javac] JSObject jso = JSObject.getWindow(applet); > [javac] ^ > [javac] symbol: method getWindow(Applet) > [javac] location: class JSObject > [javac] > C:\Users\perrim\Jmol-SwingJS\src\org\jmol\applet\Jmol.java:606: error: > cannot find symbol > [javac] jsoDocument = (JSObject) > JSObject.getWindow(applet).getMember( > [javac] ^ > [javac] symbol: method getWindow(Applet) > [javac] location: class JSObject > [javac] > C:\Users\perrim\Jmol-SwingJS\src\org\jmol\applet\Jmol.java:655: error: > cannot find symbol > [javac] JSObject jsoWindow = JSObject.getWindow(applet); > [javac] ^ > [javac] symbol: method getWindow(Applet) > [javac] location: class JSObject > [javac] > C:\Users\perrim\Jmol-SwingJS\src\org\jmol\applet\Jmol.java:696: error: > cannot find symbol > [javac] JSObject jsoWindow = JSObject.getWindow(applet); > [javac] ^ > [javac] symbol: method getWindow(Applet) > [javac] location: class JSObject > [javac] Note: Some input files use or override a deprecated API. > [javac] Note: Recompile with -Xlint:deprecation for details. > [javac] Note: Some input files use unchecked or unsafe operations. > [javac] Note: Recompile with -Xlint:unchecked for details. > [javac] 9 errors > [javac] 1 warning > > > On Wed, Dec 2, 2020 at 1:53 PM Robert Hanson <ha...@st...> wrote: > >> >> >> On Wed, Dec 2, 2020 at 12:20 PM Mark Perri <pe...@so...> wrote: >> >>> Hi Bob, >>> >>> Great work both on InChI and SwingJS! Minimization is definitely >>> important. Can SwingJS transpile it into an ES6 module that we could >>> import and bundle? Then minimization could be done by rollup / webpack on >>> our end. We could also preload the modules we need instead of dynamically >>> loading them. >>> >>> >> Mark, see what you do with that. This is not an area of expertise for me, >> so I will rely on others to contribute this sort of thing. It is possible >> to make progressive web apps with SwingJS. That has been done in the Open >> Source Physics project. https://www.compadre.org/osp/pwa/pwahelp/ So if >> you are interested in that, I do know whom to talk to! >> >> -- Robert M. Hanson Professor of Chemistry St. Olaf College Northfield, MN http://www.stolaf.edu/people/hansonr If nature does not answer first what we want, it is better to take what answer we get. -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900 *We stand on the homelands of the Wahpekute Band of the Dakota Nation. We honor with gratitude the people who have stewarded the land throughout the generations and their ongoing contributions to this region. We acknowledge the ongoing injustices that we have committed against the Dakota Nation, and we wish to interrupt this legacy, beginning with acts of healing and honest storytelling about this place.* |