-
-
Notifications
You must be signed in to change notification settings - Fork 260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TeaVM: how to compile jar to javascript? #296
Comments
The one possibility is: install these jar files into Maven local repository. Another is to use |
My java app is composed by these three files: and I can run it with In the directory "webapp", inside my home directory, I've done: mvn -DarchetypeCatalog=local Define value for property 'groupId': com.mycompany.demos Then, according to the StackOverflow discussion you mentioned, I added the following lines to my-first-app/pom.xml:
I also changed the line "com.mycompany.demos.Client" with the mainClass specified in the file /META-INF/MANIFEST.MF inside Main.jar I removed the directory that contains source code, because in this case it's not used: Finally: It worked for a while, downloading a lot of files, then it ends with the error in the attached log. I'm a newbie of Maven and TeaVM, please help me. Thank you very much. |
I don't have your project, I event don't know what is your |
Thank you, I realized what you wrote. |
if it's not obfuscated, you can without much difficulty ;P |
Thank you very much for developing TeaVM!
TeaVM aims to make "java bytecode" to "javascript" easy, so I suppose that converting a Java app composed by three jars to a web app should be easy.
The problem is that I didn't find in the TeaVM documentation any help. I need step by step instructions, I've never used Maven before and I'd like to automatize "jar to web app" with scripting.
Thank you very much for any help :-)
The text was updated successfully, but these errors were encountered: