java - How can i call jar API from javascript using node.js with more implementations steps -


i trying re-use code in different technology stack. let's say: have jar contatins followng class defination:

package com.gallop;  import java.io.file; import java.io.ioexception;  public class generatefile {      public void generatefile(string filename)     {         file file = new file(filename);         try {             file.createnewfile();         } catch (ioexception e) {             // todo auto-generated catch block             e.printstacktrace();         }     } } 

now, code exported filegenerator.jar.

now, question how can use class inside filegenerator.jar create file using javascript. basically, have import generatefile class jar. have create instance of generatefile. using instance of generatefile, should able invoke method generatefile filepath parameter.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -