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

Error: Could not find or load main class gov.nasa.asteroid.hunter.AsteroidHunterApplication #22

Open
jankeromnes opened this issue Jun 18, 2015 · 2 comments

Comments

@jankeromnes
Copy link
Member

On Ubuntu 14.04, I installed the maven packet and ran the Source Code/build.sh script, which seemed to download and build many things.

Then, when I tried the Source Code/start.sh script (after creating a symbolic link from /bin/java/ to /usr/bin/java), I got the following output:

------------------------------------------------------------------
Automatic deployment tool - Start
TCSASSEMBLER
------------------------------------------------------------------
JAVA_HOME=
warurl=/c/NTL-Asteroid-Data-Hunter/Source Code/asteroid/hunter.war
applicationpath=/c/NTL-Asteroid-Data-Hunter/Source Code
Error: Could not find or load main class gov.nasa.asteroid.hunter.AsteroidHunterApplication

This looks like a classpath issue to me, but I'm not sure how to fix it properly. Please help.

@jankeromnes
Copy link
Member Author

Actually, this is probably related to errors I'm seeing during the build process.

When building Tester:

[...]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project tester: Compilation failure: Compilation failure:
[ERROR] /c/NTL-Asteroid-Data-Hunter/Source Code/tester/src/main/java/gov/nasa/asteroid/tester/AsteroidDetectorTester.java:[217,17] error: generics are not supported in -source 1.3
[ERROR] 
[ERROR] (use -source 5 or higher to enable generics)
[ERROR] /c/NTL-Asteroid-Data-Hunter/Source Code/tester/src/main/java/gov/nasa/asteroid/tester/AsteroidDetectorTester.java:[927,24] error: for-each loops are not supported in -source 1.3
[ERROR] 
[ERROR] (use -source 5 or higher to enable for-each loops)
[ERROR] /c/NTL-Asteroid-Data-Hunter/Source Code/tester/src/main/java/gov/nasa/asteroid/tester/AsteroidDetectorTester.java:[1603,17] error: annotations are not supported in -source 1.3
[ERROR] 
[ERROR] (use -source 5 or higher to enable annotations)
[ERROR] /c/NTL-Asteroid-Data-Hunter/Source Code/tester/src/main/java/gov/nasa/asteroid/tester/ImageService.java:[7,11] error: generics are not supported in -source 1.3
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

And when building war:

[ERROR] Failed to execute goal on project hunter: Could not resolve dependencies for project gov.nasa.asteroid:hunter:war:1.0-SNAPSHOT: Failure to find gov.nasa.asteroid:tester:jar:1.0-SNAPSHOT in https://repository.apache.org/content/repositories/snapshots/ was cached in the local repository, resolution will not be reattempted until the update interval of apache.snapshots has elapsed or updates are forced -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

Maybe I need more configuration than sudo apt-get install maven to be able to build this project.

@jankeromnes
Copy link
Member Author

FYI I was able to install the project using the Ubuntu installer from the topcoder page, so my problem is just that I can't build or run tests on the project.

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