[bertanya] java ane beda versi, merubahnya gimana?

Aplikasi-aplikasi diubuntu: • Aplikasi Grafis •
Aplikasi Internet •
Aplikasi Office •
Aplikasi Sound & Video •
Aplikasi Programming
User avatar
kubiwa
Posts: 28
Joined: 02 Jan 2011, 11:49
Location: Bandar Lampung
Contact:

[bertanya] java ane beda versi, merubahnya gimana?

Postby kubiwa » 16 Dec 2012, 08:32

nubitol nih gan, mau bertanya. kenapa versi java ane dengan javac ane berbeda ya gan? ane kan maunya versi javanya sama dengan javac.. mohon infonya gan.. thanks..

ini versi java

[color:#33CC00]kubiwa@kubiwa-machine:~$ java -version
java version "1.5.0"
gij (GNU libgcj) version 4.4.3

Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.[/color]


ini versi javac

[color:#33CC00]kubiwa@kubiwa-machine:~$ javac -version
javac 1.6.0_24
kubiwa@kubiwa-machine:~$
[/color]


ane maunya sih semua menggunakan versi 1.6
User avatar
k4341
Posts: 297
Joined: 23 May 2010, 02:35
Location: Cirebon
Contact:

Re: [bertanya] java ane beda versi, merubahnya gimana?

Postby k4341 » 16 Dec 2012, 21:42

sudo update-alternatives --install "/usr/bin/java" "java" "/opt/java/jre1.7.0_09/bin/java" 1
sudo update-alternatives --install "/usr/lib/mozilla/plugins/libjavaplugin.so" "mozilla-javaplugin.so" "/opt/java/jre1.7.0_09/lib/i386/libnpjp2.so" 1
sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/opt/java/jre1.7.0_09/bin/javaws" 1
=============
sudo update-alternatives --config java
sudo update-alternatives --config mozilla-javaplugin.so
sudo update-alternatives --config javaws
============================================

kalau ga salah ini perintah penggunaan alternatif java dan perintah diatas hanya contoh, tinggal bro rubah letak penginstallanya aja. tanda kutip ("") termasuk perintah jadi ikut di ketik.

Return to “Aplikasi Ubuntu”

Who is online

Users browsing this forum: No registered users and 2 guests