This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java to JavaScript using VJET

 
Peter Lager
Greenhorn
Posts: 10
C++ Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic