Setting up Classpath on Solaris - URGENT

Hi
I am try to setup the Classpath on my solaris box. Here is what i am doing
"CLASSPATH=/usr/tomcat/common/lib/jse.jar" (file exists on this folder)
"export CLASSPATH"
If i say "set" I can see Classpath=..... on the set list
if i compile the code like this
"javac -classpath jse.jar:. Example1.java"
my java code not able to get the class files inside the jse.jar.
Any Ideas?
TIA
-SN

Where is the sample file in relation to the current directory where you execute this command? Where is the jse.jar? Is the Sample.java class in a package?
No one can help you without those pieces of information nor will you be able to get it to work without adjusting your command to them.

Similar Messages

  • How do you set classpath on solaris ?

    where am i suppose to set my classpath (.login or .cshrc) ?
    are you suppose to set the path to the bin location or the lib location where the rt.jar file is or the .class.zip files are?
    i have version 1.1.6 on solaris and have tried the following but it's not working .
    setenv CLASSPATH /pkg/java/usr/lib/

    This may be helpful. You can use install anywhere which is a free download and it will set the cp for you automatically.

  • 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

  • Problem in classpath setting!!please help urgent

    hi,
    i am using BEA weblogic server 9.0.i created a new domain names servletproj.i have created directory webapp under applications dir.
    i.e C:\bea\user_projects\domains\servletproj\applications\webapp
    i have created a directory srtucture as webapp\WEB-INF\web.xml
    and webapp\WEB-INF\classes\HelloClientServlet.class
    i am able to start and shut down the server.i compiled the servlet program successfully.
    but i want to run the program .i don't know how to set the classpath and path variables .please help me.please explain in simple steps.i would like to set the path in command line.
    bye.

    Hi Kristoper,
    No..that Vo is based on some EO..why i am using the row.setAttribute() is...the bid number is coming from some other page...and i need to insert it in table..
    and except the bid number..other values are coming from the page...
    Thank you

  • I am unable to set the classpath from unix shell script

    ) I am new to java, provide me the solution to my problem, as it is urgent
    I am unable to execute shell script on unix machine, the code is given below:
    Basically it is not setting the classpath
    dbUpload .java is astand alone java program to retrieve the report instance statistics from crystal server
    Created a jar file from dbUpload.java as
    Jar �cvf dbUpload.jar dbUpload.class
    Here is mycode(script.sh)
    CLASSPATH=/u01/CrystalList/cecore.jar:${CLASSPATH}:
    CLASSPATH=${CLASSPATH}:/u01/CrystalList/cereports.jar:
    CLASSPATH=${CLASSPATH}:/u01/CrystalList/dbUpload.jar:
    Export CLASSPATH
    Echo ${CLASSPATH}
    Java dbUpload

    venkat123,
    if the code you posted is the original code of your script - it has some misspellings. Please try this one - it works for me both on solaris and linux.
    #! /bin/bash
    CLASSPATH=/u01/CrystalList/cecore.jar:$CLASSPATH
    CLASSPATH=$CLASSPATH:/u01/CrystalList/cereports.jar
    CLASSPATH=$CLASSPATH:/u01/CrystalList/dbUpload.jar
    export CLASSPATH
    echo $CLASSPATH
    java dbUpload

  • 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.

  • Classpath on solaris

    I've got the JRE and SDK here.
    - /usr/j2se
    - /usr/jdk/latest -> /usr/jdk/jdk1.5.0_14
    My working directory is here:
    - /iwenv/iw-home/custom/scripts/JCA
    And it contains (non-exclusive) the following files:
    - dom4j-1.6.1.jar
    - JCA.jar
    - xmlimport.sh
    Aparently my classpath and java_home was empty on my Solaris. (SunOS emsss4b4 5.10 Generic_127127-11 sun4u sparc SUNW,Sun-Fire-V490)
    So I set it to
    $ export JAVA_HOME=/usr/jdk/latest
    $ export CLASSPATH=.:/usr/jdk/latest/lib:/usr/jdk/latest/jre/lib:/usr/j2se/lib:/usr/j2se/jre/lib
    So far so good right ?
    Upon running the following command:
    $ java -jar JCA.jar
    I receive the following error:
    - Exception in thread "main" java.lang.NoClassDefFoundError: org/dom4j/Element
    The JCA jar should (when working) convert the XML to an updated format, but that is no matter to you :)
    So it comes down to this, for some reason java cannot find the Element or properly load it. I tried many variations and combinations on the classpath and java_home, as well as giving a -cp argument when running the jar file.
    A side question here: I couldn't find a good explaination of the difference between NoClassFoundError and NoClassDefFoundError, anyone can put it in clear words ?
    Any reply is much appreciated,
    Sincerely,
    Dieter

    Moeriki wrote:
    Thanks to your tips I found a way to do it.
    $ java -cp JCA.jar:dom4j-1.6.1.jar:jaxen.jar com.bgc.ecm.jca.xml.XmlConverter
    That does the trick!
    Thanks a lot for your help,
    DieterYes, it does, as was suggested.
    masijade. wrote:
    @OP either modify the [manifest file|http://java.sun.com/docs/books/tutorial/deployment/jar/manifestindex.html] properly, or add your jar to the classpath and designate the main class on the command line.Edit: And, properly modifying the manifest, meant, of course, also properly setting the classpath in the manifest file.
    BIJ001 wrote:
    You can define the classpath inside the jar (and include the dependencies),
    or invoke without the -jar option wiht only classpath and explicitly giving the starting class.

  • CLASSPATH on Solaris 2.6

    I've been on Linux too long.
    Can someone tell me how to set PATH and CLASSPATH on Solaris
    I tried appending to the current path:
    PATH= $PATH:/usr/java/bin
    and I get the error message "Variable Syntax"
    It was not appended to the current path.
    Same in CLASSPATH
    THX

    Depends on what shell you're using. If you're in csh, for example, you should be using "setenv" instead of the syntax you just listed.

  • How I can set up CLASSPATH and JAVA_HOME and change default JAVA_HOME

    Hi all!
    I am new in Solaris world.
    I have installed jdk1.3.1 for Solaris.
    But default java version is 1.2.1.
    How can I set up CLASSPATH and JAVA_HOME.
    How I can change default setting.
    I need to know a name of configuration file and where can I find it?
    default java

    See code sample 3 at http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/helloweb.html
    See also, the selection components row in the table under http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/helloweb.html
    It says
    One way to preselect items is to call setSelectedValue(Object[]) or setSelectedValue(Object) from the prerender() method. You pass in the return values of the items that you want preselected. Be sure to verify that getSelected() returns null before setting the default options, or you will overwrite the user's selections on a post-back.

  • 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 the CLASSPATH in Unix Server

    Hi, everyone~
    Do anyone noe how to set the CLASSPATH in the hp-ux server? I tried the setenv CLASSPATH, but not working.. I think should use export. But my jsp pages still cannot working, dunnoe y?
    I wonder is the hp-ux support jsp and servlet or not?
    In order to let the jsp and servlet to run properly in the unix server, what kinds of steps should taken ?
    Hope somemore who experience with this situation b4 can give me some guidance.. Thanks~~
    regards,
    tzeyik

    Tomcat ignores any and all CLASSPATH environment variables. Even if you could figure out how to set it, Tomcat wouldn't use it.
    Better to learn how Tomcat's CLASSPATH works and how to deploy Web apps properly. - MOD

  • Novice Trying to Set The CLASSPATH Variable

    I am trying to compile a file (which can be downloaded at http://java.sun.com/docs/books/tutorial/getStarted/QandE/FirstClass.java). Despite being able to successfully compile several other files, this particular one will not compile. According to my JAVA Tutorial book, the problem may lie in the CLASSPATH variable, but I am having a great deal of trouble trying to set/understand it. My operating system is WINDOWS 2000. PLEASE HELP!!!

    in win 2000, the classpath can be set by the following process.
    Right Click My Computer icon and click on properties.
    (This can be done by going to the Control Panel and Double Clicking the System icon too).
    Once you have the properties window of the system click on the 'Advanced' tab.
    There is a button called 'Environment variables'.Click on it.
    You will have a part called 'System Variables' there.
    Here there is an entry called Classpath. Just add the entry of what you want to add to the classpath, separating each entry with a ';' semicolon as mentioned there and click on the Set button.
    That should set the classpath.If that does not take effect immediately, restart the system and it will take effect.
    Tell me if it worx.
    All the best. Bye!
    Cheers,
    Win!

  • 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.........

  • How to set a CLASSPATH in JBuilder8

    I know it's probably a really easy answer or an incredibly stupid question but how do you set a classpath using JBuilder8 I'm trying to run a web-service and I need no access "axis jar files" I could really do with some help
    thanks
    "be wildered IT intern"

    Hello and thank's ever so much for your help sadly It still won't co-operate at this stage I can only beg for help it's vtal I have this running today!!!
    so this is the main part of the code thats causing problems
    package samples.userguide.example2 ;
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import org.apache.axis.encoding.XMLType;
    import org.apache.axis.utils.Options;
    import javax.xml.rpc.ParameterMode;
    I've added the libraries and this is what the window shows :
    project project properties _ libraries required
    Axis
    Apache Soap
    Xerces
    Ant
    JDK 1.4.1-b21
    When I try to run anything I get the following errors
    Erreurs
    Classe org.apache.axis.client.Call non accessible ; fichier org/apache/axis/client/Call.class introuvable � la ligne 3
    Classe org.apache.axis.client.Service non accessible ; fichier org/apache/axis/client/Service.class introuvable � la ligne 4
    Classe org.apache.axis.encoding.XMLType non accessible ; fichier org/apache/axis/encoding/XMLType.class introuvable � la ligne 5
    Classe org.apache.axis.utils.Options non accessible ; fichier org/apache/axis/utils/Options.class introuvable � la ligne 6
    Classe javax.xml.rpc.ParameterMode non accessible ; fichier javax/xml/rpc/ParameterMode.class introuvable � la ligne 7
    Classe Options introuvable dans classe samples.userguide.example2.CalcClient � la ligne 12
    Classe Options introuvable dans classe samples.userguide.example2.CalcClient � la ligne 12
    Classe Service introuvable dans classe samples.userguide.example2.CalcClient � la ligne 33
    Classe Service introuvable dans classe samples.userguide.example2.CalcClient � la ligne 33
    Classe Call introuvable dans classe samples.userguide.example2.CalcClient � la ligne 34
    Classe Call introuvable dans classe samples.userguide.example2.CalcClient � la ligne 34
    Variable XMLType introuvable dans classe samples.userguide.example2.CalcClient � la ligne 38
    Variable ParameterMode introuvable dans classe samples.userguide.example2.CalcClient � la ligne 38
    Variable XMLType introuvable dans classe samples.userguide.example2.CalcClient � la ligne 39
    Variable ParameterMode introuvable dans classe samples.userguide.example2.CalcClient � la ligne 39
    Variable XMLType introuvable dans classe samples.userguide.example2.CalcClient � la ligne 40
    Imports
    CalcClient
    CalcClient()
    main(String[] args)

  • 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

Maybe you are looking for

  • How to make Page View Mode user dependent?

    Greetings! In our company there are a few developers working with Apex. Now some prefer the new "Tree View"-view on the page layout, I prefer the old "Component View" and often each one has to switch back to his own setting, because someone else chan

  • Add ability to use raw data in the Histogram and clipping indicators

    I have posted this as an ACR and Lightroom Feature Request at the Photoshop Family site. http://feedback.photoshop.com/photoshop_family/topics/raw_data_histogram_display_lightroom _and_adobe_camera_raw?rfm=1 It was suggested I also post it here to fo

  • Power Loss

    When the AC adapter is plugged, in and the macbook pro is on, it says most of the time that I have 97% battery charge and that the power source is the Power Adapter. When the plug is pulled the computer dies on me. In addition the computer wont turn

  • MS Access database limits which LabVIEW Supports

    MS Access database limits which LabVIEW Supports, When i fetch 10MB database,then LabVIEW shows some error. which i am attaching with this post. please guide me on this. Prashant Soni LabVIEW Engineer Attachments: 1.jpg ‏3001 KB

  • Calender in Oracle Forms

    I'm using Oracle Forms 10g, I have a date filed data type, how can I use the default calendar