0

hello I do if you asked me I typed javac <code>enter image description here</code>

10
  • I installed java scala 2.11.6 with 1.8 then m will appear Message error loading annotatedelement, class girl – lyly Aug 28 '16 at 20:56
  • Please put the error messages in your question because it is hard to read them in comments. Thanks. – edwinksl Aug 28 '16 at 20:56
  • 3
    @lyly Please provide the information you got asked for, otherwise we can't analyse your problem and of course can't give you a solution. – Byte Commander Aug 28 '16 at 23:53
  • 1
    Sorry, but we can't help you if you don't answer our questions. If you don't know how to get a specific information, ask that. However, you have been simply asked for the output of javac - that means you open a terminal (CTRL+ALT+T), type javac, hit ENTER, select the output text with your mouse, right-click on it, select "Copy" from the appearing context menu, click the edit link below your question, paste your command output at the end of it, select it again in the question editor ad press CTRL+K to format it properly. – Byte Commander Aug 29 '16 at 0:18
  • 1
    And please try to improve your language a bit, sometimes it's quite hard to understand what you want to say... Translation services like translate.google.com might help you. Thanks. – Byte Commander Aug 29 '16 at 0:18
0

From your error message, I can guess that you wanted to install oracle-java-8 and for any reason that installation wasn't successful or half-broken now. So, I suggest installing these to run scala-2.11.6 on Ubuntu 16.04.

  1. First install java

    sudo apt install openjdk-8-jdk
    
  2. Then install scala

    sudo apt install scala
    

The repository for Ubuntu 16.04 has scala verson 2.11.6 and I've installed it and tested without any problem.

If you face further problem, edit your question describing how the answer didn't help.

0
  1. First, install JDK

    sudo apt install default-jdk

  2. Install scala

    sudo apt-get install scala

    scala -version

1
  • Yes, almost the same answer, but here's default-jdk used instead of openjdk-8-jdk and it seems they are independent. I have both installed. – Gryu Feb 24 '20 at 14:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.