my dog learned polymorphism*
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java to JavaScript using VJET" Watch "Java to JavaScript using VJET" New topic
Author

Java to JavaScript using VJET

Peter Lager
Greenhorn

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
Done
Generator output:
file:/Users/peter/Documents/e-workspaces/wsPKL-JScript/Vjet3/src/Test.java
file:/Users/peter/Documents/e-workspaces/wsPKL-JScript/Vjet3/src/TestJsr.java
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
Done
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Java to JavaScript using VJET