Seek help for install java under linux

I have successfully installed java on linux , but not able to use many features tht i possibly could , such as jdbc , prblms on Mysql. most buggin prblm how do i set the compiler path to compile files from my home directory. i have to forcefully use the bin directory and run the complier given long address for the files. plz help.
abhi

abhi
I don't know about your MySQL problems based on what you have posted - can you post any more specific information? Have you got the relevant MySQL drivers in your classpath? The drivers are available here:
http://www.mysql.com/downloads/download.php?file=Downloads/Connector-J/mysql-connector-java-2.0.14.tar.gz
the README in that file will give you installation instructions.
how do i set the compiler path to compile files from my home directorySet the CLASSPATH environment variable to include whichever directories you like, eg (on bash) type:
export CLASSPATH=$CLASSPATH:.:<your java dirs>To make java easier to run, put the directory in which it is installed into your path:
export JAVA_HOME=<where you installed java>Then do
export PATH=$PATH:$JAVA_HOME/binverify it has worked by simply typing
javaYou can put all of these commands into the .*rc file for your shell, so that they are executed every time you open the shell. So if you are using bash you can put them into ~/.bashrc
Read up setting the PATH and CLASSPATH for more info.
HTH
Matt

Similar Messages

  • Developing Java under Linux and Windows

    Dear all
    I want to know the percentage of developing Java under Linux platform and under Windows platform. is it 50 % for each or most of developers develop under one platform?
    Best Regards

    I want to know the percentage of developing Java
    under Linux platform and under Windows platform. is
    it 50 % for each or most of developers develop under
    one platform?I did a full survey of this just last week. I contacted 10,000 Java
    developers so to an accuracy of better than 1% I find that
    78% develop on Windows
    11% develop on Mac
    12% develop on Linux
    12% develop on AIX
    6% develop on 'other' platforms.------+
    119%
    You may quote me on this.Uhuh ;-)
    kind regards,
    Jo

  • How to install java under suse linux 8.0 prof

    hi,
    first of all, i'm a newbie.
    i have downloaded the file j2re-1_4_0_01-linux-i586.bin into my public_html directory.
    which comand do i have to use to install java??
    please help!
    best regards
    Mad Elk

    I found this on Sun's Site, it should help. If it is a bin file, you should just have to type whateverItIsCalled.bin and hit enter. Make sure it is in the directory you want to install it in!
    Installation of Self-Extracting Binary
    Use the following instructions if you want to use the self-extracting binary file to install the Java 2 SDK. If you want to install RPM packages instead, see Installation of RPM File.
    1. Check the download file size.
    Before you download a file, notice that its byte size is provided on the download page. Once the download has completed, check that you have downloaded the full, uncorrupted software file.
    2. Copy j2sdk-1_3_1_<version number>-linux-i586.bin to the directory into which you want to install the Java 2 SDK.
    3. Run j2sdk-1_3_1_<version number>-linux-i586.bin
    Launch the executable file you downloaded, j2sdk-1_3_1_<version number>-linux-i586.bin, by using the following commands from the directory in which it is located:
    chmod a+x j2sdk-1_3_1_<version number>-linux-i586.bin
    ./j2sdk-1_3_1_<version number>-linux-i586.bin
    The script will display a binary license agreement, which you will be asked to agree to before installation can proceed. Once you have agreed to the license, the install script will install the Java 2 SDK in a directory named jdk1.3.1_<version number> in the current directory.
    Note about root access - Unbundling the software automatically creates a directory called jdk1.3.1_<version number>. If you choose to install the Java 2 SDK into system-wide location such as /usr/local, you must first become root to gain the necessary permissions. If you do not have root access, simply install the Java 2 SDK into your home directory, or a subdirectory that you have permission to write to.
    Note about overwriting files - If you unpack the software or documentation in a directory that contains a subdirectory named jdk1.3.1_<version number>, the new software will overwrite files of the same name in that jdk1.3.1_<version number> directory. Be careful to rename the old directory if it contains files you would like to keep.

  • Cannot install JMF under Linux Mandrake 10

    I simply cannot install JMF under the Mandrake 10 Official Linux distribution. I downloaded the jmf-2_1_1e-linux-i586.bin file and tried to execute it as root. It unzipped some files then showed me an error message about AWT and GTK+. I found a hack consisting of modifying the .bin file to have the PATH variable point to SUN JDK, the error does not show up, but the installation still does not work. In fact, the installation works, but the Diagnostics applet keeps telling me than class files are not present. My Mozilla 1.6 Java plugin is working and displaying the applet. My JMF lib directory does not contain sound.jar, such jmf.jar. I set the CLASSPATH and LD_LIBRARY_PATH according to the readme.html file. I would like to know if it is a compatibility problem with Mandrake 10, the 2.6 kernel or if JMF just DO NO work under Linux. In the latter case, JMF is a violation to the Java portability philosophy and I would never use it on my own initiative, just if I were asked to.
    After the files are unzipped, I have the following warning and error messages.
    Warning:
    Name: HorScrollBar
    Class: XmScrollBar
    The specified scrollbar value is greater than the maximum
    scrollbar value minus the scrollbar slider size.
    JavaSound Capture Supported = true
    JavaSoundAuto: Committed ok
    java.lang.Error: Can't open video card 0
    java.lang.Error: Can't open video card 1
    java.lang.Error: Can't open video card 2
    java.lang.Error: Can't open video card 3
    java.lang.Error: Can't open video card 4
    java.lang.Error: Can't open video card 5
    java.lang.Error: Can't open video card 6
    java.lang.Error: Can't open video card 7
    java.lang.Error: Can't open video card 8
    java.lang.Error: Can't open video card 9
    Done.
    Even if I do not have a working video capture card (I have an ATI All-in-Wonder 128 but it is not working under 2.6 kernel), JMF should work because some people do not have a video capture card. I also tried with the cross-platform ZIP file, but this one does not contain sound.jar either and the Diagnostics applet keeps complaining about missing class files. I tried to search on the Web for solutions to this problem or for a way to change the CLASSPATH used by the Mozilla Java plug-in (if it uses a different CLASSPATH than the one from the environment variable), but nothing, nothing. Is there a distribution from which JMF would work better than Mandrake 10? Or can JMF work only under Microsoft Windows or Sun Solaris? I also tried Blackdown, but a README file directed me to the Sun's page, nothing to download here about JMF.

    well, your not the only one.
    I have it working in Debian, and JDS.(JMF is setup automatically in JDS).(2.6.6 kernel)
    I looked at the installation structure of JDS, and was able to duplicate what they did for Debian.
    Maybe it will work for Mandrake two??
    ok, all you have to do is copy or create soft links from your Mozilla directory, just like you did with the java plugin, and link to all the *.so files in JMF-2.1.1e/lib directory.
    Should work.
    I also read that not haveing the native files only matters if you are doing Capture. not play.
    to get your ATI All-in-Wonder 128 to work, make sure you install the correct driver, and have it working under linux, then try it in JMSTUDIO

  • Installing Java under redhat 9

    Hi all!
    I am using java under windows for my computer science course. To make it work under the command line I had to add the directory to the path. I now use linux and would like to run java from the commmand line without having to change through all the directories. How do I get linux to do this? All help appreciated,
    thanks!

    In the same way - you add Java installation directory to your PATH. Instructions on how to do it (geared towards Windows users):
    http://www.geocities.com/tipsforlinux/articles/11.html

  • How to do a ping with ICMP in Java under Linux?

    Does anyone know an easy way to do a ping with ICMPs under Linux? I did it under Windows, but under Linux, I've got some issues. I need a procedure that sends a ping with a id number and a seq number and another function pong that waits for a reply and returns the seq and id of the packets it received.
    if anyone did this, please tell me how. I know it should be a native method, but how do I implement it...

    rigth, i thought of that. but imagine that i have something like 100 hosts wich i must ping something like 20 times and get all the results in something like 5 seconds.
    so i don't think that runtime will be a solution because that kind of pings tend to be safe and wait 1 sec between 2 succesive pings in order to prevent a flood.
    i already did it in windows with a native dll. but i'm not so experienced in linux... :( so, if anyone can help...please do

  • How can I install InDesign under Linux?

    Hello,
    Because Microsoft stopped service for Windows XP, I changed the OS to Linux (currently Ubuntu to ease the change). A lot of software have alternatives under Linux, but I want to work with InDesign (currently CS6) furthermore. Is there a special (new) software version available directly from Adobe (I found only Win and Mac versions). Or is a script for Wine (or other emulator software) available? Thanks for any help or comment.
    Micha

    adobe makes no linux version of any of its software.  you'll need to use a front-end like wine, WineHQ - Adobe InDesign

  • Plz help to install java plug-ins

    hi everybody,
    i am new to the world of java, i want to install java plug-ins in mozilla 1.7 on redhat linux 9.
    how to do it, plz help, thanx in advance..

    If Java was installed prior to Mozilla, it should have automatically installed.
    If not, or Mozilla was installed first, use these instructions from Mozilla:
    http://plugindoc.mozdev.org/linux.html

  • Need help in installing EBS on Linux

    Hi all,
    i m installing EBC on linux. i got an error on Step 1 of 5 " RW-50004: Error code reveived when running extrenal process. Check log file for details.Running Database install Driver for VIS Instance"
    In log file following is the statment "Cannot execute install for databse ORACLE_HOME. There was an error while running the command - su oravis -c /d01/oracle/visdb/9.2.0/temp/VIS_localhost/adrun9i.sh APPS APPS.
    /d01/oracle/visdb/9.2.0/temp/VIS_locahost/adrun9i.sh: line 28: /tmp/RapidInstall/jre/Linux/1.4.2//bin/jre: Premission denied"
    Please help me to resolve this error.
    Thanks in advance

    Hi Aftab,
    See the steps in the following thread:
    Oracle EBS 11.5.10.2 Installation Steps
    NOTE: Follow the steps stated for the Linux installation (make corrections on the ones you have done already), clean your previous installation.
    remove /etc/oratab, /etc/oraInventory, /tmp/OraInstall etc.
    Then let us know how you get along

  • Installing Java on Linux

    I would like learn how to program in jsp.
    I just installed Linux for the first time in my life last night.
    Now where do I start?

    You probably need a development tool. Depending on what youy really want to do, I would recommend
    1/ NetBeans IDE for learning Java and its APIs: http://www.netbeans.org (free and Open Source)
    2/ Sun Java Studio Creator for rapid and visual JSP development: http://developer.sun.com/jscreator (30day trial, $99)
    But there's also good old vi and and emacs of course.
    Try the Java Tutorial : http://java.sun.com/docs/books/tutorial/index.html
    -Alexis

  • How to properly set the environment for user oracle under Linux

    Hi,
    Every time I install XE on Linux somewhere, I repeat these steps (along with [fixing the /etc/init.d/oracle-xe startup script|http://forums.oracle.com/forums/thread.jspa?threadID=843780&tstart=0]), so I thought, why not contribute this to the community.
    Those who have installed XE on Linux know that, after installation, logging in as user oracle gets you in a
    $cryptic prompt. On top of that, none of the essential environment variables are set. Not amusing. That's because the oracle user lacks the proper configuration files for the bash prompt. Log in as user oracle and create these:
    .bashrc
    if [ -f /etc/bashrc ]; then
      . /etc/bashrc
    fi.bash_profile
    if [ -f ~/.bashrc ]; then
      . ~/.bashrc
    fi
    . /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh
    unset USERNAME.bash_logout
    clearNow log out and then log in again - a nicer prompt, and all environment variables are set, ready to run sqlplus, imp, etc.
    This should help make your overall XE experience on Linux easier. Regards,
    Georger

    Nice. I checked the .bash_profile of my oracle installation and this is what I can contribute (I got the additional stuff from some tests with other Oracle Versions):
    # /etc/skel/.bash_profile
    # This file is sourced by bash for login shells.  The following line
    # runs your .bashrc and is recommended by the bash info pages.
    [[ -f ~/.bashrc ]] && . ~/.bashrc
    # Oracle Profile Settings
    if [ $USER = "oracle" ]; then
       source /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin/oracle_env.sh
       if [ $SHELL = "/bin/ksh" ]; then
          ulimit -p 16384
          ulimit -n 65536
       else
          ulimit -u 16384 -n 65536
       fi
    fiC.

  • Install 10GR2 under Linux REDHAT9

    Hi,
    The installation process stobed after cheching requerments when it execute the unzip order.
    this is a contenet of installActions2006-01-23_12-23-44PM.log file in directory /tmp/OraInstall2006-01-23_12-23-44PM:
    Using paramFile: /u01/app/oracle/product/Disk1/install/oraparam.ini
    Checking installer requirements...
    Checking operating system version: must be redhat-2.1, UnitedLinux-1.0, redhat-3 or redhat-9
    Passed
    All installer requirements met.
    The commandline for unzip:
    /u01/app/oracle/product/Disk1/install/unzip -qqq ../stage/Components/oracle.swd.jre/1.4.2.0.0/1/DataFiles/\*.jar -d /tmp/OraInstall2006-01-23_12-23-44PM
    Tanks for you help
    Kjbaida

    Personally I would not use RedHat 9 any more. For 2 reasons:
    1) it is obsolete (and the free WhiteBoxLinux, TaoLinux and CentOS are suitable replacements that are great clones of the supported Red Hat Enterprise Linux)
    2) there are several versions found in the wild that contain different glibc and gcc, which makes the install of ORacle inconsistent.
    In any case, everyone who wants to install Oracle on Linux should review the information at http://www.puschitz.com

  • Install java in linux Redhat 9

    hello,
    i tryinh to install java in redhat 9 but i dont how i can install it or using command line to set the path as Windows
    can anyone help me,
    thx

    Here's a link to a website you might find helpful.
    http://cruisenews.net/install_java_on_redhat_9.html

  • HELP for installing photoshop cc

    When I use adobe creative cloud to install cc, it succeed. But there are 32 and 64 bits both installed in my computer. I certainly just need one to save my room. Help! BTW after installing does acc remain the files for installing and if where?

    No there is no uninstall option available to remove the 32-bit version.  You could try removing it manually but it would not be suggested and could lead to failures to update the application later on.
    Also the download files are stored in your computers temporary directory.  The installation files are then deleted after they are utilized.

  • Prerequisites needed for installing R12 in linux (64-bit)

    Hi,
    Please list the OS Prerequisites needed for installing R12 (Vision dB) in RedHat ES. Please also let me know whether it will support 64-bit
    Thanks,
    Anand

    I do not think it is possible to paste the whole page. However, please find below all the details which are relevant to Red Hat Enterprise Linux AS/ES 4.0
    Kernel Requirements & Settings
    Red Hat Enterprise Linux AS/ES 4.0: 2.6.9-42.EL
    Edit the /etc/sysctl.conf file to configure your kernel settings. After editing the file, use the "sysctl -p" command or restart the system to invoke the new settings.
    kernel.semmsl: 256
    kernel.semmns: 32000
    kernel.semopm: 100
    kernel.semmni: 142
    kernel.shmall: 2097152
    kernel.shmmax: Half the size of the physical memory (in bytes), and at least 2147483648
    kernel.shmmni: 4096
    kernel.msgmax: 8192
    kernel.msgmnb: 65535
    kernel.msgmni: 2878
    fs.file-max: 65536
    net.ipv4.ip_local_port_range: 1024 65000
    net.core.rmem_default: 262144
    net.core.rmem_max: 262144
    net.core.wmem_default: 262144
    net.core.wmem_max: 262144
    Required Packages
    - binutils-2.15.92.0.2-21.x86_64.rpm
    - compat-db-4.1.25-9.i386.rpm (32-bit)
    - compat-db-4.1.25-9.x86_64.rpm
    - control-center-2.8.0-12.rhel4.5.x86_64.rpm
    - gcc-3.4.6-3.x86_64.rpm
    - gcc-c++-3.4.6-3.x86_64.rpm
    - glibc-2.3.4-2.25.i686.rpm (32-bit)
    - glibc-2.3.4-2.25.x86_64.rpm
    - glibc-devel-2.3.4-2.25.i386.rpm (32-bit)
    - glibc-devel-2.3.4-2.25.x86_64.rpm
    - glibc-common-2.3.4-2.25.x86_64.rpm
    - gnome-libs-1.4.1.2.90-44.1.x86_64.rpm
    - libstdc++-3.4.6-3.i386.rpm (32-bit)
    - libstdc++-3.4.6-3.x86_64.rpm
    - libstdc++-devel-3.4.6-3.i386.rpm (32-bit)
    - libstdc++-devel-3.4.6-3.x86_64.rpm
    - libgcc-3.4.6-3.i386.rpm (32-bit)
    - libgcc-3.4.6-3.x86_64.rpm
    - make-3.80-6.EL4.x86_64.rpm
    - pdksh-5.2.14-30.3.x86_64.rpm
    - setarch-1.6-1.x86_64.rpm
    - sysstat-5.0.5-11.rhel4.x86_64.rpm
    - xscreensaver-4.18-5.rhel4.11.x86_64.rpm
    - openmotif21-2.1.30-11.RHEL4.6.i386.rpm**
    - libaio-0.3.105-2.x86_64.rpm
    - libaio-0.3.105-2.i386.rpm (32-bit)
    - libaio-devel-0.3.105-2.x86_64.rpm
    Software Requirements
    - ar
    - gcc
    - g++
    - ksh
    - ld
    - linux32
    - make
    - X Display Server
    Verifying Host Names
    1) Verify that the /etc/hosts file is formatted as follows:
    127.0.0.1 localhost.localdomain localhost
    <ip_address> <node_name>.<domain_name> <node_name>
    2) Verify that the /etc/sysconfig/network file is formatted as follows:
    HOSTNAME=<node_name>.<domain_name>
    3) If the /etc/sysconfig/networking/profiles/default/network file exists, remove it.
    4) If you changed any files in the previous steps, restart the system.
    Modifying the Number of Open File Descriptors
    Open the /etc/security/limits.conf file and change the existing values for "hard" and "soft" parameters as follows. Restart the system after making changes (If the current value for any parameter is higher than the value listed in this document, then do not change the value of that parameter):
    * hard nofile 65535
    * soft nofile 4096
    * hard nproc 16384
    * soft nproc 2047

