Bytecode to source converting Java & Kotlin code into JavaScript, C++, D, C#, PHP, AS3, Dart and Haxe and run it everywhere.

Overview

JTRANSC

JTransc

Maven Version Build Status Build status Code coverage gitter

Documentation

You can find documentation at the wiki.

What is this?

JTransc (Java Trans Compiler) is an AOT (ahead of time compiler) that compiles .class and .jar files into a target programming language / executable bundling all the required dependencies in a single file or folder, without requiring a jitter or an external runtime.

Why using JTransc?

There are a lot of technologies in order to convert languages into other ones. For example, converting Java into JavaScript. Or KotlinJS Kotlin backend that already targets JavaScript. So why using JTransc?

Mixed input code:

One reason is that JTransc allows mixed projects. You can use Java libraries with Kotlin code for example.

Multiple targets:

Instead of using several technologies, JTransc allows you to target to several languages and platforms.

Consistency:

Using just one technology guarantees consistency between targets. For example, Kotlin JS doesn't support full Java reflection.

Native:

Instead of generating C++ and then using emscripten or other technologies, JTransc allows you to generate code that is native to your platform. For example: when targeting JS you will use native JS best-in-class GC instead of a GC emulated in C++ & emscripten. And no need to know a proper heap size beforehand targeting JS.

Native facilities:

Some classes like String, StringBuilder or ArrayList are implemented in a way that it uses native JavaScript/AS3/Dart... facilities. Like JavaScript String, Array and so on.

Treeshaking:

Instead of generating huge projects including everything, or having complex proguard configuration files. JTransc includes treeshaking in a simple way. You can use annotations to keep methods, classes and fields or another annotations. It works for all targets and it is fully integrated in the workflow.

Thread and sync I/O support in JS:

JTransc supports plain Java applications using Threads and sync I/O in JS converting that into an asynchronous version in JS using await/async detecting branches not using Threads/sync I/O for fastest performance.

Support this project

Along JTransc, I'm writting a set of libraries to be able to use JTransc.

https://github.com/soywiz/korlibs

Kotlin Game Engine that uses JTransc for multiplatform: https://github.com/soywiz/korge

Also there is a GDX backend using JTransc+Haxe: https://github.com/jtransc/gdx-backend-jtransc

JTransc

Detailed: What is this?

JTransc (Java Trans Compiler) is an AOT (ahead of time compiler) that compiles .class and .jar files into a target programming language / executable bundling all the required dependencies in a single file or folder, without requiring a jitter or an external runtime.

At the beginning it generated as3 and javascript, but right now there are several targets: Javascript, Haxe, C++, and D. Haxe itself allow to target several other languages: JS, AS3, C++, C#, Java, PHP and Python. This in turn allows running the program on different platforms such as desktop, browsers and mobile.

The aim of this project is to bring the high productivity of Kotlin (and other JVM languages) to the highly portable Haxe platform. It already supports most of the core Java APIs and plain Java reflection API out of the box.

The initial focus is on JVM6, Kotlin and Games, but it will get better in the future supporting newer jvm versions, and other use cases like frontend and backend applications.

Right now JTransc support Java8 lambdas and default methods.

There is a module called jtransc-rt-core that could be included in any project (whether using JTransc or not). It provides the com.jtransc package, specific annotations, fast memory access and asynchronous APIs, that will use JTransc features when compiling using JTransc.

These is also a couple of projects for multimedia applications using jtransc:

  • jtransc-media - Which provides a very simple and portable high-level API for multimedia
  • gdx-backend-jtransc - Which provides a gdx-compatible backend so any gdx project will be able to work (still some rough edges)

How to use it?

You can find examples here jtransc/jtransc-examples.

Plain:

# jtransc script can be found under the jtransc-main-run folder
javac com/test/Main.java -d target/classes
jtransc dependency.jar target/classes -main com.test.Main -out program.js
node program.js

Gradle:

This is the preferred way of using JTransc. You can include it from maven central or directly from gradle plugins repository:

plugins {
  id "com.jtransc" version "0.6.8"
}

This will add several tasks for building your application. There is a gradle block called jtransc, that allows you to specify stuff for the build.

For example gradle runJs would generate a JS file at build/jtransc-js/program.js and run it using node.js.

You can see how to use it in the documentation.

Maven:

You can also use Maven, though due to the nature of JTransc gradle fits better. You can see how to use it in the documentation.

intelliJ:

There is a plugin in the works that will allow to run and debug within intelliJ. Though it is not ready yet. You can find it in jtransc-intellij-plugin folder.

How does it work internally?

  • It locates all the required dependencies (specifying dependencies using gradle, maven, intelliJ or CLI)
  • It includes jtransc-rt-core and jtransc-rt which is a java-6-like (with some Java8 support) RT with some of its methods marked as native
  • Other dependencies than the RT are included without modifications
  • It uses ASM library to load class files, and has code to generate a class-method-statement-expression AST
    • That AST is easily serializable
    • That AST allows feature stripping
    • Your target language don't support gotos? It will generate an AST without gotos. Just plain if/while/switch...
  • It generates your target source code, replacing some classes like String, ArrayList and so on, to make them fast in your target language.
  • It joins or compiles that code into your final runnable program (using available compilers when required)
  • It allows to run directly executing the executable or using an appropiate interpreter (php, node, electron...) depending on the build

Eventually that intermediate AST will be able to be generated or consumed. So others could generate that without JVM and others could generate other targets from that AST directly without all the complexities of stack-based IRs.

Tool dependencies:

Java:

  • Oracle JDK8 (Verified 8u131)
  • Android SDK Tools (Verified 25.2.3)

For the Haxe target:

  • Haxe 3.4.2
  • NekoVM 2.1.0
  • Lime 5.5.0
  • hxcpp 3.4.64

For Node.JS running:

  • NodeJS 7.10.0 with npm 4.2.0

For D target:

  • DMD2 or GDC or LDC (Verified dmd-2.074.0)

For C++ target:

  • Clang++ or g++ (At least gcc 4.8)

For Dart target:

  • Tested with Dart VM version: 1.23.0

Verified on Windows 10.0.15063 and macOS Sierra 10.12.4

Installing JDK

  • Install JDK8
  • Setup $JAVA_HOME This sample, but maybe not working for you, be careful
> ~/.bash_profile source ~/.bash_profile">
echo "export JAVA_HOME=$(/usr/libexec/java_home)" >> ~/.bash_profile
source ~/.bash_profile

Installing Haxe

  • Install Haxe from here via installer
  • Set path to haxelib running "haxelib setup" command
  • Install Lime haxelib install lime 5.5.0
  • Install hxcpp haxelib install hxcpp 3.4.64
  • Run haxelib run lime setup

######https://github.com/openfl/lime/issues/831

  • Run lime setup android If try install you gain Out of Memory, choose manual mode.
Download and install the Android SDK? [y/n/a] ? n
Download and install the Android NDK? [y/n/a] ? n
Download and install the Java JDK? [y/n/a] ? n

Path to Android SDK [C:\tools\android-sdk]:
Path to Android NDK []: C:\tools\android-ndk
Path to Java JDK [C:\Program Files\Java\jdk1.8.0_131]:

Setup AppleTV

  • Run lime rebuild hxcpp tvos
  • Remove stable lime haxelib remove lime
  • Install lime from GitHub git clone --recursive https://github.com/openfl/lime
haxelib dev lime lime
haxelib install format
lime rebuild mac
lime rebuild ios
lime rebuild tvos

Installing Node.JS

Installing D

  • Download DMD
  • Install DMD with all extras

Installing C++ suitable compiler

WINDOWS

Workaround for big projects: haxe 3.4.2 can failed with out of memory. You can try replace haxe files from develop, but this dangerous way, and get only stable, see history on github. My current choose: 2017-03-23 05:39:01 >> 4876859 >> haxe_2017-03-23_development_ada466c.tar.gz

WINDOWS 64

  • go to hxcpp/3.4.64 folder in console neko run.n Build.xml -Dwindows -DHXCPP_M64 -Dstatic_link ./project/
  • Remove stable lime haxelib remove lime
  • Install lime from GitHub git clone --recursive https://github.com/openfl/lime -b master
haxelib dev lime lime
haxelib install format

if use MSVC 2013 with not fully supported c99 standard, then replace in lib\openal all inline to __inline, and snprintf to _snprintf

lime rebuild windows -64

MAC

  • Install Xcode 8.3.3
  • This XCode have problem with logs for iPhone with iOS 10.3.2. Please see solution
  • Related to pure C++ target on mac: brew install automake libtool pkg-config
  • Install Mono 5.0.1.1 ??? https://github.com/jtransc/jtransc/issues/167
  • For upload on iPhone/iPad from command line sudo npm install -g ios-deploy --unsafe-perm --allow-root

Installing Dart

Comments
  • Unusual problems compiling GDX backend

    Unusual problems compiling GDX backend

    I'm trying to get the GDX backend for C++ to compile, but I hit a problem I'm not sure how to address while compiling jtransc-media-imports-lime. I have updated the relevant JTransc versions in the other parts of gdx-backend-jtransc to 0.2.3, and mvn package -P build-jtransc-cpp in cuboc-demo mentioned that lime was not a valid target. I went to run mvn install in jtransc-media-imports-lime, and here's the end of the results (the first ninety-thousand lines or so are no longer available)

    ...
    There are tens of thousands of lines of output above the end, mostly like:
    101807665/102954217 (98%)
    101808689/102954217 (98%)
    ...
    Then there's a section of where it lists what it installed:
    ...
    102953521/102954217 (99%)
    102954217/102954217 (100%)
    Download complete : 102954217 bytes in 506.5s (198.4KB/s)
      Created ndll/
      Created ndll/Mac64/
      Install ndll/Mac64/lime.ndll
      Created ndll/Windows/
      Install ndll/Windows/lime.ndll
      Created ndll/BlackBerry/...
      Created templates/tizen/
      Created templates/tizen/hxml/
      Install templates/tizen/hxml/final.hxml
      Install templates/tizen/hxml/debug.hxml
      Install templates/tizen/hxml/release.hxml
      Created templates/tizen/template/
      Created templates/tizen/template/CommandLineBuild/
      Install templates/tizen/template/CommandLineBuild/build_data
      Install templates/tizen/template/manifest.xml
      Created templates/blackberry/
      Created templates/blackberry/hxml/
      Install templates/blackberry/hxml/final.hxml
      Install templates/blackberry/hxml/debug.hxml
      Install templates/blackberry/hxml/release.hxml
      Created templates/blackberry/template/
      Install templates/blackberry/template/bar-descriptor.xml
      Install templates/blackberry/template/config.xml
    Done
    haxe [-cp, ., -xml, C:\Users\noto\AppData\Local\Temp\jtransc_haxe_tools9083334796661014983.xml, --no-output, -cpp, dummy, -lib, lime:2.9.0, -swf-version, 20, --macro, allowPackage('flash'), --macro, allowPackage('js'), --macro, include('lime', false), --macro, include('lime.ui', true), --macro, include('lime.app', true), --macro, include('lime.audio', true), --macro, include('lime.math', true), --macro, include('lime.project', true), --macro, include('lime.system', true), --macro, include('lime.text', true), --macro, include('lime.utils', true), --macro, include('lime.vm', true), --macro, include('lime.tool', true), --macro, include('haxe.io', true)]
    [INFO]
    [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ jtransc-media-imports-lime ---
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory C:\Users\noto\Downloads\gdx-backend-jtransc-master2\gdx-backend-jtransc-master\jtransc-media-imports-lime\resources
    [INFO]
    [INFO] --- maven-compiler-plugin:3.5.1:compile (default-compile) @ jtransc-media-imports-lime ---
    [INFO] Changes detected - recompiling the module!
    [INFO] Compiling 433 source files to C:\Users\noto\Downloads\gdx-backend-jtransc-master2\gdx-backend-jtransc-master\jtransc-media-imports-lime\target\classes
    [INFO] -------------------------------------------------------------
    [ERROR] COMPILATION ERROR :
    [INFO] -------------------------------------------------------------
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[5,33] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[5,70] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[5,79] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[8,60] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[8,114] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[8,125] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[35,39] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[35,90] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[35,126] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[38,39] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[38,90] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[38,126] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[41,39] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[41,97] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[41,130] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[44,39] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[44,97] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[44,133] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[47,39] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[47,97] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[47,130] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[50,39] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[50,97] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[50,136] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[77,46] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[77,119] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[77,131] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[80,40] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[80,95] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[80,109] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[83,40] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[83,95] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[83,107] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[86,41] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[86,77] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[86,91] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[89,68] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[89,152] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[89,163] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[92,46] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[92,119] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[92,136] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Touch.java:[5,57] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Touch.java:[5,108] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Touch.java:[5,115] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Touch.java:[8,57] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Touch.java:[8,108] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Touch.java:[8,116] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Touch.java:[11,57] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Touch.java:[11,108] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Touch.java:[11,117] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[11,46] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[11,49] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[11,51] invalid method declaration; return type required
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[14,72] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[14,75] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[14,76] ';' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[14,83] illegal start of type
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[14,84] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[14,88] ';' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[14,103] illegal start of type
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[14,104] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[16,10] type annotations are not supported in -source 1.6
      (use -source 8 or higher to enable type annotations)
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[16,9] illegal start of expression
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[16,62] ';' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[17,81] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[17,84] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[17,85] ';' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[17,92] illegal start of type
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[17,93] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[17,97] ';' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[17,112] illegal start of type
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[17,113] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[19,9] illegal start of expression
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[19,50] ';' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/graphics/cairo/_CairoFontFace/CairoFontFace_Impl_.java:[14,39] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/graphics/cairo/_CairoFontFace/CairoFontFace_Impl_.java:[14,90] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/graphics/cairo/_CairoFontFace/CairoFontFace_Impl_.java:[14,124] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[32,41] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[32,77] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[32,89] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[35,41] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[35,77] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[35,86] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[38,41] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[38,77] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[38,87] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[41,41] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[41,77] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[41,91] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[44,41] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[44,77] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[44,86] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[47,41] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[47,77] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[47,88] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[50,41] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[50,77] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[50,89] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[53,41] ']' expected
    [INFO] 100 errors
    [INFO] -------------------------------------------------------------
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 09:19 min
    [INFO] Finished at: 2016-05-09T23:24:20-07:00
    [INFO] Final Memory: 34M/1079M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project jtransc-media-imports-lime: Compilation failure: Compilation failure:
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[5,33] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[5,70] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[5,79] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[8,60] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[8,114] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[8,125] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[35,39] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[35,90] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[35,126] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[38,39] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[38,90] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[38,126] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[41,39] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[41,97] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[41,130] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[44,39] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[44,97] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[44,133] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[47,39] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[47,97] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[47,130] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[50,39] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[50,97] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[50,136] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[77,46] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[77,119] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[77,131] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[80,40] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[80,95] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[80,109] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[83,40] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[83,95] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[83,107] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[86,41] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[86,77] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[86,91] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[89,68] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[89,152] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[89,163] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[92,46] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[92,119] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Joystick.java:[92,136] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Touch.java:[5,57] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Touch.java:[5,108] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Touch.java:[5,115] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Touch.java:[8,57] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Touch.java:[8,108] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Touch.java:[8,116] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Touch.java:[11,57] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Touch.java:[11,108] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Touch.java:[11,117] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[11,46] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[11,49] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[11,51] invalid method declaration; return type required
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[14,72] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[14,75] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[14,76] ';' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[14,83] illegal start of type
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[14,84] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[14,88] ';' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[14,103] illegal start of type
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[14,104] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[16,10] type annotations are not supported in -source 1.6
    [ERROR] (use -source 8 or higher to enable type annotations)
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[16,9] illegal start of expression
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[16,62] ';' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[17,81] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[17,84] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[17,85] ';' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[17,92] illegal start of type
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[17,93] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[17,97] ';' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[17,112] illegal start of type
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[17,113] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[19,9] illegal start of expression
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/cpp/NativeArray.java:[19,50] ';' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/graphics/cairo/_CairoFontFace/CairoFontFace_Impl_.java:[14,39] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/graphics/cairo/_CairoFontFace/CairoFontFace_Impl_.java:[14,90] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/graphics/cairo/_CairoFontFace/CairoFontFace_Impl_.java:[14,124] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[32,41] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[32,77] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[32,89] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[35,41] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[35,77] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[35,86] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[38,41] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[38,77] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[38,87] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[41,41] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[41,77] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[41,91] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[44,41] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[44,77] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[44,86] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[47,41] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[47,77] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[47,88] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[50,41] ']' expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[50,77] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[50,89] <identifier> expected
    [ERROR] /C:/Users/noto/Downloads/gdx-backend-jtransc-master2/gdx-backend-jtransc-master/jtransc-media-imports-lime/target/src-generated/lime/ui/Window.java:[53,41] ']' expected
    [ERROR] -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
    

    This isn't the kind of error I normally see! Is there anything I can do to help diagnose the problem?

    opened by tommyettinger 26
  • Static init

    Static init

    After revert this https://github.com/jtransc/jtransc/blob/master/jtransc-core/src/com/jtransc/ast/dependency/genStaticInitOrder.kt#L96

    get error again

    Called from hxcpp::__hxcpp_main
    ...
    Called from java_.io.PrintWriter_::java_io_PrintWriter_init__Ljava_io_OutputStream__V java_/io/PrintWriter_.hx line 16
    Called from java_.io.OutputStreamWriter_::java_io_OutputStreamWriter_init__Ljava_io_OutputStream__V java_/io/OutputStreamWriter_.hx line 12
    Called from java_.nio.charset.Charset_::defaultCharset__Ljava_nio_charset_Charset_ java_/nio/charset/Charset_.hx line 74
    Called from com.jtransc.charset.JTranscCharset_::defaultCharset__Lcom_jtransc_charset_JTranscCharset_ com/jtransc/charset/JTranscCharset_.hx line 164
    Called from com.jtransc.charset.JTranscCharset_::forName_Ljava_lang_String__Lcom_jtransc_charset_JTranscCharset_ com/jtransc/charset/JTranscCharset_.hx line 174
    Called from com.jtransc.charset.JTranscCharset_::ensureRegister__V com/jtransc/charset/JTranscCharset_.hx line 92
    Called from java_.util.ServiceLoader_::load_Ljava_lang_Class__Ljava_util_ServiceLoader_ java_/util/ServiceLoader_.hx line 63
    Called from java_.util.ServiceLoader_::load_Ljava_lang_Class_Ljava_lang_ClassLoader__Ljava_util_ServiceLoader_ java_/util/ServiceLoader_.hx line 77
    Called from java_.util.ServiceLoader_::java_util_ServiceLoader_init__Ljava_lang_Class__V java_/util/ServiceLoader_.hx line 17
    Called from java_.util.ServiceLoader_::getInstances_Ljava_lang_String___Ljava_lang_Object_ java_/util/ServiceLoader_.hx line 30
    Called from com.jtransc.charset.charsets.JTranscCharsetIBM866_::com_jtransc_charset_charsets_JTranscCharsetIBM866_init___V com/jtransc/charset/charsets/JTranscCharsetIBM866_.hx line 18
    Called from com.jtransc.charset.JTranscCharsetSingleByte_::com_jtransc_charset_JTranscCharsetSingleByte_init___Ljava_lang_String_Ljava_lang_String__V com/jtransc/charset/JTranscCharsetSingleByte_.hx line 27
    Error : Null Object Reference
    

    Can i manipulate from my app, not from jtransc-core?

    opened by SergeiLabutin 18
  • EXC_BAD_ACCESS (code=1, address=0x16fc632d8)

    EXC_BAD_ACCESS (code=1, address=0x16fc632d8)

    line where mark as bad in ProgramReflection_AllClasses_.cpp

     ::JA_L ProgramReflection_AllClasses__obj::getAllClasses___Lj_ClassInfo_(){ <<< HERE
    HX_GC_STACKFRAME(&_hx_pos_851467f9a8a026f2_13_getAllClasses___Lj_ClassInfo_)
    

    in output warning

    [DYMTLInitPlatform] platform initialization successful
    warning: could not execute support code to read Objective-C class data in the process. This may reduce the quality of type information available.
    (lldb)
    

    Please, help me with this error. It's critical for my project =(

    opened by SergeiLabutin 16
  • Synchronized method support + C++ synchronized blocks + and add pthread to linux

    Synchronized method support + C++ synchronized blocks + and add pthread to linux

    Maybe this time it is a better solution. Verified on Ubuntu 16.04, macOS (both are in virtual machine) and Bash on Windows. Sorry for disturbing again.

    opened by fxzjshm 15
  • Pure C++ target (with optional Swift/Objective-C support)

    Pure C++ target (with optional Swift/Objective-C support)

    It was pretty easy to add the new pure-javascript target: https://github.com/jtransc/jtransc/tree/master/jtransc-gen-js

    So investigate in future versions (after stabilizing stuff, probably after 1.0) to generate a C++ target with GC (and optionally ARC).

    Optional / Future / Optimization: For ARC there is already a @JTranscWeak annotation that could allow to specify weak stuff to avoid leaks. Runtime should be updated to support this (annotating fields with the weak annotation) and code and libraries must be annotated too. This could allow to use emscripten to generate ASM.js/WASM as commented here: https://github.com/jtransc/jtransc/issues/38

    opened by soywiz 15
  • Critical bug - big switch

    Critical bug - big switch

    After add one JTranscKeep, i get stable crush libc++abi.dylib: terminating with uncaught exception of type Dynamic before it i get one time of 10 launches. I think JTranscKeep add in ProgramReflection one or more cases and function size again bigger than 64 KB.

    @soywiz Can you add in JTransc mechanism for detect big functions and huge switches in compile time (not runtime)? P.S. It's not my level =)

    opened by SergeiLabutin 14
  • [Critical] [Bug] super call himself, not parent

    [Critical] [Bug] super call himself, not parent

    If override function and call super from other method, then call new implementation, not parent function. This critical, because very hard understand why code not working.

    opened by SergeiLabutin 14
  • JTranscLibgdx and JTranscLime are not import-able from Java

    JTranscLibgdx and JTranscLime are not import-able from Java

    This is because they are in the default package, and this makes them unavailable for import without using reflection. I'm not sure why they lack a package in the first place; using the default package seems to be strongly discouraged by the Java recommendations because of this import impossibility issue.

    opened by tommyettinger 13
  • String.format(Float) not work

    String.format(Float) not work

    String.format("val=%.2f, normal=%.2f, min=%.2f, max=%.2f, ", getProgressValue(), getProgressNormal(), getProgressMin(), getProgressMax()) If any where return Float.NaN always crash.

    I try make as in Android

    bug 
    opened by SergeiLabutin 11
  • Add pthread library in CMakeLists.txt

    Add pthread library in CMakeLists.txt

    Add this to avoid linking error on Linux. (At least Bash on WIndows) But I am not very sure whether it will affect other platforms since my Windows plain cpp build is broken...

    opened by fxzjshm 11
  • Tests fails on readLine()

    Tests fails on readLine()

    val `is` = InputStreamReader(ByteArrayInputStream(byteArrayOf('A'.toByte(), 'B'.toByte(), 0xC3.toByte(), 0xA1.toByte())))
    println("readLine:" + BufferedReader(`is`).readLine())
    

    This code not working, readLine have hard code with encoding. Java and Haxe have differnt implementation.

    opened by SergeiLabutin 11
  • Trouble with php target

    Trouble with php target

    Hi,

    thank you for this amazing project.

    As sad I have a little bit of trouble with the php target. The thing is the genereted php seems not compatible with PHP 7 or above. But the haxe websites states that every version of haxe greate 4.0.0 supports php 7 and above. The errors I get at runtime are:

    • Array and string offset access syntax with curly braces is no longer supported \lib\php\Boot.class.php 267
    • Unparenthesized a ? b : c ? d : e is not supported. Use either (a ? b : c) ? d : e or a ? b : (c ? d : e) \lib\php\Boot.class.php on line 539
    • and then came a lot of index errors

    maybe someone could give me some insides tipps etc what i can do to get it running

    best regards pizzadox9999

    PS: i'm trying it with a php 7.4.33 interpreter

    opened by pizzadox9999 1
  • Transpile error

    Transpile error

    Generating AST... classPaths.add("C:\Users\Luca/.m2/repository/com/jtransc/jtransc-rt/0.6.8/jtransc-rt-0.6.8.jar") classPaths.add("C:\Users\Luca/.m2/repository/com/jtransc/jtransc-rt-core/0.6.8/jtransc-rt-core-0.6.8.jar") classPaths.add("C:\Users\Luca/.m2/repository/com/jtransc/jtransc-annotations/0.6.8/jtransc-annotations-0.6.8.jar") classPaths.add("C:\Users\Luca.m2\repository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar") classPaths.add("C:\Users\Luca.m2\repository\joda-time\joda-time\2.9.4\joda-time-2.9.4.jar") classPaths.add("C:\Users\Luca.m2\repository\com\joestelmach\natty\0.12\natty-0.12.jar") classPaths.add("C:\Users\Luca.m2\repository\org\antlr\antlr-runtime\3.5.2\antlr-runtime-3.5.2.jar") classPaths.add("C:\Users\Luca.m2\repository\com\google\code\gson\gson\2.7\gson-2.7.jar") classPaths.add("C:\Users\Luca.m2\repository\com\google\guava\guava\29.0-jre\guava-29.0-jre.jar") classPaths.add("C:\Users\Luca.m2\repository\org\mongodb\bson\4.3.1\bson-4.3.1.jar") classPaths.add("C:\Users\Luca.m2\repository\com\github\jsqlparser\jsqlparser\3.1\jsqlparser-3.1.jar") classPaths.add("C:\Users\Luca.m2\repository\com\jtransc\jtransc-maven-plugin\0.6.8\jtransc-maven-plugin-0.6.8.jar") classPaths.add("C:\Users\Luca.m2\repository\com\jtransc\jtransc-main\0.6.8\jtransc-main-0.6.8.jar") classPaths.add("C:\Users\Luca.m2\repository\org\jetbrains\kotlin\kotlin-stdlib\1.2.10\kotlin-stdlib-1.2.10.jar") classPaths.add("C:\Users\Luca.m2\repository\org\jetbrains\annotations\13.0\annotations-13.0.jar") classPaths.add("C:\Users\Luca.m2\repository\org\jetbrains\kotlin\kotlin-runtime\1.2.10\kotlin-runtime-1.2.10.jar") classPaths.add("C:\Users\Luca.m2\repository\org\jetbrains\kotlin\kotlin-reflect\1.2.10\kotlin-reflect-1.2.10.jar") classPaths.add("C:\Users\Luca.m2\repository\com\jtransc\jtransc-core\0.6.8\jtransc-core-0.6.8.jar") classPaths.add("C:\Users\Luca.m2\repository\com\jtransc\jtransc-asm\0.6.8\jtransc-asm-0.6.8.jar") classPaths.add("C:\Users\Luca.m2\repository\org\apache\maven\plugin-tools\maven-plugin-annotations\3.4\maven-plugin-annotations-3.4.jar") classPaths.add("C:\Users\Luca.m2\repository\org\apache\maven\maven-artifact\3.0\maven-artifact-3.0.jar") classPaths.add("C:\Users\Luca.m2\repository\org\apache\maven\maven-core\3.3.9\maven-core-3.3.9.jar") classPaths.add("C:\Users\Luca.m2\repository\org\apache\maven\maven-model\3.3.9\maven-model-3.3.9.jar") classPaths.add("C:\Users\Luca.m2\repository\org\apache\maven\maven-settings\3.3.9\maven-settings-3.3.9.jar") classPaths.add("C:\Users\Luca.m2\repository\org\apache\maven\maven-settings-builder\3.3.9\maven-settings-builder-3.3.9.jar") classPaths.add("C:\Users\Luca.m2\repository\org\apache\maven\maven-builder-support\3.3.9\maven-builder-support-3.3.9.jar") classPaths.add("C:\Users\Luca.m2\repository\org\apache\maven\maven-repository-metadata\3.3.9\maven-repository-metadata-3.3.9.jar") classPaths.add("C:\Users\Luca.m2\repository\org\apache\maven\maven-plugin-api\3.3.9\maven-plugin-api-3.3.9.jar") classPaths.add("C:\Users\Luca.m2\repository\org\apache\maven\maven-model-builder\3.3.9\maven-model-builder-3.3.9.jar") classPaths.add("C:\Users\Luca.m2\repository\org\apache\maven\maven-aether-provider\3.3.9\maven-aether-provider-3.3.9.jar") classPaths.add("C:\Users\Luca.m2\repository\org\eclipse\aether\aether-spi\1.0.2.v20150114\aether-spi-1.0.2.v20150114.jar") classPaths.add("C:\Users\Luca.m2\repository\org\eclipse\aether\aether-impl\1.0.2.v20150114\aether-impl-1.0.2.v20150114.jar") classPaths.add("C:\Users\Luca.m2\repository\org\eclipse\sisu\org.eclipse.sisu.plexus\0.3.2\org.eclipse.sisu.plexus-0.3.2.jar") classPaths.add("C:\Users\Luca.m2\repository\javax\enterprise\cdi-api\1.0\cdi-api-1.0.jar") classPaths.add("C:\Users\Luca.m2\repository\javax\annotation\jsr250-api\1.0\jsr250-api-1.0.jar") classPaths.add("C:\Users\Luca.m2\repository\org\eclipse\sisu\org.eclipse.sisu.inject\0.3.2\org.eclipse.sisu.inject-0.3.2.jar") classPaths.add("C:\Users\Luca.m2\repository\com\google\inject\guice\4.0\guice-4.0-no_aop.jar") classPaths.add("C:\Users\Luca.m2\repository\javax\inject\javax.inject\1\javax.inject-1.jar") classPaths.add("C:\Users\Luca.m2\repository\aopalliance\aopalliance\1.0\aopalliance-1.0.jar") classPaths.add("C:\Users\Luca.m2\repository\org\codehaus\plexus\plexus-interpolation\1.21\plexus-interpolation-1.21.jar") classPaths.add("C:\Users\Luca.m2\repository\org\codehaus\plexus\plexus-utils\3.0.22\plexus-utils-3.0.22.jar") classPaths.add("C:\Users\Luca.m2\repository\org\codehaus\plexus\plexus-classworlds\2.5.2\plexus-classworlds-2.5.2.jar") classPaths.add("C:\Users\Luca.m2\repository\org\codehaus\plexus\plexus-component-annotations\1.6\plexus-component-annotations-1.6.jar") classPaths.add("C:\Users\Luca.m2\repository\org\sonatype\plexus\plexus-sec-dispatcher\1.3\plexus-sec-dispatcher-1.3.jar") classPaths.add("C:\Users\Luca.m2\repository\org\sonatype\plexus\plexus-cipher\1.4\plexus-cipher-1.4.jar") classPaths.add("C:\Users\Luca.m2\repository\org\apache\commons\commons-lang3\3.4\commons-lang3-3.4.jar") classPaths.add("C:\Users\Luca.m2\repository\org\codehaus\plexus\plexus-archiver\2.1.1\plexus-archiver-2.1.1.jar") classPaths.add("C:\Users\Luca.m2\repository\org\codehaus\plexus\plexus-container-default\1.0-alpha-9-stable-1\plexus-container-default-1.0-alpha-9-stable-1.jar") classPaths.add("C:\Users\Luca.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar") classPaths.add("C:\Users\Luca.m2\repository\classworlds\classworlds\1.1-alpha-2\classworlds-1.1-alpha-2.jar") classPaths.add("C:\Users\Luca.m2\repository\org\codehaus\plexus\plexus-io\2.0.3\plexus-io-2.0.3.jar") classPaths.add("C:\Users\Luca.m2\repository\org\apache\maven\shared\maven-artifact-resolver\1.0\maven-artifact-resolver-1.0.jar") classPaths.add("C:\Users\Luca.m2\repository\org\eclipse\aether\aether-api\1.1.0\aether-api-1.1.0.jar") classPaths.add("C:\Users\Luca.m2\repository\org\eclipse\aether\aether-util\1.1.0\aether-util-1.1.0.jar") classPaths.add("C:\Users\Luca.m2\repository\org\apache\maven\maven-compat\3.0\maven-compat-3.0.jar") classPaths.add("C:\Users\Luca.m2\repository\org\sonatype\sisu\sisu-inject-plexus\1.4.2\sisu-inject-plexus-1.4.2.jar") classPaths.add("C:\Users\Luca.m2\repository\org\sonatype\sisu\sisu-inject-bean\1.4.2\sisu-inject-bean-1.4.2.jar") classPaths.add("C:\Users\Luca.m2\repository\org\sonatype\sisu\sisu-guice\2.1.7\sisu-guice-2.1.7-noaop.jar") classPaths.add("C:\Users\Luca.m2\repository\org\apache\maven\wagon\wagon-provider-api\1.0-beta-6\wagon-provider-api-1.0-beta-6.jar") classPaths.add("C:\Users\Luca.m2\repository\com\jtransc\jtransc-utils\0.6.8\jtransc-utils-0.6.8.jar") classPaths.add("C:\Users\Luca.m2\repository\com\jtransc\jtransc-rt-core\0.6.8\jtransc-rt-core-0.6.8.jar") classPaths.add("C:\Users\Luca.m2\repository\com\jtransc\jtransc-annotations\0.6.8\jtransc-annotations-0.6.8.jar") classPaths.add("C:\Users\Luca.m2\repository\com\jtransc\jtransc-gen-haxe\0.6.8\jtransc-gen-haxe-0.6.8.jar") classPaths.add("C:\Users\Luca.m2\repository\com\jtransc\jtransc-gen-js\0.6.8\jtransc-gen-js-0.6.8.jar") classPaths.add("C:\Users\Luca.m2\repository\com\jtransc\jtransc-gen-cpp\0.6.8\jtransc-gen-cpp-0.6.8.jar") classPaths.add("C:\Users\Luca.m2\repository\org\rauschig\jarchivelib\0.7.1\jarchivelib-0.7.1.jar") classPaths.add("C:\Users\Luca.m2\repository\org\apache\commons\commons-compress\1.9\commons-compress-1.9.jar") classPaths.add("C:\Users\Luca.m2\repository\com\jtransc\jtransc-gen-d\0.6.8\jtransc-gen-d-0.6.8.jar") classPaths.add("C:\Users\Luca.m2\repository\com\jtransc\jtransc-gen-cs\0.6.8\jtransc-gen-cs-0.6.8.jar") classPaths.add("C:\Users\Luca.m2\repository\com\jtransc\jtransc-gen-php\0.6.8\jtransc-gen-php-0.6.8.jar") classPaths.add("C:\Users\Luca.m2\repository\com\jtransc\jtransc-gen-as3\0.6.8\jtransc-gen-as3-0.6.8.jar") classPaths.add("C:\Users\Luca.m2\repository\com\jtransc\jtransc-gen-dart\0.6.8\jtransc-gen-dart-0.6.8.jar") classPaths.add("C:\Work\Test\mongosql\target\classes") Processing classes... Detected service: com.jtransc.charset.JTranscCharset with implementations com.jtransc.charset.charsets.JTranscCharsetUTF8 for targets [] Detected service: com.jtransc.charset.JTranscCharset with implementations com.jtransc.charset.charsets.JTranscCharsetIBM866 for targets [] Detected service: com.jtransc.charset.JTranscCharset with implementations com.jtransc.charset.charsets.JTranscCharsetLatin1 for targets [] Detected service: com.jtransc.charset.JTranscCharset with implementations com.jtransc.charset.charsets.JTranscCharsetUSASCII for targets [] Detected service: com.jtransc.charset.JTranscCharset with implementations com.jtransc.charset.charsets.JTranscCharsetUTF16LE for targets [] Detected service: com.jtransc.charset.JTranscCharset with implementations com.jtransc.charset.charsets.JTranscCharsetUTF16BE for targets [] Detected service NOT included for TargetName(name=haxe): com.jtransc.JTranscProcess with implementations com.jtransc.cs.JTranscProcessCSharp for targets [cs] Detected service: com.jtransc.JTranscProcess with implementations com.jtransc.mix.JTranscProcessMulti for targets [js, d, haxe, dart] Detected service NOT included for TargetName(name=haxe): com.jtransc.io.async.JTranscAsyncFileSystem with implementations com.jtransc.io.async.impl.JTranscAsyncFileSystemNIO for targets [java] Detected service: com.jtransc.io.async.JTranscAsyncFileSystem with implementations com.jtransc.io.async.impl.JTranscAsyncFileSystemDefault for targets [] Detected service NOT included for TargetName(name=haxe): com.jtransc.io.async.JTranscAsyncResources with implementations com.jtransc.io.async.impl.JTranscAsyncResourcesJVM for targets [java] Detected service: com.jtransc.io.async.JTranscAsyncResources with implementations com.jtransc.io.async.impl.JTranscAsyncResourcesDefault for targets [] Detected service NOT included for TargetName(name=haxe): com.jtransc.imaging.async.JTranscAsyncBitmapDataDecoder with implementations com.jtransc.imaging.async.impl.JTranscAsyncBitmapDataDecoderAwt for targets [java] Detected service NOT included for TargetName(name=haxe): com.jtransc.imaging.async.JTranscAsyncBitmapDataDecoder with implementations com.jtransc.imaging.async.impl.JTranscAsyncBitmapDataDecoderHtml for targets [js] Detected service: kotlin.reflect.jvm.internal.impl.resolve.ExternalOverridabilityCondition with implementations kotlin.reflect.jvm.internal.impl.load.java.FieldOverridabilityCondition for targets [] Detected service: kotlin.reflect.jvm.internal.impl.resolve.ExternalOverridabilityCondition with implementations kotlin.reflect.jvm.internal.impl.load.java.ErasedOverridabilityCondition for targets [] Detected service: kotlin.reflect.jvm.internal.impl.resolve.ExternalOverridabilityCondition with implementations kotlin.reflect.jvm.internal.impl.load.java.JavaIncompatibilityRulesOverridabilityCondition for targets [] Detected service: kotlin.reflect.jvm.internal.impl.resolve.ExternalOverridabilityCondition with implementations kotlin.reflect.jvm.internal.impl.load.java.FieldOverridabilityCondition for targets [] Detected service: kotlin.reflect.jvm.internal.impl.resolve.ExternalOverridabilityCondition with implementations kotlin.reflect.jvm.internal.impl.load.java.ErasedOverridabilityCondition for targets [] Detected service: kotlin.reflect.jvm.internal.impl.resolve.ExternalOverridabilityCondition with implementations kotlin.reflect.jvm.internal.impl.load.java.JavaIncompatibilityRulesOverridabilityCondition for targets [] Detected service: kotlin.reflect.jvm.internal.impl.builtins.BuiltInsLoader with implementations kotlin.reflect.jvm.internal.impl.builtins.BuiltInsLoaderImpl for targets [] Detected service: kotlin.reflect.jvm.internal.impl.builtins.BuiltInsLoader with implementations kotlin.reflect.jvm.internal.impl.builtins.BuiltInsLoaderImpl for targets [] Detected service: com.jtransc.ast.AstMethodFeature with implementations com.jtransc.ast.feature.method.GotosFeature for targets [] Detected service: com.jtransc.ast.AstMethodFeature with implementations com.jtransc.ast.feature.method.OptimizeFeature for targets [] Detected service: com.jtransc.ast.AstMethodFeature with implementations com.jtransc.ast.feature.method.SimdFeature for targets [] Detected service: com.jtransc.ast.AstMethodFeature with implementations com.jtransc.ast.feature.method.UndeterministicParameterEvaluationFeature for targets [] Detected service: com.jtransc.ast.AstMethodFeature with implementations for targets [] Detected service: com.jtransc.plugin.JTranscPlugin with implementations com.jtransc.plugin.lang.ExtraLangJTranscPlugin for targets [] Detected service: com.jtransc.plugin.JTranscPlugin with implementations com.jtransc.plugin.service.ServiceLoaderJTranscPlugin for targets [] Detected service: com.jtransc.plugin.JTranscPlugin with implementations com.jtransc.plugin.jna.JnaJTranscPlugin for targets [] Detected service: com.jtransc.plugin.JTranscPlugin with implementations com.jtransc.plugin.proxy.ProxyJTranscPlugin for targets [] Detected service: com.jtransc.plugin.JTranscPlugin with implementations com.jtransc.plugin.reflection.MetaReflectionJTranscPlugin for targets [] Detected service: com.jtransc.plugin.JTranscPlugin with implementations com.jtransc.plugin.enum.EnumJTranscPlugin for targets [] Detected service: com.jtransc.plugin.JTranscPlugin with implementations com.jtransc.plugin.lang.IncludeSingleConstructorsJTranscPlugin for targets [] Detected service: com.jtransc.plugin.JTranscPlugin with implementations com.jtransc.plugin.overlay.OverlayJTranscPlugin for targets [] Detected service: com.jtransc.plugin.JTranscPlugin with implementations com.jtransc.plugin.reref.ReReferenceJTranscPlugin for targets [] Detected service: com.jtransc.ast.AstProgramFeature with implementations com.jtransc.ast.feature.program.LambdaProgramFeature for targets [] Detected service: javax.annotation.processing.Processor with implementations org.eclipse.sisu.space.SisuIndexAPT6 for targets [] Detected service NOT included for TargetName(name=haxe): com.jtransc.io.async.JTranscAsyncFileSystem with implementations com.jtransc.io.async.impl.JTranscAsyncFileSystemNIO for targets [java] Detected service: com.jtransc.io.async.JTranscAsyncFileSystem with implementations com.jtransc.io.async.impl.JTranscAsyncFileSystemDefault for targets [] Detected service NOT included for TargetName(name=haxe): com.jtransc.io.async.JTranscAsyncResources with implementations com.jtransc.io.async.impl.JTranscAsyncResourcesJVM for targets [java] Detected service: com.jtransc.io.async.JTranscAsyncResources with implementations com.jtransc.io.async.impl.JTranscAsyncResourcesDefault for targets [] Detected service NOT included for TargetName(name=haxe): com.jtransc.imaging.async.JTranscAsyncBitmapDataDecoder with implementations com.jtransc.imaging.async.impl.JTranscAsyncBitmapDataDecoderAwt for targets [java] Detected service NOT included for TargetName(name=haxe): com.jtransc.imaging.async.JTranscAsyncBitmapDataDecoder with implementations com.jtransc.imaging.async.impl.JTranscAsyncBitmapDataDecoderHtml for targets [js] Detected service: com.jtransc.gen.GenTargetDescriptor with implementations com.jtransc.gen.haxe.HaxeTarget for targets [] Detected service: com.jtransc.gen.GenTargetDescriptor with implementations com.jtransc.gen.js.JsTarget for targets [] Detected service: com.jtransc.gen.cpp.libs.Lib with implementations for targets [] Detected service: com.jtransc.gen.cpp.libs.Lib with implementations com.jtransc.gen.cpp.libs.BdwgcLib for targets [] Detected service: com.jtransc.gen.GenTargetDescriptor with implementations com.jtransc.gen.cpp.CppTarget for targets [] Detected service: com.jtransc.gen.GenTargetDescriptor with implementations com.jtransc.gen.d.DTarget for targets [] Detected service: com.jtransc.gen.GenTargetDescriptor with implementations com.jtransc.gen.cs.CSharpTarget for targets [] Detected service: com.jtransc.gen.GenTargetDescriptor with implementations com.jtransc.gen.php.PhpTarget for targets [] Detected service: com.jtransc.gen.GenTargetDescriptor with implementations com.jtransc.gen.as3.As3Target for targets [] Detected service: com.jtransc.gen.GenTargetDescriptor with implementations com.jtransc.gen.dart.DartTarget for targets [] Discovered used service: com.jtransc.charset.JTranscCharset with impls [com.jtransc.charset.charsets.JTranscCharsetUTF8, com.jtransc.charset.charsets.JTranscCharsetIBM866, com.jtransc.charset.charsets.JTranscCharsetLatin1, com.jtransc.charset.charsets.JTranscCharsetUSASCII, com.jtransc.charset.charsets.JTranscCharsetUTF16LE, com.jtransc.charset.charsets.JTranscCharsetUTF16BE] ERROR! : generateClass: Can't find class java.sql.Date ERROR! : generateClass: Can't find class java.sql.Timestamp ERROR! : generateClass: Can't find class com.google.errorprone.annotations.CanIgnoreReturnValue ERROR! : generateClass: Can't find class java.util.concurrent.atomic.AtomicLongArray Discovered used service: com.jtransc.JTranscProcess with impls [com.jtransc.mix.JTranscProcessMulti] ERROR! : generateClass: Can't find class java.util.stream.Collectors ERROR! : generateClass: Can't find class java.sql.Time ERROR! : generateClass: Can't find class org.joda.convert.FromString ERROR! : generateClass: Can't find class org.slf4j.Logger ERROR! : generateClass: Can't find class org.slf4j.LoggerFactory ERROR! : generateClass: Can't find class com.google.errorprone.annotations.DoNotMock ERROR! : generateClass: Can't find class java.util.concurrent.atomic.AtomicReferenceArray ERROR! : generateClass: Can't find class com.google.errorprone.annotations.concurrent.LazyInit ERROR! : generateClass: Can't find class com.google.j2objc.annotations.RetainedWith ERROR! : generateClass: Can't find class java.util.Spliterators ERROR! : generateClass: Can't find class com.google.errorprone.annotations.CompatibleWith ERROR! : generateClass: Can't find class com.google.errorprone.annotations.DoNotCall ERROR! : generateClass: Can't find class java.util.concurrent.atomic.AtomicIntegerArray ERROR! : generateClass: Can't find class org.joda.convert.ToString ERROR! : generateClass: Can't find class java.util.stream.StreamSupport ERROR! : generateClass: Can't find class com.google.errorprone.annotations.ForOverride ERROR! : generateClass: Can't find class net.fortuna.ical4j.model.Calendar ERROR! : generateClass: Can't find class net.fortuna.ical4j.model.Component ERROR! : generateClass: Can't find class net.fortuna.ical4j.model.PeriodList ERROR! : generateClass: Can't find class net.fortuna.ical4j.data.ParserException ERROR! : generateClass: Can't find class net.fortuna.ical4j.model.DateTime ERROR! : generateClass: Can't find class net.fortuna.ical4j.data.CalendarBuilder ERROR! : generateClass: Can't find class net.fortuna.ical4j.model.Period ERROR! : generateClass: Can't find class net.fortuna.ical4j.model.ComponentList ERROR! : generateClass: Can't find class net.fortuna.ical4j.model.Property ERROR! : generateClass: Can't find class com.google.j2objc.annotations.Weak ERROR! : generateClass: Can't find class java.util.Spliterators$AbstractSpliterator ERROR! : generateClass: Can't find class java.sql.SQLException ERROR! : generateClass: Can't find class com.google.errorprone.annotations.concurrent.GuardedBy Ok classes=2903, methods=32156, time=6378 Ok (6668) AstProgram. Can't find class 'java.util.Spliterators$AbstractSpliterator' AstProgram. ClassFile: java/util/Spliterators$AbstractSpliterator.class AstProgram. File exists: true : #merged#\java\util\Spliterators$AbstractSpliterator.class [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 7.961 s [INFO] Finished at: 2021-09-13T15:09:08+03:00 [INFO] ------------------------------------------------------------------------ [ERROR] AstProgram. Can't find class 'java.util.Spliterators$AbstractSpliterator' -> [Help 1] [ERROR]

    opened by LucaGabi 0
  • setup lime

    setup lime

    https://jtransc.soywiz.com/usage/setup says to do haxelib setup lime, while https://github.com/jtransc/jtransc#installing-haxe says haxelib install lime 5.5.0 . It looks like the latter is correct.

    opened by jayvdb 1
  • jtransc-main-run does not exists

    jtransc-main-run does not exists

    I'm trying to convert a class file to cxx source, I have read the link: https://jtransc.soywiz.com/usage/commandline

    But there's no such file/directory in the repository.

    opened by bigcat26 0
Releases(0.7.0)
  • 0.7.0(Oct 6, 2020)

  • 0.6.0(May 19, 2017)

    0.6.0

    New features

    • @Intrigus: C++ target with GC continuing the work on @dsp-omen that created the initial c++ target
    • AS3 target (BigTest passes)
    • Dart target (BigTest passes)
    • Prevent generating runtime invisible annotations
    • Added com.jtransc.io.async package to handle asynchronous I/O
    • Improved com.jtransc.js.JsDynamic

    Changes

    • Some refactorings at CommonGenerator
    • @JTranscNativeName now supports a target field to have a class has different types on different targets

    Fixes

    • @SergeyLabutin - Static initialization fixes
    • @SergeyLabutin - Some thread work on Haxe/CPP
    • Handle template references inside @JTranscCallSiteBody

    Implemented features

    • @SergeyLabutin - Implemented Class.getGenericSuperclass

    Optimizations

    • Better output quality (less casts), still left
    • Lightly improved compile time
    • Improved StringBuilder runtime in all targets
    • Improved slightly performance on all targets (simplifying Object construction)
    • D put strings at compile-time since Object construction no longer require runtime
    • C# implemented genStmSetArrayLiterals reducing output size and startup time
    • Rework on Haxe arrays and casts specially in C++ for a major performance boost
    • Implemented Haxe-C++ goto hack for even better performance on loops

    Deprecations

    • Array casts are now deprecated and removed, because that requirement was slowing down some implementations. In the future we will explore other options. For now, please use Mem/FastMemory* classes.
    • Deprecated {% FIELD %} and {% METHOD %} (replaces to NAME) in favour of {% IFIELD %} and {% IMETHOD %} (replaces to .NAME or ['NAME'] in JS just when required and works with minification)
    • Deprecated @JTranscNativeClass that was redundant due to @JTranscNativeName.
    Source code(tar.gz)
    Source code(zip)
Owner
JTransc
JVM AOT compiler generating haxe, with initial focus on kotlin and games
JTransc
An application for converting between units

currency-converter This is an Android Based Application for helping users convert between currencies. The project is part of our Android Jam Series La

MMU CIT CLUB 2 Nov 5, 2021
Lambda-snake.kt - Snake Game Implementation for Web using Kotlin programming language compiled for Javascript

Projeto da disciplina de Linguagem de Programação Funcional 2021.1 (jan/2022) ??

Alex Candido 3 Jan 10, 2022
🚀 Native iOS- and Android- Apps with JavaScript

Titanium Welcome to the Titanium open source project. Titanium provides a mature platform for developers to build completely native cross-platform mob

Team Appcelerator 2.6k Jan 4, 2023
Uproot-JS - Extract JavaScript files from burp suite project with ease

Extract JavaScript files from burp suite project with ease. Disclaimer I am not

Dexter0us 50 Aug 8, 2022
Cross-platform framework for building truly native mobile apps with Java or Kotlin. Write Once Run Anywhere support for iOS, Android, Desktop & Web.

Codename One - Cross Platform Native Apps with Java or Kotlin Codename One is a mobile first cross platform environment for Java and Kotlin developers

Codename One 1.4k Jan 9, 2023
:bouquet: An easy way to persist and run code block only as many times as necessary on Android.

Only ?? An easy way to persist and run code block only as many times as necessary on Android. Download Gradle Add below codes to your root build.gradl

Jaewoong Eum 479 Dec 25, 2022
:bouquet: An easy way to persist and run code block only as many times as necessary on Android.

Only ?? An easy way to persist and run code block only as many times as necessary on Android. Download Gradle Add below codes to your root build.gradl

Jaewoong Eum 468 Apr 14, 2021
Run Kotlin/JS libraries in Kotlin/JVM and Kotlin/Native programs

Zipline This library streamlines using Kotlin/JS libraries from Kotlin/JVM and Kotlin/Native programs. It makes it possible to do continuous deploymen

Cash App 1.5k Dec 30, 2022
Run shell commands from a Kotlin script or application with ease

Run shell commands from a Kotlin script or application with ease. Turtle simplifies the process of running external commands and processes from your K

Andrew Lord 187 Jan 9, 2023
Kotlin and Java API for generating .swift source files.

SwiftPoet SwiftPoet is a Kotlin and Java API for generating .swift source files. Source file generation can be useful when doing things such as annota

Outfox 232 Jan 2, 2023
Gradle plugin adding a task to run a Paper Minecraft server

Run Paper Run Paper is a Gradle plugin which adds a task to automatically download and run a Paper Minecraft server along with your plugin built by Gr

Jason 64 Dec 29, 2022
Run Minecraft on the command line

HeadlessForge While headless Minecraft Clients aren't anything new, they come with a drawback. The Minecraft API is missing and you need to add all fu

null 28 Oct 17, 2022
Actions are things that run, with parameters. Serves as a common dependency for a variety of Cepi extensions.

Actions Actions that take in customizable paramaters, an optional target, and do things. Installation Download the jar from Releases OR compile it you

Cepi 1 Jan 9, 2022
Android app with minimal UI to run snowflake pluggable transports proxy, based on library IPtProxy

Simple Kotlin app for testing IPtProxy's snowflake proxy on Android Essentially a button for starting and stopping a Snowflake Proxy with the default

null 2 Jun 26, 2022
Solid - A CLI that tries to cover a dry-run phase for liquibase database change management

solid a CLI that tries to cover a dry-run phase for liquibase database change ma

Giovanni Panice (mos_) 1 Jan 28, 2022
Sample Code for fake Kotlin library written in Java

Jatlin このリポジトリは ブログ記事 のためのサンプルコードです。詳細は記事をご覧ください。 プロジェクト構成 :java-lib にKotlinに偽装したJavaファイルが含まれます。 :kotlin-lib は :java-lib をビルドしたJARファイルをKotlinから読み込んで実行

Takaki Hoshikawa 3 Dec 10, 2021
Adds loveable red pandas into Minecraft! Who doesn't love a Red Panda in their world?

?? Akali Adds loveable red pandas into Minecraft! Who doesn't love a Red Panda in their world? :3 This is a Forge and Fabric mod under their respected

Noel ʕ •ᴥ•ʔ 4 Jul 4, 2022
Intellij Idea plugin to push indexing metrics into an Elasticsearch cluster

indexing-metrics-collector Allows gathering IntelliJ IDEA project scanning & indexing metrics for further analysis by ingesting them into an elasticse

Rene Groeschke 6 Nov 26, 2022
A CLI tool to convert multi-module Jetpack Compose compiler metrics into beautiful HTML reports

A CLI tool to convert multi-module Jetpack Compose compiler metrics into beautiful HTML reports 1. What are Jetpack Compose compiler metrics? The Comp

Jaya Surya Thotapalli 116 Jan 3, 2023