Skip to content

Instantly share code, notes, and snippets.

@jagannath-sahoo
Last active April 23, 2019 19:40
Show Gist options
  • Save jagannath-sahoo/cd7570e7b03a9a30827ff490cc7b204c to your computer and use it in GitHub Desktop.
Save jagannath-sahoo/cd7570e7b03a9a30827ff490cc7b204c to your computer and use it in GitHub Desktop.
************************************
Note: Important
If you are geting error like "java.lang.charsequence cannot be resolved"
then it's the issue with the Eclispe as we are currently using older version of
please update to latest version of it.
Eclise indigo support max upto 1.7 but we are writting our code for JDK 1.8. So even you
change the compiler version it will through error.
So Some of the methods() won't work.
*************************************
************************************
*********************************
Error Occures
*********************************
I downloaded eclipse on ubuntu. But when I run it it show following error.
A Java Runtime Environment (JRE) or Java Development Kit (JDK)
must be available in order to run Eclipse. No Java virtual machine
was found after searching the following locations:
/home/jagannath/eclipse/jre/bin/java
java in your current PATH
**********************************
Solution: Add Symbolic Link to /usr/bin
**********************************
1. Download Java JDK and extract it to any folder. For example :
tar zxvf ~/Downloads/jdk-8u5-linux-x64.tar.gz ~/DEV
2.create symbolic link with name java :
cd /usr/bin
ln -s ~/DEV/jdk1.8.0_05/bin/java java
***********************************
.bashrc file path for Java
***********************************
export PATH="$PATH:/home/jagannath/jdk1.8.0/bin/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment