diff --git a/pages/documentation/platforms/java.html b/pages/documentation/platforms/java.html new file mode 100644 index 00000000..23dc6b43 --- /dev/null +++ b/pages/documentation/platforms/java.html @@ -0,0 +1,170 @@ +
Main.hx
file:hxjava
haxelib by running haxelib install hxjava
in your Haxe project directory.
+ 4. Create a .hxml
to store compiler config for your project /src
, your main Haxe file is src/Main.hx
, and that you want Haxe to output the Java source code into the bin/java
directory. After code generation, Haxe will try javac
to compile the generated Java program into a .jar
file. You can debug this Java program using a specialized Java IDE. .jar
filejavac
compiler that converts .java
sources into a .jar
filejava
, you have an issue with your installation or the JRE is not added into the PATH environment variable.
+ Browse the Haxe Java API website for the Java-specific API available.
+ Browse the Haxe API website for the core Haxe platform API that you can use in your project.
+
+ Browse the haxelib website for community-developed libraries that you can add to your project.
+ You can install haxelib libraries globally by running haxelib install <library>
.
+ You can specify that your project uses a haxelib by adding -lib <library>
to your .hxml
file.
+
+ After compiling your project with Haxe and Java, you'll need to open a console in the bin/java
directory and run the command java -jar Main.jar
+ You can alternatively use a full-fledged Java IDE like the ones given below to run and debug your project easily.
+