Contributing to the Java2Script Project
This page is for developers who like to contribute to the Java2Script project, i.e. like to work on the Java-to-JavaScript transpiler or the Java runtime environment code.
(If you want to use Java2Script to convert your Java applets or Java applications to JavaScript see “Quick Start” instead.)
Fork the Java2Script repo
If you want to contribute to the Java2Script Project you should start by creating a fork of the project on GitHub.
For the following let us assume your new repo is
https://github.com/your-github-username/java2script
Clone ‘your’ Java2Script repo
To do actual development you will then need to clone “your” java2script repo into your Eclipse workspace:
cd workspace # where 'workspace' is your Eclipse workspace directory
git clone https://github.com/your-github-username/java2script.git
(Instead of using Git through the command line you may also use you favorite graphical Git client.)
Then, open Eclipse, open Navigator, and hit Refresh. java2script will show up as a blank generic trunk without a name (i.e. ‘trunk[]’)
Go to net.sf.j2s.core directory, Clean Project, then export as a Deployable plug-ins and fragments.
Core is the only thing that was affected. Hence, everything else can be built the same exact way it was built before (assuming you were using the HEAD of the master branch of j2s).