Skip to content
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

Does it work well now #1

Closed
wowoName opened this issue May 8, 2024 · 3 comments
Closed

Does it work well now #1

wowoName opened this issue May 8, 2024 · 3 comments

Comments

@wowoName
Copy link

wowoName commented May 8, 2024

Does it work well now

@kohlschuetter
Copy link
Member

What are you waiting for

@wowoName
Copy link
Author

wowoName commented May 9, 2024

@kohlschuetter
Copy link
Member

I'm not sure I understand what you're looking for, @wowoName.

I think you want to transpile some Java code and then access it from the JavaScript console, is that right?

If that's the case, jacline makes it very easy to do that:

All you need is to annotate the class with @JsType and @JsExport, and also annotate the method in question with @JsExport. Then your class will be accessible from vanilla JavaScript and the console by specifying the full package name (e.g., com.example.YourClass), and the methods (static or not) will be accessible by its Java name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants