Résolu Impossible de créer espace de travail
-
Bonjour, étant débutant, j’ai suivi votre tutoriel pour créer mon espace de travail pour créer un mod. Cependant j’ai utilisé la version 1.10. lorsque j’entre la commande
gradlew -Dorg.gradle.jvmargs=-Xmx2048M setupDecompWorkspace
pour créer mon espace de travail, mon invite de commande me sort cette erreur :
Downloading https://services.gradle.org/distributions/gradle-2.14-bin.zip …........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ Unzipping C:\Users\Thomas\.gradle\wrapper\dists\gradle-2.14-bin\76oc0mnc3ieqtsukq90mp0rxk\gradle-2.14-bin.zip to C:\Users\Thomas\.gradle\wrapper\dists\gradle-2.14-bin\76oc0mnc3ieqtsukq90mp0rxk To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.14/userguide/gradle_daemon.html. 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 guide chapter on the daemon at https://docs.gradle.org/2.14/userguide/gradle_daemon.html 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. C:\Users\Thomas\Desktop\Mods\MagicFood>
Pouvez-vous m’aider svp ?
-
à ce que je voie tu na pas assez de ram dans ton pc
(je croit ne me taper pas)
-
@‘NeykoZzHD’:
à ce que je voie tu na pas assez de ram dans ton pc
(je croit ne me taper pas)
Mmmh… Ca m’étonnerait étant donné que j’ai 16gb de Ram
-
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.
essaye juste sa gradlew setupDecompWorkspace Je ne sait pas si sa fonctionne en 1.10 mais moi je fait sa en 1.7.10
et dis moi si sa fonctionne
- Try:
-
Toujours le même problème
Download https://jcenter.bintray.com/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar Download https://jcenter.bintray.com/commons-codec/commons-codec/1.6/commons-codec-1.6.jar FAILURE: Build failed with an exception. * Where: Build file 'C:\Users\Thomas\Desktop\Mods\MagicFood\build.gradle' line: 33 * What went wrong: A problem occurred evaluating root project 'MagicFood'. > Invalid version notation, or version doesnt exist! The following are valid notations. Buildnumber, version, version-branch, mcversion-version-branch, and pomotion * Try: Run with –stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 59.76 secs C:\Users\Thomas\Desktop\Mods\MagicFood>
-
16 GB = 2GO et tu alloue 2048M (octets) ce qui équivaut à 2GO, mais tu ne peux cependant pas allouer toute ta RAM il me semble
EDIT : Build file ‘C:\Users\Thomas\Desktop\Mods\MagicFood\build.gradle’ line: 33
Donne la ligne 33 de ton build.gradle -
Ah non pardon ce n’est pas le même problème :s
-
@‘BrokenSwing’:
16 GB = 2GO et tu alloue 2048M (octets) ce qui équivaut à 2GO, mais tu ne peux cependant pas allouer toute ta RAM il me semble
Il faut donc que je fasse quoi pour régler le soucis ? :s
-
Fait d’abord voir ton build.gradle
-
@‘BrokenSwing’:
Fait d’abord voir ton build.gradle
// For those who want the bleeding edge buildscript { repositories { jcenter() maven { name = "forge" url = "http://files.minecraftforge.net/maven" } } dependencies { classpath 'net.minecraftforge.gradle:ForgeGradle:2.2-SNAPSHOT' } } apply plugin: 'net.minecraftforge.gradle.forge' /* // for people who want stable - not yet functional for MC 1.8.8 - we require the forgegradle 2.1 snapshot plugins { id "net.minecraftforge.gradle.forge" version "2.0.2" } */ version = "1.0" group= "com.blackoking.magicfood" // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = "MagicFood" sourceCompatibility = targetCompatibility = "1.6" // Need this here so eclipse task generates correctly. compileJava { sourceCompatibility = targetCompatibility = "1.6" } minecraft { version = "snapshot_20160903" runDir = "run" // the mappings can be changed at any time, and must be in the following format. // snapshot_YYYYMMDD snapshot are built nightly. // stable_# stables are built at the discretion of the MCP team. // Use non-default mappings at your own risk. they may not allways work. // simply re-run your setup task after changing the mappings to update your workspace. mappings = "snapshot_20160518" // makeObfSourceJar = false // an Srg named sources jar is made by default. uncomment this to disable. } dependencies { // you may put jars on which you depend on in ./libs // or you may define them like so.. //compile "some.group:artifact:version:classifier" //compile "some.group:artifact:version" // real examples //compile 'com.mod-buildcraft:buildcraft:6.0.8:dev' // adds buildcraft to the dev env //compile 'com.googlecode.efficient-java-matrix-library:ejml:0.24' // adds ejml to the dev env // the 'provided' configuration is for optional dependencies that exist at compile-time but might not at runtime. //provided 'com.mod-buildcraft:buildcraft:6.0.8:dev' // the deobf configurations: 'deobfCompile' and 'deobfProvided' are the same as the normal compile and provided, // except that these dependencies get remapped to your current MCP mappings //deobfCompile 'com.mod-buildcraft:buildcraft:6.0.8:dev' //deobfProvided 'com.mod-buildcraft:buildcraft:6.0.8:dev' // for more info… // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html // http://www.gradle.org/docs/current/userguide/dependency_management.html } processResources { // this will ensure that this task is redone when the versions change. inputs.property "version", project.version inputs.property "mcversion", project.minecraft.version // replace stuff in mcmod.info, nothing else from(sourceSets.main.resources.srcDirs) { include 'mcmod.info' // replace version and mcversion expand 'version':project.version, 'mcversion':project.minecraft.version } // copy everything else, thats not the mcmod.info from(sourceSets.main.resources.srcDirs) { exclude 'mcmod.info' } }
-
dans le dossier ou tu a mis tes fichier donne le contenu du fichier build gradlew
-
Quel est la ligne 33 ? Car personnellement je tombe sur runDir et je ne pense pas que ce soit ça
-
@‘BrokenSwing’:
Quel est la ligne 33 ? Car personnellement je tombe sur runDir et je ne pense pas que ce soit ça
J’ai trouvé le problème ! En fait, j’ai confondu la ligne
minecraft { version = "1.10.2-12.18.1.2076"
avec la ligne
mappings = "snapshot_20160903"
ce qui a donc créer une erreur.
Cependant, j’ai maintenant une nouvelle erreur que voiciDownload https://libraries.minecraft.net/org/lwjgl/lwjgl/lwjgl-platform/2.9.4-nightly-20150209/lwjgl-platform-2.9.4-nightly-20150209-natives-linux.jar Download https://libraries.minecraft.net/org/lwjgl/lwjgl/lwjgl-platform/2.9.4-nightly-20150209/lwjgl-platform-2.9.4-nightly-20150209-natives-osx.jar :decompileMc FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':decompileMc'. > Java heap space * Try: Run with –stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 3 mins 50.184 secs C:\Users\Thomas\Desktop\Mods\MagicFood>
-
Tu n’aurais pas mit n’importe quoi dans minecraft.version par hasard ?
Parce que je ne connais aucune version de minecraft forge qui s’appel snapshot_20160903
Les commentaires s’appliquent de haut en bas, pas l’inverse. -
@‘RedRelay’:
Tu n’aurais pas mit n’importe quoi dans minecraft.version par hasard ?
Parce que je ne connais aucune version de minecraft forge qui s’appel snapshot_20160903
Les commentaires s’appliquent de haut en bas, pas l’inverse.Si si, je me suis trompé et ai confondu avec le mapping
-
Pour ton autre erreur, crée un fichier gradle.properties a coté de ton gradle.build et ajoutes-y : org.gradle.jvmargs=-Xmx2G
-
@‘RedRelay’:
Pour ton autre erreur, crée un fichier gradle.properties a coté de ton gradle.build et ajoutes-y : org.gradle.jvmargs=-Xmx2G
Je mets seulement ceci dans le fichier ?
Car il me sort toujours cette erreur
C:\Users\Thomas\Desktop\Mods\MagicFood>gradlew setupDecompWorkspace To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/2.14/userguide/gradle_daemon.html. 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 guide chapter on the daemon at https://docs.gradle.org/2.14/userguide/gradle_daemon.html 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. C:\Users\Thomas\Desktop\Mods\MagicFood> ```___Up ? :(
-
… Je viens de t’envoyer un MP d’aide, les doubles post en moins de 24h sont interdits sur ce forum…
-
@‘Benjamin Loison’:
… Je viens de t’envoyer un MP d’aide, les doubles post en moins de 24h sont interdits sur ce forum…
Excuse-moi je n’avais pas vu ton message
-
Évitez l’aide par MP, si quelqu’un a le même problème, la solution pourrait lui être utile.