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

java.lang.NoClassDefFoundError: main/Main in eta-init project #20

Closed
jneira opened this issue May 21, 2018 · 3 comments
Closed

java.lang.NoClassDefFoundError: main/Main in eta-init project #20

jneira opened this issue May 21, 2018 · 3 comments

Comments

@jneira
Copy link
Contributor

jneira commented May 21, 2018

Hi, after downloading the eta-init project and changing the plugin version to 0.6.5, a .\gradlew run throws this error:

Exception in thread "main" java.lang.NoClassDefFoundError: main/Main
        at eta.main.main(Unknown Source)
Caused by: java.lang.ClassNotFoundException: main.Main
        at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        ... 1 more

The build.gradle is:

plugins {
    id 'com.typelead.eta' version '0.6.5'
    id 'application'
}

eta {
    version = '0.7.2b1'
    etlasVersion = '1.3.0.0'
}

dependencies {
  compile eta('base:4.8.2.0')
}

Same for 0.6.4 version, both tested in windows 10

@jneira
Copy link
Contributor Author

jneira commented May 21, 2018

  • gradle-eta\examples\simple works fine
  • gradle-eta\examples\simple multi fails with the same error that eta-init

@jneira
Copy link
Contributor Author

jneira commented May 22, 2018

  • After upgrade to 0.6.6 the error persists

@jneira
Copy link
Contributor Author

jneira commented May 22, 2018

  • As anticipated by @rahulmutt, the error is not thrown if removing module Main where from Main.hs

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

1 participant