CentOS 5 :: Setting Up Java Globally In 5.5?
Feb 6, 2011
I've just installed CentOS5.5 on an older P3 machine as well as in a VM under Virtual Box on my laptop and I've run into the same issue with Java on both. During installation, I make sure not to install any form of Java anything as I wish to use Sun/Oracle's JDK. On first login on both machines, typing "java" in a shell finds that gij has magically installed, even though I didn't want it there.
I d/l and install Java 6-23 via the .rpm.bin package from Oracle. Typing java -version in the shell still returns "gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-48)". Ok, so it's 2011 and Oracle/Sun still can't figure out how to write a java installer that will set PATH. I add the following to my .bashrc file under my normal user:
PATH=/usr/local/jdk1.6.0/bin
export PATH
log out, log in and java reports the correct version... Except now I can't su, open vi or a number of other things.
Since I want to use this globally anyways, how do I go about using this version of Java globally for all things java? (eclipse, jboss, etc...) #alternatives --config java only shows this gij version.
View 4 Replies
ADVERTISEMENT
Dec 8, 2009
There is a particular java app called LanguageTool which we need to host on our centos server. Other applications are supposed to send an http request to this machine; this machine should pass this data (received over the http request) to the java application concerned, obtain the output from the app; and then send this response back to the requesting client...
We need to set this app as a service on startup. The centos machine might restarted from time to time; so we expect this service should startup automatically. What can I do to get this done?
View 1 Replies
View Related
Apr 5, 2010
After upgrading java (jre) to 1.6.0_19, the java plugin no longer loads into Firefox. All the rest of my plugins from /usr/lib/mozilla/plugins/ load fine.Java can be a pain such a pain the neck!
View 8 Replies
View Related
Jan 17, 2011
I tried posting to this SOLVED thread, but suspect that was the wrong thing to do! [URL].... Basically, the thread shows how to strip the first 2 lines of a text file, but because I have quote a number of folders on the desktop each needing the same treatment, I wondered how to do this in one step. I figure I might learn something rather than just do the grunt work of switching from folder to folder.
View 9 Replies
View Related
May 1, 2010
I have installed CENTOS / PHP 5.1.6 / JAVA 1.5.0_20. Now i want to install JAVABRIDGE for PHP and JAVA title should list in the PHP_info page.
View 1 Replies
View Related
May 20, 2010
I set up apache (apache2) to create a moodle server, but I can't get it to work globally. Here is the rub: http://192.168.0.150 works beautifully, showing me the index page at /var/www [URL] (my dyndns) or http://96.49.75.14 (my current IP address) doesn't work.ssh works well globally, i.e. ssh -l myname [URL] works. pinging [URL] works without a problem. Ports 22, 80 and 443 are open on my router (checked my router's settings).I use ubuntu 10.4. Is it an iptables problem, as in http://www.linuxquestions.org/questi...achine-750157/ ? But I couldn't figure out the iptables manpage.
View 14 Replies
View Related
Feb 9, 2010
There's browser identification menu for spoofing for specific sites, but i need to change user agent for all sites. How do I do it?
View 1 Replies
View Related
Apr 22, 2010
Currently doing a java course and we have been using eclipse throughout and I installed it to my ubuntu system to have a little play with it and it is much different to the windows version which we're using. When I try and start a new java project, all these rather odd wizards come up about starting projects and java isn't mentioned at all. Do I have to initialise eclipse with java? I am very comfused, it seems a nice editor to work with.
View 1 Replies
View Related
May 29, 2011
I have FireFox 4, and JRE 6_25, and G3 (dunnow if that's the problem). As described in the docs, I'm supposed to make a symlink to the plugin. The about : plugins keeps reporting File: libnpjp2.so as file, not the plugin.I just reinstalled 6_21 (the one I know works) and have successfully made a symlink, but FireFox refuses to accept the link.The applets do not have sound - tested with RuneScape and the Bells applet, no sound, but there is the music in RuneScape...
View 9 Replies
View Related
Jul 28, 2010
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.
View 3 Replies
View Related
May 3, 2009
This is what I have done[URL]...I download Linux x64 RPM I follow the instructions from there [URL]..now problem now is that after installing the java software, I'm still prompted by Firefox that I have not installed java. I have enable Java in Firefox. This is how I check Edit->Preferences->Content.
Later I found this post How to get Java to work in Firefox
[Code]...
View 2 Replies
View Related
Jul 26, 2010
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
View 4 Replies
View Related
Jun 10, 2011
Im looking to install subversion on my CentOs (Linux version 2.6.18-238.9.1.el5(mockbuild@builder10.centos.org) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-50)))
For me to do that, im required to install the following:
1) Java 6 JRE
2) Set the JAVA_HOME environment variable, and point it to your Java 6 JRE home.
For example:
3) Have python install.
The installation guide can be found @ here
When I did step 5 on the installation guide, i got an error Unable to start CSVN Console: no Java executable found Please make sure the variable JAVA_HOME is defined in your environment
I did java-version and it says bash: java-version: command not found
So I'm require java. But I'm able to run eclipse so there must be java installed correct??
If java is not installed, how do I install java JRE and JDK on CentOs.
View 1 Replies
View Related
Sep 22, 2009
I am using the latest version of Cont OS 5.I installed Sun Java into the Firefox browser and it works fine for web content but not for accessing my office Windows Desktop remotely. It seems that I have to install Sun Java at Root (I think).installing the latest version of Sun Java for the purpose of accessing my Windows Desktop?
View 1 Replies
View Related
Mar 16, 2010
I need to get Java working on Firefox. I read some instructions that had one create a link in .mozilla/plugins, to a java library, so I did. When I load a website with Java on it, I still get the message about needed to install a plugin. Not sure what is up. I wouldn't care so much, but I have some equipment that has a Java web interface that I need to configure. If I can't get Java working on Firefox, then that is a problem. I've put the link I created in the plugins dir below.
I'm running Centos 5.3. Here is the uname output code....
View 1 Replies
View Related
Jul 24, 2011
So this picture will explain [URL].. So after i typejj java -jar RSBot-257.jar it should have to come ijj up.It doesent show any errors but doesent start.What to do?
View 1 Replies
View Related
Oct 21, 2010
Am using e-business for that i need J2SE Plugin version 1.4.2_04 and NPX_PLUGIN_PATH but I don't know how can I get that
View 7 Replies
View Related
May 6, 2009
What is 'java-1.4.2-gcj-compact package' Is this a JDK or just JRE?
I want to remove 'java-1.4.2-gcj-compact' package and install sun's JDK1.6. But lots of other packages depends on 'java-1.4.2-gcj-compact'. How should I go ahead.
View 3 Replies
View Related
Feb 8, 2010
OS: CentOS 5.4 x64 I give up. How do I get Java to work with 64 bit Firefox (yes Java is installed)?
in 32 bit, it is <code>ln -s /usr/java/latest/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/.</code> I can not even find a libjavaplugin_oji.so in x64!
View 2 Replies
View Related
Jul 8, 2010
I have tried everything I can think of to get the Java plugin working on Centos 5.5 and Firefox.I'm using the sun version of Java that I downloaded: jdk-6u18-linux-i586.rpm
I do have it installed already on a seperate partition that survives OS upgrades. Do I need to have the same version of Java in my alternatives dir, or will the Java browser plugin work regardless of which Java is installed on the system? Another way of expressing this: Is the Java browser plugin a standalone application that works independently of the system-installed Java version, or does the browser plugin rely on the installed JRE to function? So I have made a symbolic link from /usr/lib/mozilla/plugins/@libjavaplugin_oji.so
to my Java plugin, under:
/usr/local/java/jdk1.6.0_18/jre/plugin/i386/ns7/libjavaplugin_oji.so
There are actually 2 versions of the Java plugin - which one should I be using?
/ns7
/ns7-gcc29
I take it it's the non-gcc29 version? When I restart Firefox nothing is showing in the about :plugins window.I have disabled all the other mozilla plugins, just in case they are stopping the the Java plugin from loading.
View 9 Replies
View Related
Sep 17, 2010
I have a centos 5.5 server. When I do a java -version it says command not found. So it means java is not install right. What are the steps for me to install java into my machine?
View 8 Replies
View Related
Oct 20, 2010
How to install /download java 6 plugin for Centos. Although I got java runtime for centos but can't find any plugin.
View 1 Replies
View Related
Apr 8, 2011
I have download the JRE for java 1.7 in tar.gz format and extracted it. Now im left with a java folder that i have no idea what to do with. My goal is to install this JRE onto my server.
View 19 Replies
View Related
Aug 22, 2011
Is it possible to install java in my home directory and that only i can use it ?
Because i dont have root access.
View 7 Replies
View Related
Feb 19, 2010
I just started setting up a linux box in the office...I have some experience with ssh commands but not setting up a linux system and stuff.The box is connected to our network but I have no clue how to make windows & osx talk with it. How can I go by doing that and also setting up an apache server to be able to connect through network. Right now I have apache/linux/mysql running it works when i go to localhost, but I would also like to let all the computers in office to access it. I would guess that will deal with virtual host which I know how to setup. I just need to setup an IP.
View 19 Replies
View Related
Feb 17, 2011
Note : Test it on Test Machine before you do it on live server O.S : RHEL 5 / CENTOS 5 FYI.... OR IDEA If you wish to install only jre download & install jre-6u18-linux-i586-rpm.bin in /usr/java ( Note create java dir { mkdir /usr/java }
#ll /usr/bin/java
lrwxrwxrwx 1 root root 22 Feb 12 19:24 /usr/bin/java -> /etc/alternatives/java
unlink /usr/bin/java
[code]....
View 1 Replies
View Related
Jul 23, 2009
I've a java program which needs to be executed regardless of whether a user is logged in or not. Currently I've a shell script which executes the java program. I login to the server and run this shell script when the server is rebooted. I would like to start this script automatically preferably as a service so that I can stop and restart this service whenever I update the java program.
View 3 Replies
View Related
Jun 4, 2010
OS: Centos 5.5_x86
I've searched quite a bit for how to set up Java environment variables with the newest java JDK. I installed java using the following commands:
yum groupinstall "java development" (I need it for the application I am trying to run)
yum install "java"
I have them both installed however I can't seem to get java to function. The application I am trying to run requires that I set java environment variables any solutions?
View 1 Replies
View Related
Oct 5, 2010
I followed the instructions on [URL] /PluginsFor64BitFirefox but it still crashes as soon as I visit a website with java
[xxxxx@xxxxx01 tmp]$ firefox
Exception in thread "main" java.lang.NoClassDefFoundError: sun/plugin2/main/server/MozillaPlugin
Caused by: java.lang.ClassNotFoundException: sun.plugin2.main.server.MozillaPlugin
at java.net.URLClassLoader$1.run(Unknown Source)
[Code]....
View 2 Replies
View Related
Jan 8, 2011
I am experiencing issues when installing a software package, receiving the following error codes within .../install/logs/log.txt
"percent complete: 98%"
"...../JDK/jre.pak/repository/package.java.jre/java/jre/lib/desktop/icons/HighContrastInverse/16x16/mimetypes/gnome-mime-application-x-java-archive.png (No such file or directory)
"The file java/jre/lib/desktop/icons/HighContrastInverse/16x16/mimetypes/gnome-mime-application-x-java-archive.png could not be replaced"
From looking in the specified directory I can see that this file does not exist, however I am unable to simply create or copy a file with the required name to resolve this issue. Is this a known error, or is my install package simply missing the needed files; even though I managed to successfully install this package a few days earlier onto the same system.
View 1 Replies
View Related