-
Notifications
You must be signed in to change notification settings - Fork 30
BuildingJ2SLib
abego edited this page Jun 28, 2017
·
6 revisions
(Requires environment as described in Building Java2Script itself)
- In Eclipse
- open project 'net.sf.j2s.lib' in the Project or Package Explorer.
- Right-click "build/build.xml" and select "Run As > Ant Build"
- (The build will start, with output written to the Eclipse console)
- Check the output. If it contains errors like
java.io.FileNotFoundException: ... j2slib.z.js
- repeat: Right-click "build/build.xml" and select "Run As > Ant Build"
- (See issue #15 for details)
- In the project directory of 'net.sf.j2s.lib' you will find a directory
j2slib
with the freshly build runtime library.
By default Java2Script applications will use the j2slib
installed in the plugin directory of Eclipse, at %ECLIPSE_HOME%/plugins/net.sf.j2s.lib_x.y.z/j2slib
. (Details on %ECLIPSE_HOME%).
If you are frequently editing the j2slib sources you may want to replace the j2slib
directory in the Eclipse directory with a symbolic/soft link to the j2slib
directory in the project directory of 'net.sf.j2s.lib'. This way Java2Script applications will always use the must recently build j2slib
.