Setting Path,Classpath in Mandrake 8.2

I have added the following lines to the .bashrc .bash_profile for my regular user
and /etc/profile and i still cannot find the java path with a regular user but using root i can
Shouldn't the /etc/profile allow all users to access the java directory?
export JAVA_HOME=/usr/local/j2sdk1.4.0/
export PATH=$PATH:$JAVA_HOME/bin/
export CLASSPATH=$JAVA_HOME/lib/
Thanks

I'm in the same boat as you are. Did you ever get the java working??

Similar Messages

  • Linux - j2sdk1.4.2_06 can't set path/classpath

    I am struggling to get my java set up to write, compile and run some java programs, and honestly being a linux newbie the docs for such are somewhat confusing..
    I am trying to break this down as simple as possible.
    -I am logged into Linux as root.
    -then download the j2sdk1.4.2_06 in the /USR/ dir
    -I did chmod +x j2sdk1.4.2_06...
    -then./j2sdk1.4.2_06...
    it installed successfully.
    but setting up the path classpath is different.
    I would like two things:
    for my mozilla browser to now be java enabled, AND
    I would like to create a directory called javasrc to hold all my java source code
    but I do not want to develop in root, I want any user to be able to use the javasrc directory and be able to compile and run the programs..
    what exactly do I edit. someone said I need to edit a file in /ETC/PROFILE
    I want to try this..but I dont think it is correct
    export JAVA_HOME=/usr/j2sdk1.4.2_06
    PATH=$HOME:/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/X11:/sbin:/home/mqm/bin:$JAVA_HOME/bin
    export PATHthanks

    I'd advice you to not touch CLASSPATH until you've studied how packages and classloading work. Until then it will just get on your way.
    What comes to setting PATH, the file to modify in /etc depends on your distribution -- a least in some versions of SuSE /etc/profile is generated by a script and you are supposed to modify /etc/profile.local instead. You could also edit a file called ".bashrc" in your home directory. The manual page of bash explains the differences between using these files. If you modify /etc/profile you need to either start a new login shell or source the file for the change to have effect. The lines to write are:export JAVA_HOME=/usr/j2sdk1.4.2_06
    export PATH=$PATH:$JAVA_HOME/bin

  • How to set the classpath and path from the jsp to call  java class function

    Hi Exprets,
    I have a requirement to call a java class function which returns a hashmap object from the jsp. The java class in present in one jar file and that jar file is location somewhere in unix path. So the requirement is to set the classpath for that jar file and then create the object of the java class and then call the function.
    If any one know how to achieve it, please reply as soon as possible.
    thanks in advance,
    swapna soni.

    It is never advisable to store large data sets in the session. But it will depend on a lot of factors:
    1. How costly is the query retrieving the data from the database?
    If it's a complex query with lots of joins and stuff, then it will be better to store it in the session as processing the query each time will take a lot of time and will decrease performance. On the other hand if the query is simple then it's advisable not to store it in the session, and fetch it each time.
    2. Are there chances for the data to become stale within a session?
    In this case storing the data is session will mean holding the stale data till the user session lasts which is not right.
    3. How many data sets does the session already holds?
    If there are large no. of data sets already present in the session, then it's strictly not advisable to store the data in the session.
    4. Does the server employ some kind of caching mechanism?
    Using session cache can definitely improve performance.
    You will have to figure out, what is the best way analyzing all the factors and which would be best in the situation. As per my knowledge, session is the only place where session specific data can be stored.
    Also, another thing, if the data set retrieved is some kind of data to be displayed in reports, then it would be better to use a pagination query, which will retrieve only the specific no. of rows at a time. A navigation provided in the UI will retrieve the next/previous data set to display.
    Thanks,
    Shakti

  • Help, how to install jvm and set the classpath using a batch file

    hello,
    i have created my java application and now have to create an installable / batch file which will install the JVM on the users machine and also the java packages such as javamail and the class files that i have created . it also has to set the classpath.
    i would like to know if anyone can tell me how to go about iti.e. how can i install the JVM using a batch file and then place the javamial packages etc in the apropriate directory .
    or is it advisable to explain it to the user how to go about it in tht user manual.
    and would also like to know that if i install the JVM will the path for the java.exe be set
    or will i have to set the path explicitly from the "batch file" so that the user can run the application without and problem just by running the java command followed by filename from the command prompt.

    hi,
    I have windows and I use it.
    The only problem with the free edition is that you can only create 1 launcher and that during the installation you get 1 popup showing that the installer was created with an unregistered version.
    Stijn

  • How to set path to run a Java program?

    my pc os is win2000 service pack 3.
    cpu is celoron 667mhz
    256 pc133 sdram
    i have done the setting b4 run a java program but no any effect.
    setting as below:
    set path=c:\j2sdk1.4.1_01\bin
    set classpath=c:\j2sdk1.4.1_01\lib
    my java file is store in C:\Java, file name is HelloWorld.java, so when i type:
    C:\>
    C:\>Java\javac HelloWorld.java
    (the screen show me : java\javac not internal or external........")
    and i try again as follow:
    C:>
    C:>\Java>javac HelloWorld.java
    (the screen show : Exception in thread "main" java.lang.NoClassDefFoundError:HelloWorld/java)
    i cant do anymore, who can help me?

    you need to put the CLASSPATH to dir: c:\j2sdk1.4.1_01
    and also to the directory you are working
    For example, you are working in "C:\Myclasses". You need to put:
    set CLASSPATH = C:\j2sk1.4.1_01;C:\Myclasses;
    if you don't put your working directory, java doesn't find your classes
    Try it and luck!

  • Setting Path variable in Win XP Pro

    Hello,
    I have installed Java SDK 1.3.0_02 on Windows XP professional.
    I have set my path to:
    %SystemRoot%\system32; %SystemRoot%; %SystemRoot%\system32\WBEM;
    %SystemRoot%; %SystemRoot%\system32\WBEM; C:\Program Files\Common
    Files\Adaptec Shared\System; %Java_Home%\bin; %Java_Home%; %Tomcat_Home%;
    where %JAVA_HOME% refers to C:\jdk1.3.0_02.
    I get the following error upon trying to use 'javac' in the DOS command
    prompt:
    'javac' is not recognized as an internal or external command, operable
    program or batch file
    According to the instructions at
    <http://java.sun.com/j2se/1.3/install-windows.html#Environment> I have done
    all I can. Also, according to this article I should not have to set a
    classpath variable. Should I set a classpath variable?
    Here are some conditions I cannot figure out:
    1) When I use the 'java' command with any switches (such as -version) I get
    a proper response.
    2) When I type on the command line "set path=C:\jdk1.3.0_02" and then try
    "javac" command it works. This happens only while the command window is
    opened. If it is closed and reopened I will have to do it again. This should
    not be required.
    3) When I navigate to the "C:\jdk1.3.0_02\bin" directory and try using the
    "javac" command it works fine.
    4) Everytime I use the 'autoexec' command in the C: root directory I get an
    old version of the path variable without my recent path settings.
    What do I need to do to simply open a command prompt and compile Java code?
    It seems to work fine on other installations. I want to be able to use
    'javac' from any directory without referencing in the command line the
    directory of 'javac'.
    My main question is how do I set the path variable so it permanently stays in
    Windows XP Pro? What is the simplist way to do this?
    Should it be set in the environmental variables section under 'My Computer'? Should it be set in DOS? Should it be set in 'autoexec.syd' in the C: root directory (there is not autoexec.bat)? Someone mentioned to set the
    Sincerley,
    Chris

    From the command prompt echo your classpath (echo %classpath%) and see what displays. If it's not the one from your environment variables, then something else is getting it's dirty hands in the way.
    You may want to take a look through your autoexec.bat and remove any lines that set the path variable. Leave it to your windows environment settings to do it for you.

  • How to set BPEL classpath(urgent)

    Hi
    I Want to set the classpath of the BPEL server with a jar file.
    I have already posted a question on this issue.But didnt get any reply.
    I have mysql jar file which is needed for mysql database connection.In the jdeveloper project settings I am adding the classpath of the library.But when i run my BPEL process i am getting classNotFoundException.Probably when BPEL server starts it sets some classpath.I think i need to update the classpath entry and put my jar file path there.
    And one more thing i am not using Database Adapter rather i am using java class to connect to the database.And the java class is called from BPEL process using <bpelx activity.
    Can anyone help me how to do this.

    Hi,
    I found out the way we can set the classpath.
    In C:\OraBPELPM_1\integration\orabpel\bin directory edit obsetenv.bat file and add ur class files there.
    Thanks

  • How can i set the classpath??

    CAN ANYONE PLEASE HELP ME HOW TO SET THE CLASSPATH IN WINDOWS ME ,WHAT IS THE RIGHT CODE TO SET THE CLASSPATH I AM USING JDK1.3 VERSION.
    THANK YOU VERY MUCH
    ERICK LUCCIO

    Try this way Start->Program->System tools-> System Summary>startup .Try to find the variable classpath,make sure the path is correct.The classpath contain the the *.java & *.class you save. I'm also new in java .This path & classpath question is so trouble to me .Now i'm running jdk1.3.1_2 in WINME ,WINNT AND WIN2000 IN no problem.........

  • I can't set my classpath to compile serlets any help?

    I don't understand I'm doing it the way my book says to do it but I can't for the life of me set a freaking class path for my tomcat server so I can compile my serlets here's how it says to do it
    C:\Documents and Settings\Compaq_Owner\Desktop>javac -classpath C:\Program Files\Apache Software Foundation\Tomca
    t 5.0\common\lib\servlet-api.jar
    Can anyone tell me what the hell I'm doing wrong any help is greatly appreciated thanks

    Ok I think I get what your saying but couls someone show me the syntax where to include the source files at and how here's what I did but it couldn't read the file so I'm guessing I'm not putting it in right and also is there a way to permanently set the classpath so I won't have to go through this everytime I want to compile java servlet files?
    C:\Documents and Settings\Compaq_Owner\Desktop>javac -classpath "C:\Program Files\Apache Software Foundation\Tomc
    at 5.0\common\lib\servlet-api.jar" "C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\jhtp6\WEB-INF\
    classes\WlcomeServlet.java"
    error: cannot read: C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\jhtp6\WEB-INF\classes\WlcomeSe
    rvlet.java
    1 error

  • How to set the classpath for external .jar files after importing?

    Hi techs,
    How to set the classpath in WSAD5.1.2 after importing the .jar file to the WEB-INF/lib folder.
    urgent

    I got it.
    after importing the jar file to the perspective,we need to right click on project name, go to proprties,
    goto java build path,
    there we need to include the external jar files.

  • Setting Custom CLASSPATH in BPEL

    I want to know How to add classpath to BPEL PM. we have proprietory java packages and jar files( there are huge) that are located in a different location but the same middleware linux server where BPEL s installed. I have developed BPEL proceess (which is using bplex:java code and imports proprietory packages) in Jdeveloper which compiles fine as I have added all these packages/jar files to project library.
    However, when I deploy the bpel process to server. It is unable to find the classpath. I came to know that I have 2 options fo rthis to work
    1. Add all these jars and packages in the BPEL-INF dir
    2. Copy all the Jars and packages to orabpel/system/classes in server
    Option 1 is very inefficient as these jars/libs are huge. we have many BPEL processes to develop
    Option 2 is also not a viable solution as there will be duplicate copies of classes and there is lot of maintenance involved to sync there custom jars/libs.
    Is there any I can include our proprietory classes in BPEL global classpath?
    Please help. We are running on BPEL 10.1.2.0.2

    What about the documentation:
    http://download-uk.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/appx_ref.htm#CIABBDAE
    1. Add the files into the BPEL client bpelc CLASSPATH:
    1. Open SOA_Oracle_Home\bpel\bin\obsetenv.bat. For UNIX operating systems, the file is named obsetenv.sh.
    2. Edit the file as follows:
    @REM set MY_CLASSES_DIR=%CLASSPATH%
    set MY_CLASSES_DIR=%OB_HOME%\system\classes
    set MY_CLASSPATH=%MY_CLASSES_DIR%;your_jar_files
    2. Add the files into the Oracle BPEL Server bpelc CLASSPATH in either of two ways:
    1. Open SOA_Oracle_Home\bpel\domains\default\config\domain.xml (if the default domain is being used).
    2. Edit the file as follows:
    <property id="bpelcClasspath">
    <name>BPEL process compiler classpath</name>
    <value>your_jar_files;...</value>
    <comment>...</comment>
    </property>
    3. Restart Oracle BPEL Server.
    or
    1. Go to Manage BPEL Domain > Configuration on Oracle BPEL Control.
    2. Go to the bpelcClasspath property.
    3. Enter your_jar_files; in the Value field.
    4. Click Apply.
    5. Restart Oracle BPEL Server.
    3. Add the files into the Oracle Application Server CLASSPATH:
    1. Open application.xml, which is in SOA_Oracle_Home\j2ee\home\config\
    2. Edit the file as follows:
    <library path=your_jar_files/>
    <library path="C:\Ora_Home\bpel\system\classes"/>

  • Set system classpath using java program??

    Hi,
    I want to set the System classpath using java program. Can somebody please tell how to do this.
    Prashant

    but this will set the classpath for that particular JVM only.
    Isn't it??? I want that of SYSTEM so that user can access that class path from any JVM instance.
    Prashant

  • How to set the classpath in CVM?

    Hi everybody,
    experimenting with the J2ME Personal Profile Runtime Environment on a Linux PC I wonder how to set the classpath. The command line options only allow me to set the bootclasspath.
    My original problems deals with determining the codebase for a class that is contained in a jar.
    1) If I put this jar into the bootclasspath, that class is found and can be loaded, but the codebase (retrieved using class.getProtectionDomain().getCodeSource) is NULL.
    2) If I put it into the classpath by using the command line option -Djava.class.path=... the class cannot be found by the ClassLoader.
    3) If I put the jar into both, the classpath and the bootclasspath, the latter one is applied and result 1) shows up.
    Any idea how to work around this?

    @see http://forum.java.sun.com/thread.jsp?forum=8&thread=410868

  • Setting Up CLASSPATH variable

    Dears,
    In PI 7.1 we are getting one error:
    We are getting an u201CSAPClassNotFoundException:u201D. The reason for this is as I got we need to set the classpath in the PI Server.
    Please do as below:
    The following is an example of the CLASSPATH statement that is used for a Unix/Linux application:
    CLASSPATH =.:/home/usr1/mssqlserverjdbc/Driver/sqljdbc_2.0/enu/sqljdbc.jar
    Please suggest how can I set this path on AIX ,Is it a env variable.If yes then as I am getting aftre setting ones and logging out this variable will get dissaper.
    So please suggest how can i set this path.
    SHivam

    Hi,
    Where you are facing problem?? r u facing problem when you using JDBC Communication Chanels??
    Regards,
    Raj

  • Path, classpath, java build path???

    I am happy with what path and classpath does but what is java build path for? could someone point me in the direction of where I can find more info?

    cool but the IDE also had a place where you could set the classpath. so is the java build path just like an extra way of setting up classes for different projects where the classpath in the IDE is used by all projects?

Maybe you are looking for

  • How do I transfer from Microsoft word document to my Ipad?

    How do I transfer a document in Microsoft Word on my computer to my Ipad?

  • Report Painter - Urgent

    Dear All, I am creating a form to be used in report painter with the following: Transaction Code : FSI4 / FGI4 Library                : Financial Statement Key figures / Reporting for Table FAGLFLEXT In case of both the libraries mentioned above, we

  • OBIEE 11.1.1.3 Dowload?

    Hi All, Can anyone please let me know the location for OBIEE 11.1.1.3 download for Windows 32 bit. I searched on the internet but I could not get the same version. The link directs me to 11.1.1.5 version Pointers would be highly helpful

  • JDBC 2.0?

    Do Oracle JDBC drivers (thick and thin external drivers) support full JDBC 2.0 specification? The specific functionality that we are looking for is a "meta-data" option that is being used in an open source driver against Postgres. thanks,

  • Problem with Web Host - Help please.

    I moved our main site to 'Hostmonster'. Trying to set up forms. Some of the forms our non-profit hosts send information from people with complaints - to Federal agencies that have a strict criteria for accepting email information (must originate from