Maybe you are looking for

  • Need a suggestion for a DNS server (BIND etc...)

    I am a student in college. I got a little job to help improve the internal DNS management in the college. Right now they use BIND with nothing else. They edit the zone files by hand. Since the network is quite large, it's sometimes hard to maintain t

  • [svn:bz-trunk] 21277: Added ds-console source to package-oem and removed copy command for datavisualization .swc which doesn't exist in the specified location.

    Revision: 21277 Revision: 21277 Author:   [email protected] Date:     2011-05-18 11:35:28 -0700 (Wed, 18 May 2011) Log Message: Added ds-console source to package-oem and removed copy command for datavisualization.swc which doesn't exist in the speci

  • Multiple albums only on iPod

    Hello I looked through some threats couldn't find the exact answer to my question tho, so I have about 5 albums that are by a music label and are music mixes I.e. With more than one artist per album. In iTunes I sorter them with album name "x" and al

  • Tables-Parameter in Function module

    Hello together, i created a new function module in CRM with one "Tables"-Parameter. The parameter will be filled in debugging but if i call the fm in SAPRFC test script the table is empty. Do have any idea how i could solve this? Best regards Sascha

  • JMS (bea 9) redelivery does not work ?

    I'm a bit at a loss. Any help is therefore welcome. I am using Bea 9 and Java 1.5. I have a MDB bean that attempts to transmit data to a foreign site via ftp. When it fails to transmit files, it errors and the message's content (a file) that I attemp