[Java – Ubuntu] Install the JDK and Eclipse on Ubuntu offline
The way in order to install ubuntu software center or online, then you can do easily. Following his room stating how to install offline when no network.
1. Install JDK
You Click here download the appropriate JDK and extract it out. (his jdk1.7.0_21)
Run the following command to create a directory jvm
sudo mkdir /usr/lib/jvm/
cd to the directory where the file is unzipped and run:
sudo mv jdk1.7.0_21/ /usr/lib/jvm/jdk1.7.0_21
2. Install Java
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0_21/jre/bin/java 0
give a true copy of your jdk
3. Download and install Eclipse SDK
You Click here to download Eclipse. The SDK (Eclipse Classic) is so common to many languages (if only C / C or Java, you can download the individual (Eclipse for Java Developers hoặc Eclipse for C/C Developers, …)).
cd to the directory eclipse just down load and run the following command:
tar xzf eclipse-SDK-3.6.2-linux-gtk.tar.gz sudo mv eclipse /opt/eclipse cd /opt sudo chmod -R +r eclipse cd eclipse sudo chmod +x eclipse
Run the following command to create executable shell for eclipse:
cd /usr/local/bin sudo touch eclipse sudo chmod 755 eclipse sudo gedit eclipse
#!/bin/sh export ECLIPSE_HOME=/opt/eclipse $ECLIPSE_HOME/eclipse $*
Run the following command:
sudo gedit /usr/share/applications/eclipse.desktop
then insert this code into:
[Desktop Entry] Encoding=UTF-8 Name=Eclipse Comment=Eclipse Helios IDE Exec=eclipse Icon=/opt/eclipse/icon.xpm Terminal=false Type=Application Categories=GNOME;Application;Development StartupNotify=True
Save & quit. Giờ thì Eclipse đã có trong danh sách Search Applications của bạn 😀
Fix java command does not translate
After completing the above steps, if you can not translate java command, set an environment variable in java 2 command:
export JAVA_HOME=/usr/lib/jvm/jdk1.7.0_21/ export PATH=$JAVA_HOME/bin:$PATH
Source & refer: http://ubuntu102.blogspot.com, http://wikilinux.vn, http://littlebookwormblog.wordpress.com
Thank you very much for your.
Glad you visited my blog.
cd to the directory just down load the eclipse :that is why the new ban.minh contact with your ubuntu.thanks
Eg you to stay down it on the Desktop to the terminal type cd Desktop to move to the desktop, from here can work with the newly downloaded.
Bạn ơi mình Search Applications có ra Eclipse nhưng mà không mở ra được bạn ạ. Vậy là bị lỗi ở đâu ạ? tks.
Nó báo như thế nào? Bạn nói mỗi thế mình cũng chịu…
Nó không báo hay hiện lỗi gì cả, mình chọn Eclipse rồi Launch mà Eclipse mở ra hay hiện thông báo gì.
Vậy mình cũng ko rõ nữa. 🙁
Welcome , khi mình chạy câu lênh sudo gedit eclipse thi hiện ra thông báo
(gedit:12189): IBUS-WARNING **: The owner of /home/maithingan/.config/ibus/bus is not root!
(gedit:12189): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
root@Asus:/usr/local/bin# sudo gedit eclipse
(gedit:12372): IBUS-WARNING **: The owner of /home/maithingan/.config/ibus/bus is not root!
^ Croot @ Asus:/usr/local/bin# sudo gedit eclipse
(gedit:12456): IBUS-WARNING **: The owner of /home/maithingan/.config/ibus/bus is not root!
So how to overcome ?
My Anh Quan, no way set the figure to eclipse not it, Kids do the shortcut but no picture at all, look it is also slightly batons…
find some place and not know how
can then darling…. replace the image path but it lag or star reviews, a moment later does the icon up for though at first did get update bla bla….
unexpected ubuntu also at ping9999
good job