VectorLinux
December 18, 2014, 06:02:59 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: Installing JDK - Installed as described in old threads, but java is not working  (Read 1314 times)
lilgamesh
Member
*
Posts: 2


« on: December 08, 2013, 09:13:17 am »

I recently installed VL7.0 Standard. I have chosen VL as it good development packages out of the box and is light. Only thing I am missing is  Java development. I searched the forum and did as explained in some old thread

Downloaded jdk-7u45-linux-i586.tar.gz


Removed the jre
 
Code:
removepkg jre
rm -f /usr/lib/java

extracted Downloaded file in /usr/lib

created a simlink
Code:
ln -s /usr/lib/jdk1.7.0_45 /usr/lib/java

Added the path /user/lib/java/bin to .bashrc

Now I can run javac. but java is not running in the browser (firefox).

Please help me to fix this.

I am ok with open jdk too.
Logged
roarde
Vectorian
****
Posts: 551


move the needle


« Reply #1 on: December 08, 2013, 12:37:44 pm »

Start an xterminal (probably "Terminal" for xfce). See if starting firefox from there makes a difference.
Logged

Robert
VL STD 7.1 RC3.1, icewmvmods
hata_ph
Packager
Vectorian
****
Posts: 3261


-- Just being myself --


« Reply #2 on: December 08, 2013, 07:21:05 pm »

Download this http://vlcore.vectorlinux.com/pkg/untested/veclinux-7.0/x86/jdk-7u45-i586-1vl70.txz
open terminal as root and remove jre, delete the jdk folders that you manually install
install the jdk package as root via the command installpkg jdk-7u45-i586-1vl7.txz
restart your system

PS: If you want to use the jdk's version of jre, run below command as root

32bit: ln -sf /usr/lib/java/jre/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins/libnpjp2.so
64bit: ln -sf /usr/lib64/java/jre/lib/amd64/libnpjp2.so /usr/lib64/mozilla/plugins/libnpjp2.so
« Last Edit: December 08, 2013, 07:25:21 pm by hata_ph » Logged
lilgamesh
Member
*
Posts: 2


« Reply #3 on: December 08, 2013, 09:03:45 pm »

Download this http://vlcore.vectorlinux.com/pkg/untested/veclinux-7.0/x86/jdk-7u45-i586-1vl70.txz
open terminal as root and remove jre, delete the jdk folders that you manually install
install the jdk package as root via the command installpkg jdk-7u45-i586-1vl7.txz
restart your system

PS: If you want to use the jdk's version of jre, run below command as root

32bit: ln -sf /usr/lib/java/jre/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins/libnpjp2.so
64bit: ln -sf /usr/lib64/java/jre/lib/amd64/libnpjp2.so /usr/lib64/mozilla/plugins/libnpjp2.so

Thanks a lot.
I will install the package.
Logged
hata_ph
Packager
Vectorian
****
Posts: 3261


-- Just being myself --


« Reply #4 on: December 10, 2013, 06:09:28 pm »

Pls let us know how the package go...
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!