LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 12-17-2007, 05:51 AM   #1
Jongi
Senior Member
 
Registered: Aug 2003
Distribution: Debian Sid 32/64-bit, F10 32/64-bit
Posts: 1,070

Rep: Reputation: 45
Java on 64-bit


Can't seem to get it to work.

Code:
[root:~#] update-alternatives --display java
java - status is manual.
 link currently points to /usr/lib/jvm/java-gcj/jre/bin/java
/usr/bin/gij-4.2 - priority 42
 slave java.1.gz: /usr/share/man/man1/gij-4.2.1.gz
/usr/lib/jvm/java-1.5.0-sun/jre/bin/java - priority 53
 slave java.1.gz: /usr/lib/jvm/java-1.5.0-sun/jre/man/man1/java.1.gz
/usr/lib/jvm/java-gcj/jre/bin/java - priority 1042
Current `best' version is /usr/lib/jvm/java-gcj/jre/bin/java.
The installed Java's are listed below:

Code:
[root:~#] dpkg -l | grep java
ii  java-common                                     0.27                          Base of all Java packages
ii  java-gcj-compat                                 1.0.77-2                      Java runtime environment using GIJ
ii  java-gcj-compat-plugin                          1.0.77-2                      Web browser plugin to execute Java (tm) applets using gij
ii  libbcel-java                                    5.2-3                         Analyze, create, and manipulate (binary) Java class files
ii  liblog4j1.2-java                                1.2.15-2                      Logging library for java
ii  libmx4j-java                                    3.0.1-3                       An open source implementation of the JMX(TM) technology
ii  libregexp-java                                  1.4-4                         regular expression library for Java
ii  sun-java5-bin                                   1.5.0-13-1                    Sun Java(TM) Runtime Environment (JRE) 5.0 (architecture depen
ii  sun-java5-fonts                                 1.5.0-13-1                    Lucida TrueType fonts (from the Sun JRE)
ii  sun-java5-jre                                   1.5.0-13-1                    Sun Java(TM) Runtime Environment (JRE) 5.0 (architecture indep
Followed this as well.
 
Old 12-17-2007, 06:16 AM   #2
deepthirohini
LQ Newbie
 
Registered: Oct 2007
Posts: 1

Rep: Reputation: 0
java

Hi,
check whether you are having the .java.policy file.
Install that file and then check the java.
 
Old 12-17-2007, 06:35 AM   #3
Jongi
Senior Member
 
Registered: Aug 2003
Distribution: Debian Sid 32/64-bit, F10 32/64-bit
Posts: 1,070

Original Poster
Rep: Reputation: 45
Code:
/etc/java-1.5.0-sun/security/java.policy
/etc/java-6-sun/security/java.policy
/usr/lib/jvm/java-1.5.0-sun-1.5.0.13/jre/lib/security/java.policy
/usr/share/apps/kjava/kjava.policy
/usr/src/jre1.6.0_03/lib/security/java.policy
 
Old 12-17-2007, 10:53 AM   #4
norobro
Member
 
Registered: Feb 2006
Distribution: Debian Sid
Posts: 227

Rep: Reputation: 44
I run Firefox on a 32 bit machine, so I don't know whether this will work for you. But this got java and flashplayer working for me:

For flashplayer: link

And for java:
Code:
ln -s /path/to/libjavaplugin_oji.so ~/.mozilla/plugins/libjavaplugins_oji.so
Maybe the .mozilla should be .iceweasel?

Norm
 
Old 12-17-2007, 02:28 PM   #5
Jongi
Senior Member
 
Registered: Aug 2003
Distribution: Debian Sid 32/64-bit, F10 32/64-bit
Posts: 1,070

Original Poster
Rep: Reputation: 45
One of the first things I looked for

Code:
[root:~#] locate java | grep so
/etc/alternatives/firefox-javaplugin.so
/etc/alternatives/iceape-javaplugin.so
/etc/alternatives/iceweasel-javaplugin.so
/etc/alternatives/midbrowser-javaplugin.so
/etc/alternatives/mozilla-javaplugin.so
/etc/alternatives/xulrunner-javaplugin.so
/etc/ia32-java-6-sun/sound.properties
/etc/java-1.5.0-sun/sound.properties
/etc/java-6-sun/sound.properties
 
Old 12-17-2007, 02:41 PM   #6
pliqui
Member
 
Registered: Feb 2007
Location: Caracas, Venezuela
Distribution: Debian x64
Posts: 156

Rep: Reputation: 17
I'm running debian 64 bits and there is not a java pluging for web browsers yet, sorry, if you need to get some java on your browser and want to keep using a 64 bits OS, try getting a 32 bits browser and the 32 bits version of java. That should work. And i recommend you since you are using kubuntu, try using
Code:
sudo aptitude install sun-java6-bin
for java 6 or
Code:
sudo aptitude install sun-java5-bin
for java 5, should work like a charm
 
Old 12-17-2007, 02:47 PM   #7
Jongi
Senior Member
 
Registered: Aug 2003
Distribution: Debian Sid 32/64-bit, F10 32/64-bit
Posts: 1,070

Original Poster
Rep: Reputation: 45
profile changed to reflect what i am using. the question is based on debian 64-bit. and as you can see from my first post, sun-java5-jre and bin already installed.
 
Old 12-17-2007, 09:07 PM   #8
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 60
The link you included in the first post suggests installing java-gcj-compat-plugin

I take a certain pride in keeping abreast of what's available for Debian's AMD64 release, and this is the firat ime I ever heard of that. I'm impressed. I installed it and it works (in Epiphany). I run Sid so if you installed from a different repo, I don't know how widely it's available.

I also don't know why yours doesn't work. Mine did immediately. It doesn't run the Java Test applet on the Sun website, but it runs other test applets I checked, as well as several real-world applets I checked on the web. This in spite of the fact that Sun Java is the default Java app in "alternatives." I do, of course, also have the GCJ Java version installed.

Edit:Hmmm! After playing around with it a while, I'm not so impressed. It's evidently been around a while, Etch has a version. It does a fairly good job of displaying applets, but I haven't been able to get anything interactive to work.

I pulled down the version in Experimental ... no improvement. It brought a bunch of GCJ stuff with it. Hope it didn't do anything nasty to OO, which is the main reason I have GCJ in the first place.

Last edited by rickh; 12-17-2007 at 09:51 PM.
 
Old 12-18-2007, 12:35 AM   #9
Jongi
Senior Member
 
Registered: Aug 2003
Distribution: Debian Sid 32/64-bit, F10 32/64-bit
Posts: 1,070

Original Poster
Rep: Reputation: 45
Does Java generally work on 64-bit? rickh is it that java was not working at all for you before you tried that link?
 
Old 12-18-2007, 12:54 AM   #10
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 60
Except for the one mentioned above, there is no Java Plugin for 64-bit OSes. Java, itself, certainly works fine, but there is no browser plugin for Mozilla apps. Most people who consider Java web applets critical use Konqueor. It doesn't need a plugin. You can install Konqueror even if you use Gnome. It brings along a lot of KDE libraries, but with the size of modern disk drives, that's not really an issue.
 
Old 12-18-2007, 02:59 AM   #11
Jongi
Senior Member
 
Registered: Aug 2003
Distribution: Debian Sid 32/64-bit, F10 32/64-bit
Posts: 1,070

Original Poster
Rep: Reputation: 45
and there is no need to setup anything else if i use konqueror for java applets. just a case of firing it up and pointing it in the direction of a website?
 
Old 12-18-2007, 09:29 AM   #12
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 60
Assuming you have correctly set up Sun Java, that is true.
 
Old 12-23-2007, 03:21 PM   #13
richinsc
Member
 
Registered: Mar 2007
Location: Utah
Distribution: Gentoo Linux (3.0.6-gentoo)
Posts: 222

Rep: Reputation: 31
One word. NsPluginWrapper
Allows to you wrap a 32-bit plugin to work on a 64-bit system.

Here are resources that worked for me. Running 64-Bit Etch Install
http://www.dipconsultants.com/debian/
http://www.fredforfaen.com/?p=9
 
Old 12-23-2007, 04:13 PM   #14
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 3,513

Rep: Reputation: 63
Quote:
Originally Posted by Jongi View Post
and there is no need to setup anything else if i use konqueror for java applets. just a case of firing it up and pointing it in the direction of a website?
I had to go into the configuration settings of Konqueror for the Java options then make sure that the Use KIO Slave was checked for it to work.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
JAVA 1.5 on RHEL 5 64 bit jetskiphil Linux - Software 1 08-15-2007 10:41 AM
LXer: Howto install Flash, Java, Real Player 32 bit plugins under 64 bit Firefox LXer Syndicated Linux News 0 03-16-2007 11:31 PM
Java 3D 64 Bit climbingmerlin Programming 2 01-30-2006 11:15 AM
Java on 64 bit FC4 ltracy Linux - Newbie 3 07-27-2005 12:25 AM
64 bit java doralsoral Linux - Software 4 01-04-2005 05:19 PM


All times are GMT -5. The time now is 06:13 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration