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

Cannot run in windows #51

Open
andhikaprima opened this issue Nov 9, 2019 · 2 comments
Open

Cannot run in windows #51

andhikaprima opened this issue Nov 9, 2019 · 2 comments

Comments

@andhikaprima
Copy link

Hi Carr,

How are you?

I have tried to run it in my windows using Git Bash and it cannot run it said

gradlew.bat run

"gradlew Task 'run' not found in root project ''."

Thank you

@CarrKnight
Copy link
Contributor

CarrKnight commented Nov 11, 2019

Hello so good to hear from you!

two things:

  1. If you are using git bash, even on windows it may require to call the mac/linux command:
    ./gradlew run
    You use gradle.bat run from the windows command prompt instead.

  2. If that still causes issues, try calling gradle.bat tasks or ./gradlew tasks and paste here the output. Mine:

------------------------------------------------------------
Tasks runnable from root project
------------------------------------------------------------

Application tasks
-----------------
run - Runs this project as a JVM application
runShadow - Runs this project as a JVM application using the shadow jar
startShadowScripts - Creates OS specific scripts to run the project as a JVM application using the shadow jar

Build tasks
-----------
assemble - Assembles the outputs of this project.
build - Assembles and tests this project.
buildDependents - Assembles and tests this project and all projects that depend on it.
buildNeeded - Assembles and tests this project and all projects it depends on.
classes - Assembles main classes.
clean - Deletes the build directory.
jar - Assembles a jar archive containing the main classes.
testClasses - Assembles test classes.

Build scan tasks
----------------
buildScanPublishPrevious - Publishes the data captured by the last build to the build scan server.

Build Setup tasks
-----------------
init - Initializes a new Gradle build.
wrapper - Generates Gradle wrapper files.

Distribution tasks
------------------
assembleDist - Assembles the main distributions
assembleShadowDist - Assembles the shadow distributions
distTar - Bundles the project as a distribution.
distZip - Bundles the project as a distribution.
installDist - Installs the project as a distribution as-is.
installShadowDist - Installs the project as a distribution as-is.
shadowDistTar - Bundles the project as a distribution.
shadowDistZip - Bundles the project as a distribution.

Documentation tasks
-------------------
javadoc - Generates Javadoc API documentation for the main source code.

Help tasks
----------
buildEnvironment - Displays all buildscript dependencies declared in root project 'oxfish'.
components - Displays the components produced by root project 'oxfish'. [incubating]
dependencies - Displays all dependencies declared in root project 'oxfish'.
dependencyInsight - Displays the insight into a specific dependency in root project 'oxfish'.
dependentComponents - Displays the dependent components of components in root project 'oxfish'. [incubating]
help - Displays a help message.
model - Displays the configuration model of root project 'oxfish'. [incubating]
projects - Displays the sub-projects of root project 'oxfish'.
properties - Displays the properties of root project 'oxfish'.
tasks - Displays the tasks runnable from root project 'oxfish'.

IDE tasks
---------
cleanIdea - Cleans IDEA project files (IML, IPR)
idea - Generates IDEA project files (IML, IPR, IWS)
openIdea - Opens the IDEA project

Shadow tasks
------------
knows - Do you know who knows?
shadowJar - Create a combined JAR of project and runtime dependencies

Verification tasks
------------------
check - Runs all checks.
test - Runs the unit tests.

Rules
-----
Pattern: clean<TaskName>: Cleans the output files of a task.
Pattern: build<ConfigurationName>: Assembles the artifacts of a configuration.
Pattern: upload<ConfigurationName>: Assembles and uploads the artifacts belonging to a configuration.

To see all tasks and more detail, run gradlew tasks --all

To see more detail about a task, run gradlew help --task <task>

@andhikaprima
Copy link
Author

Hi Carr,

I install git bash and tried again, and keep the error things

====
ezp715@PG-MX827-74D22A MINGW64 /c/Users/EZP715/Downloads/POSEIDON-master
$ ./gradlew run --tasks
Starting a Gradle Daemon, 2 incompatible Daemons could not be reused, use --status for details

FAILURE: Build failed with an exception.

  • What went wrong:
    Unable to start the daemon process.
    This problem might be caused by incorrect configuration of the daemon.
    For example, an unrecognized jvm option is used.
    Please refer to the User Manual chapter on the daemon at https://docs.gradle.org/6.0/userguide/gradle_daemon.html
    Process command line: C:\Program Files (x86)\Java\jre1.8.0_231\bin\java.exe -Xms2048M -Xmx2048M -Dfile.encoding=windows-1252 -Duser.country=GB -Duser.language=en -Duser.variant -cp C:\Users\EZP715.gradle\wrapper\dists\gradle-6.0-bin\8ccdmgaih4za71r0tlxhaz33m\gradle-6.0\lib\gradle-launcher-6.0.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 6.0
    Please read the following process output to find out more:

Error occurred during initialization of VM
Could not reserve enough space for 2097152KB object heap

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

====

I tried to change gradle.properties
org.gradle.jvmargs=-Xms1536m -Xmx1536m

and keep error.

Please your suggestion.

Best regards,

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