Setting classpath in solaris

Hi,
I m new to solaris. I m not gettin how to set the class path in environment variables. Writing the class path every time before compilation & execution making me bore. & can I set anything like doskey(used in windows) in Solaris.
thanks & regards
chandu

Typically you set the path by modifying a file that is read by the command shell on startup.
Which file to modify depends on the shell that you use. On most shells you can find out the name of the shell by giving the command "echo $SHELL". Once you know the name of the command shell, check its man page by giving the command "man shellname", for example "man bash" or "man tcsh". Have a look at the section called "FILES" near the end of the manual page --- it will list files that are read at login, logout, etcetera. Then you put the command to set the path in one of the login or startup files.
There is no "doskey" for Unix because the shells are more advanced than the infamous "DOS prompt." They have the functionality provided by "doskey" built into 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.

  • Setting Classpath in linux

    Hi !! Can anyone help me in setting classpath in linux to run servlets/? I tried using this command..but didnt work
    export CLASSPATH="$CLASSPATH:/usr/share/tomcat5/server/lib/servlets-common.jar"
    Thanks
    Nive

    in ur autoexec.bat file write the following
    set PATH=C:\jdk1.5.0_04\bin;%PATH%
    set JAVA_HOME=C:\jdk1.5.0_04
    set
    CLASSPATH=.;C:\jakarta-tomcat-5.5.9\common\lib\servlet
    -api.jar;C:\jakarta-tomcat-5.5.9\common\lib\jsp-api.ja
    r;C:\Servlets+JSP;..;..\..;C:\jakarta-struts-1.2.4\lib
    \struts.jarThis response is meaningless. Principally because the OP specifically mentioned the use of LINUX. Not Windows.
    I've taken the advice of other forum users by avoiding a system level classpath variable. I define the classpath each time I compile and run. Working on Linux I tend to use command line argument files ( http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/javac.html#commandlineargfile ) which eliminates the need to redefine the classpath each time I compile or run my classes and apps. But others may do things differently.
    Here is a website you might want to check out which pertains to setting the classpath on Solaris and Linux.
    http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/classpath.html

  • Clone dbtier error-- ERROR : Unable to set CLASSPATH

    i am setting a new clone of PROD server.i restored the backup from prod and now i ran
    perl adpreclone.pl dbTier
    Here is the error message-->
    perl adcfgclone.pl dbTier
    Enter the APPS password [APPS]:
    xxxx
    ERROR : Unable to set CLASSPATH
    /u02/lifedb/9.2.0/appsutil/clone/bin/../jlib/classes111.zip: is missing
    First Creating a new context file for the cloned system.
    The program is going to ask you for information about the new system:
    Error: can't find libjava.so.
    ERROR: context creation not completed successfully.
    Please check /tmp/adcfgclone_1376.err file for errors
    The err file does not have anything.
    I added /u02/lifedb/9.2.0/jdbc/lib to path and classpath. classpath is empty. I made cc,ar,ld,make,perl come in the path as well.
    Now how do i resolve the above err?
    Thanks

    If you want to migrate from Solaris to Linux, refer to:
    For the application tier:
    Note: 238276.1 - Migrating to Linux with Oracle Applications Release 11i
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=238276.1
    For the database tier:
    Note: 362205.1 - 10g Release 2 Export/Import Process for Oracle Applications Release 11i
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=362205.1
    Note: 331221.1 - 10g Export/Import Process for Oracle Applications Release 11i
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=331221.1
    Note: 230627.1 - Export/Import Process for Oracle Applications Release 11i Database Instances Using Oracle9i Enterprise Edition
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=230627.1

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

  • Trouble Setting Classpath on Windows XP

    I'm having trouble setting up a classpath on Windows XP for SDK1.3.1_04.
    I've tried Control Panel\Advanced\Environment Variables\System Variables. There was a Path variable present, to which I've added:
    c:\jdk1.3.1_04\bin;
    There wasn't a Classpath variable present though. I've tried adding it myself in System Variables as follows:
    Variable name: Classpath
    Variable value: set classpath=.;
    But no joy. When I run "set" from the command prompt, there's no classpath present.
    I'd appreciate any help.
    Cheers.

    Hi,
    I am running on XP (unfortunately), but also win2000 and win98.
    Setting up the classpath is not a problem, although if you are logged in as root, then it does not always show correctly.
    Try logging back in as yourself and then checking the classpah through the set command.
    Altrnatively, if this is not the problem, actualy try a reboot. which should not be necessary.
    best
    kev

  • How to set classpath from java class ??

    I have tried to use System.setProperty("java.class.path", "my class path string ") to set classpath dynamically. But it is not working. How to set it dynamically from java class ?? Thanks , gary

    Look into the java.net.URLClassLoader. You can't set the classpath after the fact but you can specify URL's that will checked when you try to load a class with that loader.

  • Problems in setting classpath in vista

    i am using Xp pro and Vista.
    My issue is that I am not able to set classpath in vista.
    i want to set classpath so that I can compile and run programs from different folder other than default one in which java is installed.
    Please help.

    i am using Xp pro and Vista.
    My issue is that I am not able to set classpath in
    vista.
    Don't worry about it. The CLASSPATH variable is best avoided anyway. Specify classpaths for particular apps on the command-line. Teh Docs show you how
    i want to set classpath so that I can compile and run
    programs from different folder other than default one
    in which java is installed.
    Please help.This suggests you're talking about PATH rather than classpath. Do you understand the difference?

  • How to set classpath and server configuration in eclipse

    i am new to eclipse tool pls anyone tell me to set classpath and serverconfiguration (tomcat) and sample program

    Get WTP [1], install it [2] and checkout one of the lot Eclipse WTP tutorials [3].
    [1] http://www.eclipse.org/webtools/
    [2] http://ftp.osuosl.org/pub/eclipse/technology/phoenix/demos/install-wtp/install-wtp.html
    [3] http://www.eclipse.org/webtools/community/tutorials/BuildJ2EEWebApp/BuildJ2EEWebApp.html

  • Package does not exist even though I set classpath right!

    Hi, my JSP got an error message saying "Package does not exist" at line
    <% import ="org.jfreechart.*"%>
    And I have put the myjar.jar file containing the above classes into blabla\WEB-INF\classes,(where blabla is my current working directory) and set my classpath= blabla\WEB-INF\classes
    It does not either if set classpath= blabla\WEB-INF\classes\myjar.jar
    Anybody could give suggestion? By the way I am using Tomcat.

    your .jar files should be in WEB-INF/lib

  • Help with setting classpath

    Hi All,
    I am new to servlets and JSP. I have a question regarding setting Classpath. My development directory structure is like this c:\..\desktop\java\project1\src\com\eg\web\e1.java. Servlet.jar file is in C:\Program Files\Apache Group\Tomcat 4.1\common\lib. I tried setting Classpath in windows 2000 using control panel=>System utility by this command
    SET CLASSPATH=.;c:\Program Files\Apache Group\Tomcat 4.1\common\lib\servlet.jar . I try to compile my program by going into the whole development directory structure C:\..\src\com\eg\web using javac e1.java. But I get the error "package javax.servlet does not exist". Can somebody help me resolve this?
    Thank You in advance
    Jaya

    Question 1: Are you using an IDE?
    [IDEs ignore the system classpath]
    Question 2: Did you try setting the classpath using the -cp option for javac, if you are not using an IDE?
    [you could also try to print the classpath on command line to check if it has taken effect]

  • Setting Classpath on windows platform

    Hello
    I was trying to set classpath of "D:\documentum\config" in my environment variable , i was doing it through command
    prompt , the command i was implementing was
    set classpath=D:\documentum\config;
    but the when i was closing command prompt , the environment variable in windows named as ClassPath was not updating
    i have also tried this command
    set classpath=%classpath%;D:\documentum\config;
    this also having the same result , so how can i set this property through command prompt
    Regards

    You can permanently set command line environmental variables through the advanced settings in Windows. You have to hunt around for it a bit, it is somewhere behind opening the right click properties of "my computer" (or whatever it is called in your flavor of Windows) and then choosing advanced. An "environmental variables" tab should be present there.
    BUT! I would not advise you to set a classpath variable unless you fully realize that is only to make your development life a bit easier when working on the command prompt. When making your application ready for deployment the classpath must be managed without the variable. A script could work, or packaging everything up as an executable jar. When you start to work with an IDE like Eclipse or Netbeans you don't need that variable at all any more.

  • Setting up a Solaris 10 system as a domain controller

    Hello everyone,
    I would like to set up my solaris 10 box as a domain controller, so my windows systems can recognize it as such in my lab.
    Any ideas on how this could be easily done?

    Edit /etc/sfw/smb.conf with the needed configuration [for a domain controller.|http://www.google.com/search?hl=en&q=setting+up+samba+as+a+domain+controller&aq=f&oq=&aqi=] . Make sure the services are active on boot (svcadm enable network/samba and svcadm enable network/wins ).

  • Setting classpath from the command prompt

    each time i try to set the classpath from the command prompt it is not always well done . can someone give a good format
    i.e set classpath = ;c:\document and settings\ luke

    each time i try to set the classpath from the command
    prompt it is not always well done . can someone give
    a good format
    i.e set classpath = ;c:\document and settings\ lukeThe best way is not doing it at all.
    Anyway, try:
    set classpath = ".;c:\document and settings\luke"

  • Setting classpath in netbeans ide5.0

    i don't know how to set classpath in netbeans ide5.0 for
    MySQL driver and its jar file.

    Then you should read the Netbeans documentation:
    http://www.netbeans.org/kb/50/using-netbeans/index.html

Maybe you are looking for

  • Passing String Array from Java to PL/SQL

    Hi, We are having couple of packages which have been written in PL/SQL . I would like to know how i can send arrays as input parameters from Java to any stored proc in Oracle. I am having Oracle 8i as the DB and am using Websphere RSA for deployment

  • Getting the blue screen of death when connecting iphone

    Hello, Suddenly, for no apparent reason, my laptop to which I have synced my Iphone for over a year is crashing when connecting my phone to sync. I have a 3gs running OS 4.3 and Itunes is up to date. When I first got the phone, I had to disable the b

  • End of the line for AW???

    I just wanted to share a few words (and frustrations.) Many moons ago when I was a student in university, I learned how to do basic word processing on Macs that were available to students in the computer lab. These were Mac computer that had been don

  • Image capture: begins overview scan on launch

    I use Image Capture to scan from my Canon multifunction printer (instead of using the bloated software Canon provides). When I launch Image Capture, it immediately starts scanning ("overview" scan).  Most of the time I scan, I use the document feeder

  • Photoshop CS6 and Photoshop CC

    What's the difference and do I need to install both?