Problem in setting path and classpath for java in RedHat linux 9

Hi ,
i am not able to set the PATH and CLASSPATH for j2sdk1.4.2_06
I have tried with export PATH=$PATH:/usr/j2sdk1.4.2_06/bin
and export CLASSPATH=$CLASSPATH:/usr/j2sdk1.4.2_06/lib
in terminal
but i want to configure it as permenant way for the jre and jdk
and we should only type java or javac according to the requirement
regards mihir...

type those in .bashrc ... save and exit
then at prompt, type 'source .bashrc'
this is the permanent solution ...
bhalo thakun

Similar Messages

  • Setting PATH and CLASSPATH in Java Applet

    Hi,
    I have been wondering if there was a way to set the PATH and the CLASSPATH in the HTML file within the <APPLET> tag...
    What I would like to do is to read some xml files outside of the directory where my html file is located to run my test application with the configuration on my computer.
    (The applet and the html file from which it is called is on my local host.)
    Therefore, I have seen that in order to access local files, I have to sign my jar files, which I did.
    But the tricky part is that for my test application to work, I need to set the PATH and the CLASSPATH... and I have no idea if this is possible or not...
    I have seen that:
    *CODEBASE: I specify here the main directory where my jar files are located
    *ARCHIVE: I specify here the list of my jar files
    In my case:
    CODEBASE=../../   (this is the root directory of my whole application)
    ARCHIVE=dir/lib/jar1.jar,dir2/jar2.jar,configXML/,etc...I don't know if I can specify the filepath of my xml files (here "configXML") in ARCHIVE (I suspect we can only specify jar files there... right ?)
    Maybe I can use ARCHIVE this way to specify my CLASSPATH (and well... not completely the way I would like I suppose), but what about the PATH ?
    I have been searching this for soooo long now...
    Any help, hint or suggestions (I might doing this all the wrong way...) would be greatly appreciated !
    Thanks in advance !

    You need to use the code attribute to specify the class that contains the main method to start the application.
    <applet code="myPackage.myClass.class" codeBase="http://www.someServer/someFolder/" archive="myApplet.jar">
    I hope this solves part of your problem at least.
    Andrew

  • Set path and classpath in ANT

    by using ANT, how can set the JDK path and classpath..
    jdk version exists in the : C:\Program Files\Java\jdk1.6.0
    This is the build.xml that i need to modify!
    -Do i need to have a serperate JAVA_HOME variable?
    <?xml version="1.0"?>
    <!--
    Build file for 'Chat Client'
    Version: $Revision: 4.10 $ $Date: 2003/05/28 $
    Author:  Rajat Gupta
    -->
    <project name="Chat" default="jar" basedir=".">
       <!-- ================================================================== -->
       <!-- Initialization of all property settings                            -->
       <!-- ================================================================== -->
       <target name="init">
          <property name="appname"        value="chat"   />
          <property name="src.dir"        value="src"               />
          <property name="lib.dir"        value="lib"              />
          <property name="build.dir"      value="Chat"            />
          <property name="build.compiler" value="classic"          />
       </target>
       <!-- ================================================================== -->
       <!-- Makes sure the needed directory structure is in place              -->
       <!-- ================================================================== -->
       <target name="prepare" depends="init">
          <mkdir dir="${lib.dir}" />
          <mkdir dir="${lib.dir}/META-INF" />
          <mkdir dir="${build.dir}" />
       </target>
       <!-- ================================================================== -->
       <!-- Compilation of the web part of the application                     -->
       <!-- ================================================================== -->
       <target name="classes" depends="prepare">
          <javac srcdir="${src.dir}/oracle/otnsamples/oc4jjms"
                 destdir="${lib.dir}"
                 includes="**" />
       </target>
       <!-- ================================================================== -->
       <!-- Compilation of the complete J2EE application (both web and EJB)    -->
       <!-- ================================================================== -->
       <target name="j2ee-meta-inf" depends="classes, prepare">
          <copy file="${src.dir}/META-INF/application-client.xml"
                tofile="${lib.dir}/META-INF/application-client.xml" />
          <copy file="${src.dir}/images/oralogo.gif"
                tofile="${lib.dir}/oralogo.gif" />
       </target>
       <target name="jar" depends="j2ee-meta-inf">
       <jar jarfile="${build.dir}/${appname}.jar"
           basedir="${lib.dir}" manifest="${src.dir}/META-INF/MANIFEST.MF"/>
          <delete dir="${lib.dir}" />
       </target>
    </project>Message was edited by:
    jugp

    [url ='http://www.jguru.com/forums/home.jsp?topic=Ant']answer here

  • How to go about Setting PATH and CLASSPATH?

    I have problems compling the helloworldwww in the core programming.the error was:
    Exception in thread "main"java.lang.NoSuchMethodError:main
    my java programs are in c:\program files\java\bin
    My path :
    PATH=C:\WINNT\system32;C:\WINNT;c:\program files\java\bin
    My classpath
    set CLASSPATH=C:\WINNT\system32;C:\WINNT;c:\program files\java\bin.jar;.
    is there any error in my paths, if yes how to i go about setting the path and classpath??Im running on winXP.j2sdk1.4.1_02.

    set CLASSPATH=.;c:\program files\java\bin.jar;c:\program files\java\bin

  • Setting Path and Classpath in Linux environnement

    Hello,
    I use to develop with JAVA under Windows platform,
    now i am using j2sdk under Mandrake 8.0 , i dunno how to set my PATH end Classpath variables, could you show me how?
    Thanks

    Put this in your user's .bashrc file at the end of it.
    JAVA_HOME=/path/to/java/install
    PATH=$PATH:$JAVA_HOME/bin
    export JAVA_HOME PATHAnd buy a book on Unix/Linux.

  • How to set default audio device for java apps on Linux?

    I would like to find a way to choose a particular (ALSA) audio device for java applications. How can this be done without reprogramming the application or changing the default ALSA device? I came across "sound.properties", but could not find any information how to use this file on an ALSA system.
    Thanks for any help, Mark

    Eugenia wrote:Well, it's still not good enough.
    We can't satisfy everyone. What you want is a corner case. For most people ALSA and dmix works appropriately, and that is what esd uses by default. We cannot document and automate every configuration possible. That's up to the users.
    However, if you don't want to restart gnome, try the below... I make a few assumptions, but even if they're wrong, they're hardly difficult to work around.
    Just copy the /etc/esd.conf to ~/.esd.conf, make your change, then do killall esd. Presumably gnome will restart esd, and it ought to read your local config. If it doesnt, start it yourself.
    Feel free to write a script that automates this, or document it on the wiki.
    I have to restart Gnome to get this thing working. Other OSes *automatically* can use an alternative device. But if I change ESD, I will have to restart Gnome, no?
    Well, if you try my suggestion above, no. You can restart esd yourself. And that's what all the other distros do, except with some fancy GUI.
    James

  • How do I sett path and classpath in win98

    I have downloaded I have tried but it doesn't work...
    I just don't know how to do, almost tried everything (not the
    right way of course)!
    I would really be happy if someone could tell me how to do!

    The installation instructions are supplied with the JDK download. Otherwise, I found them on this site after 1 minute of searching
    http://java.sun.com/j2se/1.4.1/install-windows.html
    Work your way through these, and if you are still having troubles, feel free to post back here with details of the specific problem you have.

  • Path and classpath

    How do i set path and classpath in java? why it is needed

    ramyabaskar wrote:
    How do i set path and classpath in java? why it is neededTypically you do not set these in java.
    You set the path in the operating system shell.
    You set path so you can launch java by just typing java
    instead of having to type the full path to "C:\Program Files\Java\jre6\bin\java.exe".
    You pass the desired classpath to java when you launch java with the classpath option or set it in the operating system shell using the CLASSPATH env.var.

  • Starting tomcat server after setting classpath for java

    Sorry if this is nothing to do with java, it is more to do with starting tomcat server.
    Tomcat server has been working totally fine, but when I wanted to compile a java servlet I wrote for it, I needed to run a BAT file called gojava in MS-DOS that had the classpath for java to work properly. I then attempted to run Tomcat, but just got 'bad command'. As long as I don't start up java by setting the classpath, tomcat will work, but as I need java to write servlets and then to test them without restarting my PC each time, how do I get tomcat to work?
    Thanks
    Hannah

    Sounds like your batch file is changing your path, not your classpath. If you're getting "Bad command or filename" when attempting to run Tomcat, it can't find the executable. Check out the .bat file and see what it's doing (maybe even post it here for further clarity). If it's changing your path at all, make sure it includes a %path% to indicate that it simply wants to append items to the path, not overwrite it completely. Sorry if i'm way off base with my suggestions, but it sounds like that's where the problem's going to be, especially if rebooting resolves the problem.

  • Problems between Xcelsius and WebDynpro for Java

    How should I do to show Xcelsius in WebDynpro for Java?
    How should I transport data between Xcelsius and WebDynpro?
    How should I control WebDynpro with Xcelsius?For example,firing plugs in Xcelsius like in WebDynpro to change one view to another.
    How should I do to execute a Java method in Xcelsius?For example,scheduling a job on clicking a button in Xcelsius.
    Besides these,I also want to know the same problems between other BOE contents and WebDynpro for Java.
    Regards,
    Abe

    Hi Pradeep:
    Well that purely depends on the business application (project) your client is proposing. Following are very few factors which will drive for creating web-based applications:
    VC: it's a UI modeling tool (non-programming) for creating rapid creation of web-based applications.
    WD: its a powered by Java and ABAP with which you can create robust business applications.
    If your client is very choosy about rapid application development, reporting, rich user interface, to reduce TCO then VC is the choice. Or if the project contains typical integration with SAP and non-SAP systems, complex business logic development, integration with WCM systems...etc then WDJ is the option.
    If you’ve some sort of custom development with facilitating the Development Infrastructure (NWDI) then WDJ is the only option I could say.
    We hope with NW CE 7.1.1(referred by Priyanka Singh) tighter integration between these TWO tools may over come the ambiguity of using them.
    Tnx,
    MS

  • Path in Classpath for file SapMetamodelWebdynproContent.zip not found.

    How to get rid of these warnings?
                   [Warning]: Path in Classpath for file SapMetamodelWebdynproContent.zip not found.          
    Warning               [Warning]: Version for file SapMetamodelWebdynproContent.zip not found.          
    Warning               [Warning]: Versions of 'SapDictionaryTypeServices.jar' have different prefix.          
    Warning               [Warning]: Versions of 'SapDictionaryTypesRuntime.jar' have different prefix.     
    thanks in advance.

    Hi,
    This is a common problem when you import projects to NWDS. Do like this.
    1.Change to Navigator tab in NWDS and delete gen_wdp folder.
    2.Switch to Web Dynpro Explorer. Select the Project -> Right click-> Select properties -> in the wizard select Java Build Path -> Select Libraries tab -> You will find jar files with warnings
    3.Remove the jar and add the jar file with same name to the project one by one.
    4.For each jar file repeat step 3.
    5.Save the project
    Or
    removed the read-only property from all folders / files of the project and it solved my problem.
    Hope this helps!!
    Thanks & Regards
    Vijay K

  • Difference between path and classpath

    Difference between path and classpath?

    PATH - set of paths there executables will be found.
    CLASSPATH - set of paths and archives there class files will be found.

  • Has anyone had a problem with TapMedia File Manage on iPhone 5. I reported a WIFI functionality problem to the developer and asked for support. Instead they have been very unprofessional by name calling me instead of logically evaluate and troubleshoot th

    Has anyone had a problem with TapMedia File Manage installed on iPhone 5? I reported a WIFI functionality problem to the developer and asked for support. Instead the company has been very unprofessional by name calling me instead of logically evaluate and troubleshoot the problem

    Hi AKE1919,
    Welcome to the Support Communities!
    The following information should help you with this:
    How to report an issue with your iTunes Store, App Store, Mac App Store, or iBookstore purchase
    http://support.apple.com/kb/HT1933?viewlocale=en_US
    Cheers,
    Judy

  • Setting date and time in java mail

    I want to set date and time for the mail sent by my application.
    So how to set date and time for my mail.

              msg.setSentDate(new Date());Where msg is an instance of javax.mail.Message.

  • How set  UserName and Password for HTTP Basic Authentication for a servlet

    Hi..
    How set UserName and Password for HTTP Basic Authentication for a servlet in JBoss server?
    Using Tomcat i can do it .(By setting roles in web.xml, and user credintails in tomcat-user.xml).
    But i dont know how do it in JBOSS..
    I am using Netbeans and Eclipse IDEs.. Can we do it by using them also!?
    Thank u

    Hi Raj,
    You can do this by creating a Login screen for the users and check the authentication of each user in PAI i.e. PROCESS AFTER INPUT.
    Store the user information in a database table and check the username and password when the user enters it.
    You can display password as *** also. For this double click on input box designed for password and goto Display tab. Select Invisible in the list and check it.
      CASE sy-ucomm.
        WHEN 'BACK'.
          LEAVE PROGRAM.
        WHEN <fcode for submit>.
          SELECT SINGLE uname pwd
           FROM <DB table>
           INTO (user, pass)
           WHERE username = user AND
                   password = passwd.
          IF sy-subrc = 0.
    <Go to next screen for further processing>
          ELSE.
    <Display Error message and exit>
          ENDIF.
      ENDCASE.
    Regards,
    Amit
    Message was edited by:
            Amit Kumar

Maybe you are looking for

  • Printing to Acrobat 9 Pro renders giberish text

    When printing from the net to my Acrobat 9 Pro the image output is perfect yet the text is all giberish. Can anyone help? Thanks in advanced. Francisco De La Chesnaye [email protected]

  • Column values not displayed

    Hi, How is it that I am able to values in a column and some other user is seeing blank in that same column, same table, just the user accounts are different. What kind of restriction have the dba's given to that particular account. where can I see th

  • Extractor for AUFK and AFKO tables

    Hello Experts, I am looking for a standard extractor for the tables AUFK (Order Master data) and AFKO (Order Header). I wanted to know if there a exists a standard extractor for the same or I have to create a generic one. Thanks, Rishi

  • Workout Never Ends?

    Wondering if anyone (everyone?) else experiences this. If I do a timed workout (say, 45 minutes), the voice correctly gives me progress updates (every 5 minutes and half-way through), but there's nothing at the end of the workout. I would have expect

  • Commitment item for component check in MIGO

    Hi All, FM implemented. While doing Gi for the prod order and while checking for the component item ok. I am facing the error No committment item entered in item 00000. Please help how to do Gi.