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

missing tools.jar for scala gradlew build #47

Closed
DirkRichter opened this issue Aug 17, 2017 · 4 comments
Closed

missing tools.jar for scala gradlew build #47

DirkRichter opened this issue Aug 17, 2017 · 4 comments
Labels

Comments

@DirkRichter
Copy link

DirkRichter commented Aug 17, 2017

When i try to build the project v0.16.2 using 'gradlew build', i get the error:

Execution failed for task ':compileScala'.

Could not find tools.jar

See the complete build log: build.txt

@AmailP AmailP added the invalid label Aug 17, 2017
@AmailP
Copy link
Owner

AmailP commented Aug 17, 2017

It's probably a problem of your JAVA_HOME environment variable.

@AmailP AmailP closed this as completed Aug 17, 2017
@DirkRichter
Copy link
Author

nope: JAVA_HOME is set. What else could it be? A missing dependency?
Here is the log:
C:\dev\githup\robot-plugin>echo %JAVA_HOME%
C:\Program Files (x86)\Java\jre1.8.0_111

C:\dev\githup\robot-plugin>gradlew build
Download https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIC/2017.2.1/ideaIC-2017.2.1.pom
Download https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIC/2017.2.1/ideaIC-2017.2.1.zip
Download https://www.jetbrains.com/intellij-repository/releases/com/jetbrains/intellij/idea/ideaIC/2017.2.1/ideaIC-2017.2.1-sources.jar
:compileJava UP-TO-DATE
:downloadPython UP-TO-DATE
:unzipPython UP-TO-DATE
:copyPythonJarToLib UP-TO-DATE
:downloadJFlex UP-TO-DATE
:downloadSkeleton UP-TO-DATE
:generateLexer UP-TO-DATE
:compileScala FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':compileScala'.

Could not find tools.jar

  • 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 52.35 secs

C:\dev\githup\robot-plugin>

@AmailP
Copy link
Owner

AmailP commented Aug 18, 2017

You should set your JDK, not the JRE as JAVA_HOME

@DirkRichter
Copy link
Author

DirkRichter commented Aug 18, 2017

thanks.

Now using JDK the build succeed with some failing tests:

:test
amailp.intellij.robot.psi.reference.LibraryToDefinitionReferenceTest > testReferencesAllowClassWithNameOtherThanModule FAILED
org.scalatest.exceptions.TestFailedException at LibraryToDefinitionReferenceTest.scala:101

amailp.intellij.robot.psi.reference.LibraryToDefinitionReferenceTest > testReferencesAllowNestedPackages FAILED
org.scalatest.exceptions.TestFailedException at LibraryToDefinitionReferenceTest.scala:69

amailp.intellij.robot.psi.reference.LibraryToDefinitionReferenceTest > testReferencesWithoutPackage FAILED
org.scalatest.exceptions.TestFailedException at LibraryToDefinitionReferenceTest.scala:27

amailp.intellij.robot.psi.reference.LibraryToDefinitionReferenceTest > testReferencesAllowPackages FAILED
org.scalatest.exceptions.TestFailedException at LibraryToDefinitionReferenceTest.scala:48

amailp.intellij.robot.psi.reference.LibraryToDefinitionReferenceTest > testReferencesAllowClassWithoutModule FAILED
org.scalatest.exceptions.TestFailedException at LibraryToDefinitionReferenceTest.scala:112

amailp.intellij.robot.psi.reference.LibraryToDefinitionReferenceTest > testReferencesAllowClass FAILED
org.scalatest.exceptions.TestFailedException at LibraryToDefinitionReferenceTest.scala:90

amailp.intellij.robot.psi.reference.PythonKeywordToDefinitionReferenceTest > testReferenceToClassMethod FAILED
org.scalatest.exceptions.TestFailedException at PythonKeywordToDefinitionReferenceTest.scala:66

amailp.intellij.robot.psi.reference.PythonKeywordToDefinitionReferenceTest > testReferenceFromMultipleWordKeyword FAILED
org.scalatest.exceptions.TestFailedException at PythonKeywordToDefinitionReferenceTest.scala:29

amailp.intellij.robot.psi.reference.PythonKeywordToDefinitionReferenceTest > testReferenceIgnoringSpaces FAILED
org.scalatest.exceptions.TestFailedException at PythonKeywordToDefinitionReferenceTest.scala:42

amailp.intellij.robot.psi.reference.PythonKeywordToDefinitionReferenceTest > testSimpleReference FAILED
org.scalatest.exceptions.TestFailedException at PythonKeywordToDefinitionReferenceTest.scala:16
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=250m; support was removed in 8.0

41 tests completed, 10 failed
:test FAILED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants