odules:ty:compileJavaWARNING

modules:ty:compileJava WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by worker.org.gradle.internal.reflect.JavaMethod (file:/Users/---/.gradle/caches/3.0/workerMain/gradle-worker.jar) to method java.lang.ClassLoader.getPackages() WARNING: Please consider reporting this to the maintainers of worker.org.gradle.internal.reflect.JavaMethod WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release

java.io.IOException: Cannot run program "C:\wamp\bin\mysql\mysql5.6.17\bin": CreateProcess error=5, Access is denied

java.io.IOException: Cannot run program "C:\wamp\bin\mysql\mysql5.6.17\bin": CreateProcess error=5, Access is denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at backup.DatabaseBackup.getServerDumpData(DatabaseBackup.java:72)
at backup.DatabaseBackup.backupDatabase(DatabaseBackup.java:28)
at backup.BackUpManager.databaseBackup(BackUpManager.java:60)
at backup.BackUpManager.main(BackUpManager.java:82)
Caused by: java.io.IOException: CreateProcess error=5, Access is denied
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:386)
at java.lang.ProcessImpl.start(ProcessImpl.java:137)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 4 more
Process failed.
// solution :

error=5 means one of:
1) file is not executable
2) file is not accessible
  • Open up Windows explorer, and navigate to example.exe
  • Right click on it and choose "Properties"
  • Go to the "Security" tab and click the "Edit" button
  • Select your username in the top box and in the bottom one give "Full Control" or at least "Read & Execute"
  • Click OK to get rid of these boxes


Commentaires

Posts les plus consultés de ce blog

Failed to execute goal org.codehaus.mojo:exec-maven-plugin