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

example does not run #2

Open
tve opened this issue May 26, 2017 · 3 comments
Open

example does not run #2

tve opened this issue May 26, 2017 · 3 comments

Comments

@tve
Copy link

tve commented May 26, 2017

I'm trying to run the example on Ubuntu 16.04 x64 and I get:

> mvn -q exec:java -e -Dexec.mainClass=com.tdunning.sparse.Learn
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (default-cli) on project AnomalyDetector: An exception occured while executing the Java class. com.tdunning.sparse.Learn -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (default-cli) on project AnomalyDetector: An exception occured while executing the Java class. com.tdunning.sparse.Learn
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
        at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)

I have openjdk-9 installed. Any hints? (I'm not a Java user...)

@tve
Copy link
Author

tve commented May 26, 2017

Looks like it's class search path issue:

[DEBUG] joining on thread Thread[com.tdunning.sparse.Learn.main(),5,com.tdunning.sparse.Learn]
[WARNING]
java.lang.ClassNotFoundException: com.tdunning.sparse.Learn
        at java.net.URLClassLoader.findClass(java.base@9-internal/URLClassLoader.java:384)

@tve
Copy link
Author

tve commented May 26, 2017

Trying to unravel all this maven stuff (yes, I'm not a Java programmer):

> mvn install exec:java
[...]
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (default-cli) on project AnomalyDetector: The parameters 'mainClass' for goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java are missing or invalid -> [Help 1]

@tdunning
Copy link
Owner

tdunning commented May 26, 2017 via email

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