Skip to content

Commit c28cee6

Browse files
hansonrhansonr
authored andcommitted
again!
1 parent 8b1f933 commit c28cee6

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

sources/net.sf.j2s.core/dist/README.txt

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ the Java Virtual Machine in JavaScript. Its two main JavaScript objects are
3030
Clazz (methods that emulate core java.lang methods) and
3131
J2S (methods that provide an interface to the HTML5 document model)
3232

33-
Raw JavaScript files are in site/swingjs/js, These files are concatentated into
33+
Raw JavaScript files are in site/swingjs/js, These files are concatenated into
3434
site/swingjs/swingjs2.js, which your web page needs to call. For example:
3535

3636
<!DOCTYPE html>
@@ -40,7 +40,7 @@ site/swingjs/swingjs2.js, which your web page needs to call. For example:
4040
...
4141

4242
Besides that, all the java, javax, swingjs, and various other classes can be found
43-
in the site/swingjs/j2s directory.
43+
in the site/swingjs/j2s directory. They are loaded "just-in-time", only on demand.
4444

4545
jQuery is used extensively, and a slightly enhanced version of jQuery (see site/swingjs/js/j2sJQueryExt)
4646
adds synchronous binary file transfer as well as "jQuery outside events".
@@ -60,6 +60,7 @@ Eclipse Photon or higher is necessary.
6060

6161
net.sf.j2s.core_3.2.1.jar replaces net.sf.j2s.core_3.1.1.jar
6262

63+
These versions differ only in their internal workings relative to Eclipse (and new bug fixes).
6364

6465
These versions differ only in their internal workings relative to Eclipse (and new bug fixes).
6566

@@ -171,21 +172,28 @@ If your source code is not all already in src/, navigate to the project...proper
171172
Java Build Path...source and add all the source directories you need.
172173

173174
Note that your project must not include any Jar file-based dependencies.
174-
All source code must be available. (Source code from decompiling .class files will work.)
175+
All source code must be available. (Source code from decompiling .class files will work,
176+
but it is not automatic, and we have not explored that option yet.)
175177

176178
---------------------------------------------------------------------
177179
Installing the SwingJS JavaScript version of the Java Virtual Machine
178180
---------------------------------------------------------------------
179181

180-
Chrome users should consider using WebServer for Chrome to serve local files. It is very
181-
simple to set up.
182+
Chrome users should consider using WebServer for Chrome to serve local files.
182183

183184
https://chrome.google.com/webstore/detail/web-server-for-chrome/ofhbbkphhbklhfoeikjpcbhemlocgigb?hl=en
184185

186+
It is very simple to set up.
187+
188+
Firefox users need only set the about:config flag:
189+
190+
security.fileuri.strict_origin_policy
191+
192+
to "false".
185193

186194
All of the JavaScript produced will be in the project site/ directory.
187195
You must prepopulate this site with all the JavaScript required by the
188-
JavaScript version of the JVM. The most recent version of site/ is at
196+
SwingJS JavaScript version of the JVM. The most recent version of site/ is at
189197

190198
https://github.com/BobHanson/java2script/blob/master/sources/net.sf.j2s.core/dist/swingjs/SwingJS-site.zip?raw=true
191199

0 commit comments

Comments
 (0)