@@ -48,8 +48,8 @@ Creating a new J2S/SwingJS project
4848----------------------------------
4949
5050Create an Eclipse Java project for your work, if you have not done so already.
51- If your source code is not all already in src/, navigate to the project...properties...Java Build Path...source
52- and add all the source directories you need.
51+ If your source code is not all already in src/, navigate to the project...properties...
52+ Java Build Path...source and add all the source directories you need.
5353
5454Note that your project must not include any Jar file based dependencies.
5555All source code must be available. (Source code from decompiling .class files will work.)
@@ -85,7 +85,7 @@ j2s.compiler.status=enable
85852. Edit the .project file to indicate that the j2s transpiler is to be used
8686rather than the standard Java compiler by changing the buildSpec buildCommand from
8787
88- org.eclipse.jdt.core.javabuilder
88+ org.eclipse.jdt.core.javabuilder
8989
9090to
9191
@@ -109,12 +109,13 @@ Java project *except* final static constants. SwingJS does not recreate those by
109109Testing the JavaScript version of your project
110110----------------------------------------------
111111
112- The J2S transpiler will automatically set up for you in site/ a sample HTML page for any class that subclasses
113- JApplet or contains a public void main(String[] args) method. You will want to associate those files with
114- an external HTML browser. We recommend Firefox.
112+ The J2S transpiler will automatically set up for you in site/ a sample HTML page for any class
113+ that subclasses JApplet or contains a public void main(String[] args) method. You will want to
114+ associate those files with an external HTML browser. We recommend Firefox.
115115
116- Since you will be running AJAX locally within these browsers, you may need to enable local file reading in your
117- browser. Instructions for doing that can be found at http://wiki.jmol.org/index.php/Troubleshooting/Local_Files
116+ Since you will be running AJAX locally within these browsers, you may need to enable local
117+ file reading in your browser. Instructions for doing that can be found at
118+ http://wiki.jmol.org/index.php/Troubleshooting/Local_Files
118119
119120
120121------------------------
@@ -123,10 +124,10 @@ Adding more Java classes
123124
124125If you find you are missing a Java class, please contact me (Bob Hanson) at hansonr@stolaf.edu.
125126You can try adding these yourself by **temporarily** adding one or more of the
126- Java classes found at http://grepcode.com to the proper package. If you do that, be sure
127- to use the OpenJDK version. Most of the code in the SwingJS project started with Java 6-b14 or 6-b27.
128- Build your project, then delete these Java files, because you do not necessarily want your Java
129- code using that version, just JavaScript.
127+ Java classes found at http://grepcode.com to the proper package in your project. For example, java/awt.
128+ If you do that, be sure to use the OpenJDK version. Most of the code in the SwingJS project started with
129+ Java 6-b14 or 6-b27. Build your project, then delete these Java files, because you do not necessarily
130+ want your Java code using that version, just JavaScript.
130131
131132A full site with many examples is at https://chemapps.stolaf.edu/swingjs/site
132133
0 commit comments