Skip to content

Not working with centos #4

Open

Description

@kirangsa

Hi,
I am using it for compiling java code . But it in local window machine its working fine. But it's not working on the server. Which is centos and java 7 installed on it.

It's throwing this Error: Could not find or load main class Main

if (lang === "Java") {
        //if(inputRadio === "true")
        if (input) {
            var envData = { OS: "linux" };
            console.log(code);
            compiler.compileJavaWithInput(envData, code, input, function(data) {
                res.send(data);
            });
        } else {
            var envData = { OS: "linux" };
            console.log(code);
            compiler.compileJava(envData, code, function(data) {
                res.send(data);
            });

        }

    }

Activity

  1. scriptnull commented on Oct 21, 2016

    @scriptnull
    Owner

    Could you also post the java code, that you tried to compile ?

    I haven't tried this combination (centOS + java 7) yet. Let me try it out after you post the java code that you are trying to compile.

  2. kirangsa commented on Oct 21, 2016

    @kirangsa
    Author

    Ya am trying with basic helloworld.

    public class Main {
        public static void main(String[] args) { 
            System.out.println("Hello, World");
        }
    }

    I tried to compile this directly in server its working fine. While trying through compilex it's giving the above error.

    I have checked the temp folder on the server. It's creating the Main.java file but class file is not there.

  3. starlightyear commented on Oct 28, 2016

    @starlightyear

    +1

  4. scriptnull commented on Mar 18, 2017

    @scriptnull
    Owner

    Hi,
    I just now deprecated this package. Please read the deprecation notice for alternative solutions.

    Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions