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

How complex could be to compile Java? #188

Open
jabrena opened this issue Aug 26, 2020 · 4 comments
Open

How complex could be to compile Java? #188

jabrena opened this issue Aug 26, 2020 · 4 comments
Labels
question Further information is requested

Comments

@jabrena
Copy link

jabrena commented Aug 26, 2020

Hi,

I was reviewing concept in multiple Kotlin projects and I would like to do the same stuff with Java.
How complex could be the configuration/change of this project in order to compile Java examples?

Currently if I try to compile Java in any example:

public class Main {
    public static void main(String[] args) {
        System.out.println("This will be printed");
    }
}

https://blog.jetbrains.com/kotlin/2018/04/embedding-kotlin-playground/

I receive the following errors:

Expecting member declaration
Expecting member declaration
Expecting member declaration
Expecting member declaration
Expecting member declaration
Expecting member declaration
Expecting member declaration
Expecting member declaration
Expecting member declaration
Expecting member declaration
Function declaration must have a name

I would like to learn if it is possible to configure in some way current kotlin-playground to compile and run Java code.

Many thanks in advance

Juan Antonio

Related issue: JetBrains/kotlin-playground#97

@AlexanderPrendota AlexanderPrendota added the question Further information is requested label Aug 26, 2020
@AlexanderPrendota
Copy link
Collaborator

Hey, that server supports only Kotlin code and I have no plans to implement a Java version. :(

@jabrena
Copy link
Author

jabrena commented Aug 26, 2020

Hi,

If I fork the project, some orientation to modify the project to compile with Java?

@AlexanderPrendota
Copy link
Collaborator

No objections from my side :) It will be good for the community 👍

@jabrena
Copy link
Author

jabrena commented Aug 26, 2020

I will review the whole project as a starting point.

Cheers

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

No branches or pull requests

2 participants