General :: How To Download Java Packages In System
Feb 23, 2011
I am running Debian Squeeze. How can I download packages in Java? For example I need the javax.mail package.
In windows, I simply download the JAR and point my classpath to that JAR.... How does this work in linux/debian? Is there apt-get command that I can use to get java packages?
I have a computer with internet access with amd64 architecture running Debian stable (Lenny). I have another computer with NO internet access with i386 architecture running Debian stable (Lenny).I want to download some packages for the i386 computer using the amd64 computer. So far, the only way I can see to do this is to use dpkg-architecture to temporarily change to i386 on the internet computer, run aptitude with the download-only option to retrieve the packages I need with all suitable dependencies, then switch the internet computer back over to amd64.
I can't imagine I'm the only person who ever needed to do this, and yet I've had no luck finding any advice. The method I described seems rather awkward - is there a more elegant solution?
I apologize to the membership, I realize now the absurdity of this subject. Having now studied the online repository search functions closer, I see it appears packages are automatically retrieved with all necessary dependencies. As such, it is not necessary to use apt and its various functions to do the job.
I have a new installation of Ubuntu 9.10 karmic, but apt-get update gives error messages "Failed to fetch....; Could not resolve..." for all the packages in the sources.list file. The computer is talking to the network and the webserver is working. I can ping external websites. Is there a setting that must be changed to make downloads function?
On Debian repo I found virtualbox-ose packages there. What will be the difference in operation/function between their packages and the packages download on virtualbox.org website?
On Fedora repo I found VirtualBox-ose packages there. What will be the difference in operation/function between their packages and the packages download on virtualbox.org website?
I'm running a Knoppix Live CD, and I want to install ClamAV. What I'd really like is to download all the relevant packages and save them onto a USB pen, and then I can install it easily whenever I run the Live CD anywhere and update the definitions at my leisure without having to connect to the internet or go through remodelling Knoppix. I'm not entirely sure how to do this though, mainly because of dependencies. I would think it would be along the lines of cd'ing to the usb and running:
and then to install use dpkg, but I'm not sure how to get it to look for the dependencies in the same place:
Code:
dpkg -i clamav-base dpkg -i clamav
I'm just about to go and try it, but I thought I'd ask first to get the wisdom , but also to see if anyone else does something similar and whether they think this is a good way to achieve the goal, regardless of whether this technically works.
Right now I am using UBUNTU Hardy Haron. I just moved from windows to linux. It is very easy to install any games or software in windows. Just double click exe, next - next and finish. I want to install some mario games in my pc (ubuntu). I have downloaded tar.bz2 of it. Extracted it and configure and install-sh both are there. I already tried by ./configure. It requires g++, cpp several packages. Now my question comes. What are those packages? How to find out them? How to install them? Is there any other easy way for installation? What are different type of compilers over here?
I ran into some errors while installing Oracle Grid Control on RHEL 5.4. I believe I need to install some packages. Where is the right place to download packages for RHEL? I would prefer binary code. Also, I downloaded a source file somewhere. Can you please tell me how to build and install it?
I am thinking in starting a CentOS based distribution for communication (call center) and collaboration (IM, email, calendar) tools. What I want to find is Where to get CentOS-only base packages?Any post related with creation of a CentOS based distribution?
I download all packages of Fedora 12 64 bit and all rpmfusion packages , all of them free and nonfree. all of them is near 20GB, I download all of them by rsync.I download them in work,In home I use Fedora12 64 bit and do not have internet connection , I copy all packages with USB flash and copy them to my Fedora box , and I want install VLC and other codecs and Nvidia driver for some games.What I must do ?I said again I do not have internet connection in home but I have all packages , free and nofree and rpmfusion packages
I have downloaded fedora 9 iso to my xp os so I can dual boot my machine. I can't seem to find a place to plug up my RJ-45 to download the extras package in an RPM or a tar file so that I can transfer it onto my linux os so I need a wireless site to download from.
Is there a way using dpkg or apt-get to segregate user application packages from system packages? What I envision is an /apps directory structure that can be the install target for selected packages so not to "clutter" the storage areas for the system administration files/packages - maybe even with permissions set so that (a GROUP of) users could install packages on an Ubuntu server w/o SysAdmin guidance. This could also allow 1)system upgrades with or w/o including these packages, and 2)the sharing of /apps (via NFS) among common Ubuntu systems. Is this doable using the dpkg or apt maintenance tools?
I just installed CentOS 5.4 Final on a 64 bit system. After install, I found a lot of 32 bit packages are also installed. Is it necessary for a pure 64 bit system to run (let's say, I will never want to run any 32 bit app on this system), or is it something I could have avoided during install?
I've just installed java (jre-6u21-linux-i586.bin) on Red Hat 4.4 AS and issued this command to check the java version: java -versionand got :bash :java: command not found
Where I can download Linux XP? all the links on this forum I have tried but can not ... it's known I'm new here! to linux I have no idea!, so I want to learn linux from here.
To get the kernel messages of new java process, i refer the details from /proc/<java pid>/stat and /proc/<java pid>/statm files. For some java processes, I didn't find any details in the /proc/<java pid>/statm file. It has only 7 number of 0s. But /proc/<java pid>/stat file has the details. And also this kind of process will have the life time of nearly 1 minute.
Kernel version using: Linux-2.6.18-8.1.8.el5 Is there any possibility of java process without the memory details in the /proc/<java pid>/statm file? If it is possible, how to know the memory related details of that processes?
I just blindly install 'java' in GNU/Linux Debian SID -- so I could use it as a plugin for iceweasel -- Unfortunately, things didn't work as expected. I was used to Debian's APT to take care of things for me as it had done for more years than I could remember. (Being a desktop user/programmer and a beginner system network admin). I want a clean install of java plugin for iceweasel. So I want to remove completely all java related packages --
How do I know which is which and if they are safe to remove without affecting any other part of the system? Now, to install -- what do I need to install in order for iceweasel to have the Java plugin and let java work as it should? I prefer from the Debian package. But if it doesn't work, I'll accept JRE from the java site and install them myself.
I'm trying to compile JGR, rJava, etc. for use w/ my updated R. My configuration of Ubuntu (9.10 Karmic, kernel 2.6.31-22-generic) and R (version 2.11.1; from lib.stat.cmu.edu source) shouldn't be terribly unusual. But, all my efforts to compile Java programs for R fail, possibly because of something in my Ubuntu configuration of Java.First, I ran: R CMD javareconf. The output from that tells me that "JAVA_HOME is not a valid path, ignoring" and the cpp flags are set to nothing. The javareconf fills most of the variables with references to openjdk. JAVA_HOME, as far as I can tell, points to a properly installed copy of Sun Java. When I run update.packages(checkBuilt=T) with this, it unsurprisingly tells me that "One or more Java configuration variables are not set" and all of my Java based programs fail to compile.
I've tried switching the default Java to the Sun version using "sudo update-alternatives --config java". Now, javareconf fills in the cpp flag and variables point to the Sun version, though I still get the error msg that JAVA_HOME is not a valid path (though javareconf sets the home path to: /usr/lib/jvm/java-6-sun-1.6.0.20/jre). When I try to compile rJava, I get the error: rJava, "JNI types differ from the native type."Does anyone have any thoughts on how to fix this? Alternatively, is there somewhere I can report these problems so they might get fixed in future versions?I suspect I can't be the only person having these problems.
I have the following error in 10.04. I've tried several times to uninstall, resolve, install these dependencies and am at my wits end now. This morning I gave up on OpenJDK and installed Sun JDK, hence the sun versions below. But this error is stopping me from installing anything else.
Reading package lists... Done Building dependency tree Reading state information... Done You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies: default-jre-headless: Depends: openjdk-6-jre-headless (>= 6b14) but it is not going to be installed icedtea-6-jre-cacao: Depends: openjdk-6-jre-headless (= 6b18-1.8.2-4ubuntu2) but it is not going to be installed latexdraw: Depends: libjiu-java but it is not going to be installed Depends: libjlibeps-java but it is not going to be installed openjdk-6-jre: Depends: openjdk-6-jre-headless (>= 6b18-1.8.2-4ubuntu2) but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
me@andromeda:~/private$ java -version java version "1.6.0_22" Java(TM) SE Runtime Environment (build 1.6.0_22-b04) Java HotSpot(TM) Server VM (build 17.1-b03, mixed mode) me@andromeda:~/private$ javac -version javac 1.6.0_22
In my company's production server, there are already mysql, php and httpd packages installed and running. Configurations are already made to the httpd.conf and my.cnf files.
Now I have to upgrade the packages to the latest version. I have to perform a yum update for the whole system first, then reinstall the packages right?
Will this affect the changes made to the configuration files? If yes, how do I upgrade so that the changes are not affected?
I have to replace the HDD in my laptop. I want to install LINUX on it because I don't want to buy windows. I need to find a tutorial with step by step to follow to download LINUX to another computer, burn it to a cd(s), and then use those to load my new HDD in my laptop. Any one know where I can find this tutorial? I'm 60 and not very techie but I can follow a good set of instructions.
I'm relatively new to Ubuntu 9.10, and have encountered a problem downloading anything. Here's the recurring error message my terminal displays:
Setting up sun-java6-doc (6.20dlj-0ubuntu1.9.10) ... This package is an installer package, it does not actually contain the JDK documentation. You will need to go download one of the archives:
jdk-6u19-docs.zip jdk-6u18-docs.zip jdk-6u19-docs-ja.zip jdk-6u19-docs-ja.zip (choose the non-update version if this is the first installation). Please visit url now and download.
The file should be owned by root.root and be copied to /tmp.
I tried finding these at Oracle/Sun/Java, and can find no such archive ".docs." Can anyone help me find these or something else that will work instead?