- Notifications
You must be signed in to change notification settings - Fork31
BuildingJ2SLib
abego edited this pageJun 28, 2017 ·6 revisions
(Requires environment as described inBuilding 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"
- (Seeissue #15 for details)
- In the project directory of 'net.sf.j2s.lib' you will find a directory
j2slibwith the freshly build runtime library.
By default Java2Script applications will use thej2slib 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 thej2slib directory in the Eclipse directory with a symbolic/soft link to thej2slib directory in the project directory of 'net.sf.j2s.lib'. This way Java2Script applications will always use the must recently buildj2slib.