Do I actually need Java in Linux Mint?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

Do I actually need Java in Linux Mint?

Postby mark1mint on Fri Sep 14, 2012 1:23 pm

This may sound really dumb,but I see quite a lot of java-related stuff in Mint,frankly I can't even begin to understand what every package actually is between icedtea,jre,cacao :roll: :all I'd want to know is if all this stuff is actually needed for an average user and if/how can be removed-I don't remember having all that java-related stuff in Ubuntu Lucid,and never had the need to install it,that is,unless I'm obviously overlooking something here.
You may find this request odd,but I really don't mind having stuff installed that I don't need/use and I'm not actually sure what is supposed to do.
mark1mint
Level 3
Level 3
 
Posts: 139
Joined: Tue May 22, 2012 4:36 pm

Linux Mint is funded by ads and donations.
 

Re: Do I actually need Java in Linux Mint?

Postby DrHu on Fri Sep 14, 2012 1:52 pm

For some applications YES
--example being jedit (java based editor), there are also quite a few java based programs available, it is cross-platform after all..

Pick the application you want to remove and see what else (other application or library is also being removed), for example you can't easily remove mono or its runtime, since banshee or tomboy (Gnome note taker) uses those parts as the development language or support function.
User avatar
DrHu
Level 16
Level 16
 
Posts: 6880
Joined: Wed Jun 17, 2009 8:20 pm

Re: Do I actually need Java in Linux Mint?

Postby Brian49 on Sat Sep 15, 2012 5:22 am

mark1mint - I don't think you've made it quite clear whether you are thinking of removing Java, period, or whether you are just concerned about the various ancillary packages.

It's possible to get along perfectly well without any trace of Java on your system; that's what I do. It's a matter of finding suitable alternatives to any Java-based applications that come installed by default, and also accepting that some websites you visit in your browser (not many, in my experience) will have reduced functionality.
Brian49
Level 5
Level 5
 
Posts: 612
Joined: Thu Oct 29, 2009 2:27 pm

Re: Do I actually need Java in Linux Mint?

Postby mark1mint on Sat Sep 15, 2012 10:54 am

Brian49 wrote:mark1mint - I don't think you've made it quite clear whether you are thinking of removing Java, period, or whether you are just concerned about the various ancillary packages.


Because that's not even clear to me :D : probably both...

Brian49 wrote:It's possible to get along perfectly well without any trace of Java on your system; that's what I do. It's a matter of finding suitable alternatives to any Java-based applications that come installed by default, and also accepting that some websites you visit in your browser (not many, in my experience) will have reduced functionality.


That's probably what I would like to do as well-I'm not concerned one bit about websites as I use NoScript already and usually restrict them from unleashing their javascript content,and if some website doesn't work properly,I'll do without.I've had a quick look at the packages in Ubuntu Lucid,and compared to Mint there's no trace at all of jre and icedtea and little evidence of java
Code: Select all
dpkg --list |grep -i java
ii  libjs-jquery                            1.3.3-2ubuntu1                                    JavaScript library for dynamic web applications
ii  plasma-scriptengine-javascript          4:4.4.5-0ubuntu1.1                                javascript script engine for Plasma


and yet everything I need works,so far at least.
mark1mint
Level 3
Level 3
 
Posts: 139
Joined: Tue May 22, 2012 4:36 pm

Re: Do I actually need Java in Linux Mint?

Postby Brian49 on Sat Sep 15, 2012 11:41 am

Please be aware that Java isn't the same thing as javascript. Many websites use javascript for routine background tasks, and removing Java from your system won't have any effect on those. Java is mainly used in interactive applications embedded in certain web pages, such as broadband speed-test applications (some, not all).
Brian49
Level 5
Level 5
 
Posts: 612
Joined: Thu Oct 29, 2009 2:27 pm

Re: Do I actually need Java in Linux Mint?

Postby axel668 on Sat Sep 15, 2012 12:26 pm

generally speaking no, except if you want to use Java apps.
and LibreOffice has Java dependencies, too.
just try to uninstall it (Software Manager or Synaptic), if you still have programs depending on it the system will complain
“A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila” (Mitch Ratcliffe)
User avatar
axel668
Level 3
Level 3
 
Posts: 183
Joined: Wed Jul 08, 2009 11:56 am

Re: Do I actually need Java in Linux Mint?

Postby mark1mint on Tue Oct 09, 2012 3:14 pm

Well I'm now having a go at it,and (as expected,should I say...) this is proving to be a bit of a conundrum:for instance,if I simulate removing openjdk-6-jre-lib with apt-get remove -s ,then I get this message
Code: Select all
The following extra packages will be installed:
  gcj-4.7-base gcj-4.7-jre gcj-4.7-jre-headless gcj-4.7-jre-lib gcj-jre gcj-jre-headless libgcj-common libgcj13
  libgcj13-awt

by the looks of it,it's almost like java can't be eradicated from LMDE.
But,I don't need it,at least as far as I can understand:I'm (relatively) used to Ubuntu,and I've never had a Java control panel there,neither I've ever needed it :roll:

In short,how do I do this ?
Brian49 wrote:It's possible to get along perfectly well without any trace of Java on your system
mark1mint
Level 3
Level 3
 
Posts: 139
Joined: Tue May 22, 2012 4:36 pm

Re: Do I actually need Java in Linux Mint?

Postby Monsta on Tue Oct 09, 2012 3:30 pm

That just means there are some packages in your system that require Java. For example, libreoffice-base depends on whatever implementation of Java runtime you have:
Code: Select all
default-jre | gcj-jre | java-gcj-compat | openjdk-6-jre | sun-java5-jre | sun-java6-jre | java5-runtime | jre

So, you try to uninstall one runtime, the systems tries to throw in another so there won't be any dependency errors.
Monsta
Level 8
Level 8
 
Posts: 2483
Joined: Fri Aug 19, 2011 3:46 am

Re: Do I actually need Java in Linux Mint?

Postby mark1mint on Mon Oct 15, 2012 1:13 pm

I understand this (maybe :wink: ...) ,however I still can't figure why I have to have an OpenJDK Java 6 Policy Tool in my applications menu if I don't even know what it actually does,because I have never used nor needed it-after pruning what I could between icedtea and cacao packages,I still have
Code: Select all
openjdk-6-jre:amd64                           6b24-1.11.3-2                   OpenJDK Java runtime, using Hotspot JIT
ii  openjdk-6-jre-headless:amd64                  6b24-1.11.3-2                   OpenJDK Java runtime, using Hotspot JIT (headless)
ii  openjdk-6-jre-lib                             6b24-1.11.3-2                   OpenJDK Java runtime (architecture independent libraries)

are they needed for LibreOffice? How come that for comparison in Ubuntu Lucid with the OpenOffice suite installed there's so few java-related packages installed? One thing I've noticed is that the OO help isn't installed and that would require a java runtime,but is this possibly the only reason to have openjdk-6-jre installed in Mint Debian ?
This is not just to be annoying,I just don't like to have stuff on my computer which I'm not clear about what it does and if I really need to have,more so considering the bad reputation that java has as far as security implications go.
mark1mint
Level 3
Level 3
 
Posts: 139
Joined: Tue May 22, 2012 4:36 pm

Re: Do I actually need Java in Linux Mint?

Postby DrHu on Mon Oct 15, 2012 1:30 pm

I don't think Java has a bad security reputation any more than an OS does
--but simply loading locally in order to provide some system or component or menu support should really be that much of a problem, and there are Java controls available, usually installed as part of the Java runtime in order to manage security settings or prevent updates or stop Internet connections..
    Just like Adobe reader has similar functions that can be turned off..
User avatar
DrHu
Level 16
Level 16
 
Posts: 6880
Joined: Wed Jun 17, 2009 8:20 pm

Re: Do I actually need Java in Linux Mint?

Postby Monsta on Mon Oct 15, 2012 2:25 pm

mark1mint wrote:I still can't figure why I have to have an OpenJDK Java 6 Policy Tool in my applications menu if I don't even know what it actually does.

Well... because the distro has been made by someone else, not by you? :D

more on what parts of Libreoffice need Java, and what to remove - please read and follow the links there.


mark1mint wrote:I just don't like to have stuff on my computer which I'm not clear about what it does

Does it apply to the whole software selection, or just what's visible in the menu? :)
Monsta
Level 8
Level 8
 
Posts: 2483
Joined: Fri Aug 19, 2011 3:46 am

Re: Do I actually need Java in Linux Mint?

Postby mark1mint on Mon Oct 15, 2012 2:56 pm

Monsta wrote:
mark1mint wrote:I still can't figure why I have to have an OpenJDK Java 6 Policy Tool in my applications menu if I don't even know what it actually does.

Well... because the distro has been made by someone else, not by you? :D

Very much so,I suppose :wink:
Monsta wrote:more on what parts of Libreoffice need Java, and what to remove - please read and follow the links there.

That's exactly what I was thinking about,so thank you very much.
Monsta wrote:
mark1mint wrote:I just don't like to have stuff on my computer which I'm not clear about what it does

Does it apply to the whole software selection, or just what's visible in the menu? :)

Let's restrict this to the menu,for the time being.
mark1mint
Level 3
Level 3
 
Posts: 139
Joined: Tue May 22, 2012 4:36 pm

Re: Do I actually need Java in Linux Mint?

Postby mark1mint on Fri Oct 26, 2012 4:04 am

So,following the directions in the suggested link http://forums.linuxmint.com/viewtopic.php?f=58&t=111226&start=20#p632438 I've unchecked "Use a Java runtime environment" in LibreOffice and then tried again to remove java from LMDE,unfortunately this is still getting me nowhere,as shown below :
Code: Select all
apt-get -s remove openjdk-6-jre:amd64  openjdk-6-jre-headless:amd64 openjdk-6-jre-lib
(...)
The following extra packages will be installed:
  gcj-4.7-base gcj-4.7-jre gcj-4.7-jre-headless gcj-4.7-jre-lib gcj-jre
  gcj-jre-headless libgcj-common libgcj13 libgcj13-awt
Suggested packages:
  fastjar gcj-4.7-jdk gcj-jdk libgcj13-dbg
The following packages will be REMOVED:
  ca-certificates-java openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib
The following NEW packages will be installed:
  gcj-4.7-base gcj-4.7-jre gcj-4.7-jre-headless gcj-4.7-jre-lib gcj-jre
  gcj-jre-headless libgcj-common libgcj13 libgcj13-awt
0 upgraded, 9 newly installed, 4 to remove and 0 not upgraded.


what am I doing wrong ? I take something else is relying on java other than LibreOffice,apparently?
Since I totally share the concern expressed at the beginning of the post http://forums.linuxmint.com/viewtopic.php?f=58&t=111226&start=20#p632317,is there a way to get rid of java for good,without breaking other programs?
Last edited by mark1mint on Fri Oct 26, 2012 4:32 am, edited 1 time in total.
mark1mint
Level 3
Level 3
 
Posts: 139
Joined: Tue May 22, 2012 4:36 pm

Re: Do I actually need Java in Linux Mint?

Postby Monsta on Fri Oct 26, 2012 4:26 am

mark1mint wrote:I've unchecked "Use a Java runtime environment" in LibreOffice and then tried again to remove java from LMDE

Maybe you've skipped the middle step: remove libreoffice-base and other packages that depend on Java?
Monsta
Level 8
Level 8
 
Posts: 2483
Joined: Fri Aug 19, 2011 3:46 am

Re: Do I actually need Java in Linux Mint?

Postby mark1mint on Fri Oct 26, 2012 4:46 am

Yes,I did skip this:upon trying,if I simulate removing libreoffice-base,the entire libreoffice package will be removed too-maybe this is the actual way to do it,remove the libreoffice suite and then try to install,say,only writer and calc paying attention to skip the recommended packages ?
mark1mint
Level 3
Level 3
 
Posts: 139
Joined: Tue May 22, 2012 4:36 pm

Re: Do I actually need Java in Linux Mint?

Postby Monsta on Fri Oct 26, 2012 5:26 am

mark1mint wrote:if I simulate removing libreoffice-base,the entire libreoffice package will be removed too

But that's just a metapackage! :)
Look at its description:
Code: Select all
 This metapackage installs all components of libreoffice:
 * libreoffice-writer: Word processor
 * libreoffice-calc: Spreadsheet
 * libreoffice-impress: Presentation
 * libreoffice-draw: Drawing
 * libreoffice-base: Database
 * libreoffice-math: Equation editor
 * libreoffice-filter-mobiledev: Mobile Devices filters

If you remove it, these components will remain untouched.
Monsta
Level 8
Level 8
 
Posts: 2483
Joined: Fri Aug 19, 2011 3:46 am

Re: Do I actually need Java in Linux Mint?

Postby mark1mint on Fri Oct 26, 2012 6:05 am

:shock: I have a lot to learn,apparently...thanks.
mark1mint
Level 3
Level 3
 
Posts: 139
Joined: Tue May 22, 2012 4:36 pm

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: No registered users and 3 guests