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

Gradle Compile/Run Tasks Failing. #2

Open
shivkumarganesh opened this issue Oct 20, 2012 · 3 comments
Open

Gradle Compile/Run Tasks Failing. #2

shivkumarganesh opened this issue Oct 20, 2012 · 3 comments

Comments

@shivkumarganesh
Copy link
Member

I tried to make a new Project Using Gradle.The Project was successfully created but as I try to Execute the application by using gradle command, I get the error mentioned below. Since there is no Compilation as well as run commands being executed. Please check.

roger@roger-VPCEG2AEN:~/Desktop/VisageFX AIOUG/Sangam2012-VisageFX$ cd HotelReservation/
roger@roger-VPCEG2AEN:~/Desktop/VisageFX AIOUG/Sangam2012-VisageFX/HotelReservation$ gradle
:compileJava UP-TO-DATE
:compileVisage
visagec: invalid flag: AIOUG/Sangam2012-VisageFX/HotelReservation/build/classes/main
Usage: visagec <options> <source files>
use -help for a list of possible options

:runVisage
Main-Class not found visage.javafx.HelloVisageFX

java.lang.ClassNotFoundException: visage.javafx.HelloVisageFX
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:264)
    at org.visage.runtime.Main.main(Main.java:68)
:runVisage FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':runVisage'.
> Process 'command 'visage'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED
@shivkumarganesh
Copy link
Member Author

I actually found out the problem. This is the same Problem as the previous issue which we had when the folder names have spaces between them. I request you to please look into it. :)

@rajmahendra
Copy link
Member

This looks some issue in Gradle let me post in the forum and post the real root-cause.

@SamaritanMan
Copy link

I have the same problem to execute the simple HelloWorldFX demo.
I'm on windows 7 and i have tryed many changes, but nothing.
Visage on my pc doesn't execute.
The prompt arrives till the compileVisage task without problems, but the runVisage task fails and give me exactly the same exception.
Can you help me please?

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

3 participants