Then save the file in the same folder where your Java programs are being stored. Right-click on the link for DrawingPanel.java and click "Save Target As." (in Internet Explorer) or "Save Link As." (in Firefox).
#Jgrasp error cannot find symbol download
But You can change that if required.Q: My program says "cannot find symbol" and the symbol is "class DrawingPanel".Ī: You have to download DrawingPanel.java (see next question) into the same folder as your program.Ī: There's a link to it on the homework page from the course website. Try adding something like this in Your pom.xml This is the reason why You are facing this issue - UnsupportedClassVersionError Please specify the compilation version of Java. urls = file:/C:/Program%20Files%20(x86)/Jenkins/maven-repositories/1/commons-lang/commons-lang/2.6/commons-lang-2.6.jar urls = file:/C:/Program%20Files%20(x86)/Jenkins/maven-repositories/1/org/codehaus/sonar/runner/sonar-runner-api/2.4/sonar-runner-api-2.4.jar urls = file:/C:/Program%20Files%20(x86)/Jenkins/maven-repositories/1/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar urls = file:/C:/Program%20Files%20(x86)/Jenkins/maven-repositories/1/org/codehaus/plexus/plexus-utils/1.5.5/plexus-utils-1.5.5.jar
urls = file:/C:/Program%20Files%20(x86)/Jenkins/maven-repositories/1/org/sonatype/plexus/plexus-sec-dispatcher/1.4/plexus-sec-dispatcher-1.4.jar
urls = file:/C:/Program%20Files%20(x86)/Jenkins/maven-repositories/1/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar urls = file:/C:/Program%20Files%20(x86)/Jenkins/maven-repositories/1/org/codehaus/plexus/plexus-interpolation/1.11/plexus-interpolation-1.11.jar urls = file:/C:/Program%20Files%20(x86)/Jenkins/maven-repositories/1/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar urls = file:/C:/Program%20Files%20(x86)/Jenkins/maven-repositories/1/org/apache/maven/shared/maven-dependency-tree/2.1/maven-dependency-tree-2.1.jar urls = file:/C:/Program%20Files%20(x86)/Jenkins/maven-repositories /1/org/codehaus/mojo/sonar-maven-plugin/2.6/sonar-maven-plugin-2.6.jar Sonar Error Failed to execute goal :sonar-maven-plugin:2.6:sonar (default-cli) on project XXXXXXX: Execution default-cli of goal :sonar-maven-plugin:2.6:sonar failed: An API incompatibility was encountered while executing :sonar-maven-plugin:2.6:sonar: : org/sonar/api/utils/SonarException : Unsupported major.minor version 51.0 Can someone please help me out with this. Only if I build via Jenkins I'm getting this issue. Maven is also installed installed in my machine and, I tried downloading the project from GIT and ran maven via command prompt it builds successfully. In the console output I can see that Maven starts to download the required meta data and once that is completed it throws Compilation error " Cannot find symbol" for each of the file in the project.
I'm creating a local instance for Jenkins and Sonarqube.Īfter creating project and after configuring the same, I clicked "Build Now".