You can install Java either using "Synaptic Package Manager" or using "apt-get install java-6-openjdk" command.Java will be installed to the location "/usr/lib/jvm/java-6-openjdk"Now open a terminal and type "sudo gedit /etc/bash.bashrc ".Append the following lines to the opened "bash.bashrc" file
"export JAVA_HOME=/usr/lib/jvm/java-6-openjdk/"
"export PATH=$PATH:$JAVA_HOME/bin"
Save & close the "bash.bashrc" file
Tomcat installation requires JAVA_HOME to be defined. In Windows it is straight forward. But in Linux binaries are in one folder and libraries are in other folder.
Is there a way to find out where exactly is JAVA_HOME?
I have problems with setting my JAVA_HOME variable. I am using Slackware 12.0, bash shell. I have set JAVA_HOME in my /etc/profile, like this:
But when I login in with my user name and type env on the command line, I get for JAVA_HOME the following:
Also, in my /etc/profile I have put the path to my java in the PATH variable, like this:
And when I type env when I login, then the PATH variable contains correctly the path to the jdk (as I have put it into /etc/profile).
I expect that after I have set everything as I want in /etc/profile, and restart the computer then what I have set will be relevant and when I login and type env, I will get values to the variables equal to those I have set in /etc/profile. Why it does not happen?
I have particularly a problem with a Java application, which I want to run. When I type ant, I get: error: JAVA_HOME is not defined correctly.
I have problems with setting my JAVA_HOME variable. I am using Slackware 12.0, bash shell. This is a question for the 'Linux Newbie' forum (not slackware-specific).
I have set JAVA_HOME in my /etc/profile, like this:
But when I login in with my user name and type env on the command line, I get for JAVA_HOME the following:
Also, in my /etc/profile I have put the path to my java in the PATH variable, like this:
And when I type env when I login, then the PATH variable contains correctly the path to the jdk (as I have put it into /etc/profile).
I expect that after I have set everything as I want in /etc/profile, and restart the computer then what I have set will be relevant and when I login and type env, I will get values to the variables equal to those I have set in /etc/profile. Why it does not happen?
I have particularly a problem with a Java application, which I want to run. When I type ant, I get: error: JAVA_HOME is not defined correctly. We cannot execute /usr/lib/java/bin/java.
I've been following the instructions to install Resin, and all seems to go well until I try to run the /bin/httpd.sh file. It simple says:
Code:
exec: 40: -jar: not found
I suspected this was something to do with my JAVA_HOME variable not being set, so I looked up how to do this and added it to my /etc/bash.bashrc file. Saying "echo $JAVA_HOME" does indeed return the correct path so I don't think this is the problem.
I have installed jdk1.60_23 i have created a directory named java in root's Home, jdk has installed in jdk1.60_23 directory in java how to set path to compile or run the java file ?
I did like this : export JAVA_HOME=/usr/bin/java/jdk1.60_23/bin export PATH=$JAVA_HOME:/usr/bin/java/jdk1.60_23/bin
How check the path has properly set or not ? how and where create source file of java ? how to compile and run the java source file ?
I've managed to create a working RPM that does a bit of system configuration despite having little working knowledge of linux before starting. My RPM appeared to be working for awhile now but as a final test I installed it on a completely fresh install of RedHat enterprise edition 5.2 (after installing prereq rpms). It seems I'm running into a problem that the IMQ program(ie java message queues) will not boot correctly when I do this because it doesn�t know where to find the JRE.
I want to make sure that when my rpm is run the program actually works afterwards, and it won't work without IMQ. I was thinking I would have the RPM modify the IMQ configuration file to provide a -javahome argument when it boots up. I don't think I can set the configuration file to say '-javahome $JAVA_HOME' because the JAVA_HOME environmental variable won't be set until later in the boot up process after IMQ has attempted, and failed, to boot.
so I had thought the rpm could set whatever the value of JAVA_HOME is at the time the rpm is installed as the home for IMQ. So my questions are...
1) how can I require that JAVA_HOME is set prior to running my RPM, and have the RPM not install if JAVA_HOME isn't set
2) is there a good way to have rpm be able to undo the change I made to the configuration file if it is erased? Should I save a version of the old configuration file before I make the changes somewhere to be used?
3) is this the best way to do things, or is there a simpler method?
1. check JAVA version, 2. set up the JAVA_HOME and 3. CLASSPATH variables
I had installed
1. NetbeansIDE 6.7.1 from Software Center 2. MySQL from command sudo apt-get install mysql-server 3. libmysql-java from synaptic package manager
OS Information
1. Partition 1, 3.0 GB Swap Space, /dev/sda1 2. Partition 2, 6.0 GB Filesystem, /dev/sda2 mount at /, Bootable 3. Partition 3, Ext4, /dev/sda3 mount at /home 4. Partition 4, /dev/sda4, Extended (Drive A, Drive B and Drive C)
I have some Flex and Java files which can be compiled with JDK1.5. My server was already loaded with 1.4 (at path /usr/bin/java) and our sys admin(I dont know why) copied another JDK, JDK 1.5 at path /usr/java/jdk1.5.0_16/. It seems very easy to use this java. Just set the path in .bash_profile. I did it and now if I run which java I still see the path for java 1.4 not java 1.5. Am I doing something wrong? Following is actual entry from bash_profile
I installed "jdk1.6.0.bin" and "jre1.6.0.bin" successfully. But I don't know where they are installed. I can't find anywhere. What is the default path they are installed.I want to set JAVA_HOME.
We cannot execute /usr/lib/jvm/java-6-sun-1.6.0.20/bin/bin/java I am not having any clue as what is this error? As to me JAVA_HOME seems to be defined.
I am a newbie to Linux. I tried setting environment variable using export JAVA_HOME=/usr/java/jdk1.6 but that was not permanent (i.e is was there for that terminal session). I want to know how can i set environment variable permanently in Fedora 13 just like we do in windows.After google search, some user suggested to edit bashrc and profile file for setting environment variables but above file contains some shell programs.
I'm new to Linux, so I decided to try using Wubi to get started. THe problem is, when it finished installing 10.04, I got this message: OSError: [Errno 13] Permission denied: u'C:\ubuntu\install\ubuntu-10.04-desktop-amd64.iso' Is there any way around this? It might just be that overly restrictive thing called Vista (which I have the bad luck to be using). I was considering getting a USB drive for Ubuntu anyway..
I recently got interested with with OS.. So I downloaded wubi in Ubuntu website. I opted for the Ubuntu Netbook Edition as am using a lappy. However, halfway through finishing download I got an error. The log shows:
What is the difference between the Ubuntu Installer for windows and the Ubuntu CD image? If I use the ubuntu installer for windows, does it have the capability to partition my drive, will it enable to share files with windows etc or is it just a way not to have to burn a CD. Just curious, the exact details of the installation files were not made clear on the website. Note: Windows Version: XP, 32bit, SP3. I have not partitioned anything yet.
I have windows 7 installed on Disk2 (according to windows Disk Manager), and I installed ubuntu 10.10 on Disk0, choosing the dual boot option at installation.
However, grub does not load (presumably because its on disk0 and my machine appears to boot from disk3), so the machine goes straight into windows 7.
I'm currently running off of my live-cd, and after spending 4 hours of my life trying to fix this myself, i figured someone out here has to know how to help me. Basically, i wanted to try linux, then liked it enough to decide to put on one of my usb-drives (320g adata nobility NH92), and i couldn't get it to boot anything but windows w/o the live-cd, which would then boot the live-cd, lol, in other words, i couldn't get it to boot at all from the external, even though i had changed the setting in my bios to boot from usb first, and tried manually selecting boot from usb and all that fun stuff.
Sooo... eventually i decided it might be a problem with the bootloader, and while i'm not exactly sure at this point what i have done to my computer, all i can successfully boot is the live cd. When I try to boot w/o the live cd, whether i try to boot from my internal (windows) drive, or external, all i get is a device not found error.I think i could fix it if i had windows recovery cd's (i'm running xp, btw), or installation cds, but... unfortunately, they died in a terrible accident. So i have no cd's at all for windows. :/
I have been running Ubuntu 10.04 under Windows 7 (Is this call WUBI?) without any problems for a while. My other machines only run Ubuntu (9.04 & 10.04). I decided to give it a try to the latest Ubuntu 10.10. After going through the successful installation and then rebooting, I am getting the following error message once I select 'Ubuntu' in the boot up menu right after the BIOS screen: Booting ' Ubuntu 10.10, kernel 2.6.35-25-generic'
I'm wondering if this is even possible. I've searched high and low and have yet to find and answer to this particular setup.
The setup: Router is in another building. Desktop connected by WiFi Laptop connected by WiFi Both the Desktop and the Laptop are in the same building together. About 5' apart.
SSH server is setup on Desktop FreeNX client is setup on Laptop
So they can connect just fine via WiFi for remote desktop control of the Desktop from the Laptop (so SSH and FreeNX are working).Is it possible to connect the 2 pc's directly to each other by Ethernet cable AND transfer files between them by Ethernet while still being connected to the Internet by WiFi on them both?Or would the WiFi have to be disabled while using the Ethernet connection?Neither has a Gigabit Ethernet NIC so I know it would at least require a crossover cable or another router to connect the 2 by Ethernet cable.The idea behind all this is to be able to transfer files between computers quickly by Ethernet while the computers are still busy doing other things on the Internet by WiFi.
I've been trying to find what would be the lightest ubuntu or ubuntu based distribution, I have an older PC I'd like to get up and running again, and would prefer something that works pretty quickly on it (for basic web browsing and other things) the specs are:
1. I accidentally wrecked a previous Ubuntu installation so I decided to re-install via the Ubuntu disk. Unfortunately Ubuntu doesn't let me override previous Ubuntu installations...
2. Ubuntu Maverick Meerkat is due to released in about 3 weeks. I want to install it via a clean install.
3. So can anyone tell me how to remove both Ubuntu partitions safely. I am currently running WinVista with Ubuntu Lucid Lynx. I know I have to use something like this to erase GRUB2. Can anyone give me a good tutorial?