File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Java to JavaScript using VJET Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java to JavaScript using VJET" Watch "Java to JavaScript using VJET" New topic

Java to JavaScript using VJET

Peter Lager

Joined: Nov 10, 2012
Posts: 6

I am a Java programmer and I am interested in using JavaScript. I have several Java libraries that I wish to convert to JS. I am using Eclipse Keplar and experimenting with the VJET plugin. I have been going through the VJET tutorials and have created a couple of test classes in JS.

I tried the JS2Java code generation feature of VJET and got the following response

Js 2 Java code generation
Generator output:
Generator complete.

Great I got two the two Java files to play with.

I then created a Java project with a very simple Java class and attempted to convert it to JS with the following result

Java to JS code generation
Generator output:
Generator complete.

i.e. no JS files.

I tried putting the Java class in the VJET Project but that had no effect. I have looked at the VJET help docs but it doesn't cover this area.

Any help would be appreciated.
I agree. Here's the link:
subject: Java to JavaScript using VJET
It's not a secret anymore!