Ubuntu eclipse javadoc does not show - eclipse

When using eclipse I get:
The Javadoc for this element could neither be found in the attached source nor the attached Javadoc.
when hovering over code even for classes like java.lang.String.
Pressing Ctrl and selecting Open Declaration or Open Implementation yields:
I am running Ubuntu 20.04.1 LTS using eclipse version 2020-09 (4.17.0) and have java OpenJDK installed:
$ java --version
openjdk 13.0.4 2020-07-14
OpenJDK Runtime Environment (build 13.0.4+8-Ubuntu-120.04)
OpenJDK 64-Bit Server VM (build 13.0.4+8-Ubuntu-120.04, mixed mode)
Clicking on Change Attached Source... in String.class (image above) I get this:
I cannot seem to get it to work. Any help is appreciated!

Related

Setting JAVA_HOME on centos for root and normal user --> checking java -version

actually i im learning Linux (CentOs 7). I installed Java on root (usr/lib/jvm/java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64/jre/bin/java).
Now i have one question. if i type "java-version" i get
[mibe#localhost ~]$ java -version
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (build 1.8.0_212-b04)
OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
I thought that java only works if i set the JAVA_HOME PATH in /etc/profile. Why do i get a result for this call?
Because you installed java in /usr/lib, this folder is in system environment. When you type java -version, the system can find the command java.
But if you install java in other folder not in system environment, you must set the JAVA_HOME PATH in /etc/profile to tell the system how to find the java command, and there are other important reasons why to set the JAVA_HOME not just for this.
https://stackoverflow.com/a/27996647/11559693

Antlr 4 IDE installation Failure

Following a clean install of Ubuntu 18.04, and subsequent installation of Eclipse (Version: Oxygen.3a Release (4.7.3a)) i have tried to install the Antlr4 ide using "Help -> Eclipse Marketplace", Search for Antlr4 and click Install (ANTLR 4 IDE 0.3.6). I am then given the error below:
My Java version is as follows:
%java -version
java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)
Also installing jdk 11 resulted in this:
openjdk-11-jdk-headless is already the newest version (10.0.1+10-3ubuntu1)
I effectively get the same error when installing from https://marketplace.eclipse.org/content/antlr-4-ide.
Has this error been seen before, and is there a solution ?

How to tell Java to use jline3

Scala newbie and following this blog to use sbt (I have a little Java experience using Eclipse).
sbt is working, however I must have the ncurses issue described here. Instead of downgrading ncurses I'm trying to upgrade jline.
I cloned the new jline3 repo and installed it using mvn.
I don't know how to point java to use the new jline3. Which is the same as saying, "I don't know how to fix this problem with scala / sbt".
OS: Arch: Manjaro
ncurses Version : 6.0+20170902-1
java -version
openjdk version "1.8.0_144"
OpenJDK Runtime Environment (build 1.8.0_144-b01)

Maven is not showing in Eclipse Luna, After Migrating to Jdk8 to Jdk7

To fix some issues related to an old project, I migrated Jdk8 to Jdk7 and now I'm unable to find Maven in my Eclipse Luna.
I have checked some previous post like, Maven not showing up in Eclipse (Kepler) even after m2e install.
But those solutions are not fixing my problem. I have another Eclipse Mars Editor, in that I can able to see Maven.
My Environment is: Ubuntu 32bit
user#user:~$ java -version
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) Server VM (build 24.65-b04, mixed mode)
user#user:~$ echo $JAVA_HOME
/usr/local/java/jdk1.7.0_67

Android build Ubuntu 16.04.1 required BlockingQueue

I am trying to build the Android source Build: LMY48M (android-5.1.1_r14) on Ubuntu 16.04.1
Got the following error
out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/src/java/util/concurrent/ScheduledThreadPoolExecutor.java:9: warning: [unchecked] unchecked conversion
public ScheduledThreadPoolExecutor(int corePoolSize, java.util.concurrent.ThreadFactory threadFactory, java.util.concurrent.RejectedExecutionHandler handler) { super(0,0,0,(java.util.concurrent.TimeUnit)null,(java.util.concurrent.BlockingQueue)null,(java.util.concurrent.ThreadFactory)null,(java.util.concurrent.RejectedExecutionHandler)null); throw new RuntimeException("Stub!"); }
^
required: BlockingQueue<Runnable>
found: BlockingQueue
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
#### make failed to build some targets (01:15:26 (hh:mm:ss)) ####
I am using OpenJDK-7
P.S: I was intented to build on Ubuntu 14.04, however I am using a skylake processor that doesn't have support on Ubuntu 14.04.
However, I successfully build the same Android build on a virtual box running Ubuntu 14.04 on this same machine.
Any help is appreciated.
Update#2
By following #Nir Duan suggestion, I am using OracleJDK7. but as soon I run make -j32 I am getting this error,
You asked for an OpenJDK 7 build but your version is
java version "1.7.0_80" Java(TM) SE Runtime Environment (build 1.7.0_80-b15) Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode).
************************************************************
build/core/main.mk:191: *** stop. Stop.
You're problem is because you need Oracle JDK7 and not OpenJDK-7 when building the source.
Use these commands:
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
The result of $ java -version should be this:
java version "1.7.0_80"
Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)
(If not look here and change default java version)