cincheo / jsweet

A Java to JavaScript transpiler.
http://www.jsweet.org
Other
1.45k stars 160 forks source link

Support more java.* API in J4TS #598

Open rfvbgt54 opened 4 years ago

rfvbgt54 commented 4 years ago

I would like to do the following as stated in the FAQ(http://www.jsweet.org/faq/).

Case one — compile the library with JSweet: if the library is open source or if you own the source code, you might be able to compile it with JSweet with no or little code modification. What you will get is a TypeScript/JavaScript version of your library (usable from any TypeScript or JavaScript program). Then, you just needed to package it as a candy, similar to what is done in the J4TS project.

[Background] I am trying to create original CANDY using "j4ts-awt-swing". However, some java libraries are missing and cause an error. Example) property 'Dialog' does not exist on type 'typeof awt' property 'GridBagConstraints' does not exist on type 'typeof awt' property 'GraphicsConfiguration' does not exist on type 'typeof awt'

[Question] 1)What exactly should I do "What you will get is a TypeScript/JavaScript version of your library"? 2)To convert existing my programs, "j4ts-awt-swing" is missing about 80 java libraries. Can I recompile "j4ts-awt-swing" on my PC? ・Download the complete set of sources from "https://github.com/j4ts/j4ts-awt-swing"   ・An error occurred when running [mvn install].

[ERROR] [repository.jsweet.org/195.154.200.248] Failed to execute goal on project j4ts-awt-swing : Could not resolve dependencies for project org.jsweet.candies.j4 ts : 80 j 0.0 4ts-awt-swing : jar : 0.6 .1 -SNAPSHOT : Failed to collect dependencies at org.jsweat : j4 ts : jar : 0.6 .0 -SNAPSHOT : Failed to SHOartifact descriptor for 0.6 org http://repository.jsweet.org/artifactory/libs-release-local/org/jsweet/j4ts/0.6.0-SNAPSHOT/j4ts-0.6.0-SNAPSHOT.pom: .jpacket : http://repository.jsweet.org/artifactory/libs-release-local): : Connection timed out : connect - > [Help1] 3)Is there any other way to resolve the error other than 1) 2)?
lgrignon commented 4 years ago

Hello again @rfvbgt54 Could you please write me an email at louis.grignon@protonmail.com so we could discuss it further?

Thanks for your interest in JSweet :)

lgrignon commented 3 years ago

Hello. Any news on this?