j2v8 Tag

Tabris.js was designed to help developers build native cross-platform apps using a single JavaScript codebase. We offer many tools to boost efficiency - like the Tabris.js developer app and the cloud build service. With Tabris.js 1.8 we’ve introduced a new enhancement that will make a major difference when it comes to getting things done - an interactive debugger. Setup Tabris.js 1.8 apps on Android can now be debugged...

Read More

Tabris.js 1.7 is here, now! It features the ability to set rounded corners on widgets, a system bar theme for Android and iOS, simplified syntax for the creation of widgets and much more. Read on for the highlights! Rounded corners on widgets The new property cornerRadius allows you to apply a rounded clipping to the corners of a widget. Round corners can be used to style any widget, such as Composite...

Read More

Just in time for Christmas, J2V8 3.1 is now available. It ships as standard JAR from Maven Central, an Android Archive (AAR) for your Android developer friends, and now as an OSGi bundle. Here is the official New and Noteworthy for J2V8 3.1. Note: Please consume 3.1.6. I had a number of deployment issues when pushing out 3.1.0 and it took me a few tries. Performance Improvements J2V8 3.1 brings...

Read More

J2V8 enables developers to embed Google's V8 JavaScript engine in their Java applications. V8 is entirely implemented in C++ and we enable this embedding by creating a thin JNI (Java Native Interface) layer which exposes the V8 API to Java. The very first problem we faced while implementing this was how do you reference C++ objects from Java? This problem is not unique to J2V8, and will likely affect all...

Read More

We built J2V8 to bring highly performant JavaScript to Java in general, and to the Android platform in particular. By exposing Google's V8 JavaScript API in Java, developers can now embed V8 into their Java applications on Windows, Linux, MacOS and Android. The approach has worked very well both for Tabris.js as well as many other consumers of J2V8. The hardest technical challenge we faced while building J2V8...

Read More

J2V8 is a set of Java bindings for V8. J2V8 brings the V8 API to Java developers. We developed J2V8 to help with the performance of Tabris.js, our cross-platform, mobile development toolkit. A common J2V8 question is, how can I call native JavaScript functions from Java? For example, how can you invoke JSON.stringify() on a V8Object from Java. It turns out to be relatively straightforward. In the case...

Read More

Last month I spent 10 days in Germany. I spent time at the EclipseSource headquarters in Karlsruhe, where I enjoyed schnitzel, good beer and a few strange sights. I also attended EnterJS, where we brought an iPhone attached to a punching bag to show just how responsive Tabris.js is. While at EnterJS, I presented J2V8 and released J2V8 3.0. J2V8 brings Google's V8 JavaScript engine to Java. Here is...

Read More

J2V8 is a set of Java bindings for Google’s popular JavaScript engine, V8. It was developed to bring highly efficient JavaScript to Android and is the workhorse behind Tabris.js. J2V8 also runs on Windows, Linux and Mac OS.  In the previous tutorial we looked at how to execute JavaScript using J2V8. In this tutorial we will demonstrate how to register Java callbacks with J2V8. Java callbacks allow...

Read More

J2V8 is a set of Java bindings for the popular V8 JavaScript engine. In this tutorial we will explore how to use J2V8 as a JavaScript engine on Heroku. Heroku Heroku is a cloud based Platform as a Service (PaaS) supporting several programming languages. Heroku originally started as a platform for hosting Ruby, but today it supports many languages including Java. With Java, you simply push your sources to Heroku, along...

Read More