{"action":"closed","issue":{"url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1514","labels_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1514/labels{/name}","comments_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1514/comments","events_url":"https://api.github.com/repos/jhipster/generator-jhipster/issues/1514/events","html_url":"https://github.com/jhipster/generator-jhipster/issues/1514","id":79785696,"number":1514,"title":"'gatlingRun' fails with Gradle in Windows","user":{"login":"deepu105","id":1107223,"avatar_url":"https://avatars.githubusercontent.com/u/1107223?v=3","gravatar_id":"","url":"https://api.github.com/users/deepu105","html_url":"https://github.com/deepu105","followers_url":"https://api.github.com/users/deepu105/followers","following_url":"https://api.github.com/users/deepu105/following{/other_user}","gists_url":"https://api.github.com/users/deepu105/gists{/gist_id}","starred_url":"https://api.github.com/users/deepu105/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepu105/subscriptions","organizations_url":"https://api.github.com/users/deepu105/orgs","repos_url":"https://api.github.com/users/deepu105/repos","events_url":"https://api.github.com/users/deepu105/events{/privacy}","received_events_url":"https://api.github.com/users/deepu105/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jhipster/generator-jhipster/labels/gradle","name":"gradle","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":{"login":"atomfrede","id":203401,"avatar_url":"https://avatars.githubusercontent.com/u/203401?v=3","gravatar_id":"","url":"https://api.github.com/users/atomfrede","html_url":"https://github.com/atomfrede","followers_url":"https://api.github.com/users/atomfrede/followers","following_url":"https://api.github.com/users/atomfrede/following{/other_user}","gists_url":"https://api.github.com/users/atomfrede/gists{/gist_id}","starred_url":"https://api.github.com/users/atomfrede/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atomfrede/subscriptions","organizations_url":"https://api.github.com/users/atomfrede/orgs","repos_url":"https://api.github.com/users/atomfrede/repos","events_url":"https://api.github.com/users/atomfrede/events{/privacy}","received_events_url":"https://api.github.com/users/atomfrede/received_events","type":"User","site_admin":false},"milestone":null,"comments":9,"created_at":"2015-05-23T08:54:06Z","updated_at":"2015-05-24T05:49:09Z","closed_at":"2015-05-24T05:49:09Z","body":"Running `gradlew gatlingRun` in windows fails with below stacktrace, on a default app generated with below\r\n```\r\n{\r\n  \"generator-jhipster\": {\r\n    \"baseName\": \"jhipster\",\r\n    \"packageName\": \"com.mycompany.myapp\",\r\n    \"packageFolder\": \"com/mycompany/myapp\",\r\n    \"authenticationType\": \"session\",\r\n    \"hibernateCache\": \"hazelcast\",\r\n    \"clusteredHttpSession\": \"no\",\r\n    \"websocket\": \"spring-websocket\",\r\n    \"databaseType\": \"sql\",\r\n    \"devDatabaseType\": \"h2Memory\",\r\n    \"prodDatabaseType\": \"mysql\",\r\n    \"searchEngine\": \"no\",\r\n    \"useCompass\": false,\r\n    \"buildTool\": \"gradle\",\r\n    \"frontendBuilder\": \"grunt\",\r\n    \"javaVersion\": \"8\",\r\n    \"rememberMeKey\": \"93ff732a10ab7d74fc26c1518ee79338de1cd149\"\r\n  }\r\n}\r\n```\r\n\r\n```\r\n13:54:11.483 [ERROR] [org.gradle.BuildExceptionReporter] Caused by: java.io.IOException: CreateProcess error=206, The filename or extension is too long\r\n```\r\nsaw a similar bug on gradle forums but that one seems old and fixed\r\nhttps://issues.gradle.org/browse/GRADLE-2167\r\n\r\nI tried reducing my classpath, but no use, still same error. Damn windows!! the classpath added by gradle is too long with all those generated cache folder names. saw this post so wondering if there could be some config to make gatling work on windows with gradle\r\nhttps://discuss.gradle.org/t/filename-too-long-in-windows/9222\r\nany gradle experts to the rescue plz\r\n\r\n\r\nFull trace\r\n------------\r\n```\r\nPS D:\\projects\\jhtest> ./gradlew gatlingRun --stacktrace\r\n:compileJava UP-TO-DATE\r\n:compileScala UP-TO-DATE\r\n:bower\r\n:processResources UP-TO-DATE\r\n:classes UP-TO-DATE\r\n:compileTestJava UP-TO-DATE\r\n:compileTestScala UP-TO-DATE\r\n:findMainClass\r\n:processTestResources UP-TO-DATE\r\n:testClasses UP-TO-DATE\r\n:gatlingRun FAILED\r\n\r\nFAILURE: Build failed with an exception.\r\n\r\n* What went wrong:\r\nExecution failed for task ':gatlingRun'.\r\n> A problem occurred starting process 'command 'C:\\Program Files\\Java\\jdk1.8.0_45\\bin\\java.exe''\r\n\r\n* Try:\r\nRun with --info or --debug option to get more log output.\r\n\r\n* Exception is:\r\norg.gradle.api.tasks.TaskExecutionException: Execution failed for task ':gatlingRun'.\r\n        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.\r\njava:69)\r\n        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46\r\n)\r\n        at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskEx\r\necuter.java:35)\r\n        at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)\r\n        at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)\r\n        at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExec\r\nuter.java:42)\r\n        at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.j\r\nava:52)\r\n        at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)\r\n        at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.j\r\nava:43)\r\n        at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:310)\r\n        at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(AbstractTaskPlanExecut\r\nor.java:79)\r\n        at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecut\r\nor.java:63)\r\n        at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:\r\n51)\r\n        at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:23)\r\n        at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:88)\r\n        at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)\r\n        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)\r\n        at org.gradle.execution.DefaultBuildExecuter.access$200(DefaultBuildExecuter.java:23)\r\n        at org.gradle.execution.DefaultBuildExecuter$2.proceed(DefaultBuildExecuter.java:68)\r\n        at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)\r\n        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:62)\r\n        at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:55)\r\n        at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:149)\r\n        at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:106)\r\n        at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:86)\r\n        at org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter\r\n.java:90)\r\n        at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)\r\n        at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)\r\n        at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:41)\r\n        at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28)\r\n        at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExe\r\ncuter.java:50)\r\n        at org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExe\r\ncuter.java:27)\r\n        at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:40)\r\n        at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:169)\r\n        at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:23\r\n7)\r\n        at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:21\r\n0)\r\n        at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)\r\n        at org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)\r\n        at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:206)\r\n        at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)\r\n        at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)\r\n        at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)\r\n        at org.gradle.launcher.Main.doAction(Main.java:33)\r\n        at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)\r\n        at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54)\r\n        at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35)\r\n        at org.gradle.launcher.GradleMain.main(GradleMain.java:23)\r\n        at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30)\r\n        at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:127)\r\n        at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)\r\nCaused by: org.gradle.process.internal.ExecException: A problem occurred starting process 'command 'C:\\Program Files\\Jav\r\na\\jdk1.8.0_45\\bin\\java.exe''\r\n        at org.gradle.process.internal.DefaultExecHandle.setEndStateInfo(DefaultExecHandle.java:196)\r\n        at org.gradle.process.internal.DefaultExecHandle.failed(DefaultExecHandle.java:325)\r\n        at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:83)\r\n        at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)\r\n        at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)\r\nCaused by: net.rubygrapefruit.platform.NativeException: Could not start 'C:\\Program Files\\Java\\jdk1.8.0_45\\bin\\java.exe'\r\n\r\n        at net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(DefaultProcessLauncher.java:27)\r\n        at net.rubygrapefruit.platform.internal.WindowsProcessLauncher.start(WindowsProcessLauncher.java:22)\r\n        at net.rubygrapefruit.platform.internal.WrapperProcessLauncher.start(WrapperProcessLauncher.java:36)\r\n        at org.gradle.process.internal.ExecHandleRunner.run(ExecHandleRunner.java:65)\r\n        ... 2 more\r\nCaused by: java.io.IOException: Cannot run program \"C:\\Program Files\\Java\\jdk1.8.0_45\\bin\\java.exe\" (in directory \"D:\\Pr\r\nojects\\jhtest\"): CreateProcess error=206, The filename or extension is too long\r\n        at net.rubygrapefruit.platform.internal.DefaultProcessLauncher.start(DefaultProcessLauncher.java:25)\r\n        ... 5 more\r\nCaused by: java.io.IOException: CreateProcess error=206, The filename or extension is too long\r\n        ... 6 more\r\n\r\n\r\nBUILD FAILED\r\n\r\nTotal time: 31.59 secs\r\n```"}}