Is it possible to set instance classpath using asadmin?

Hey all,
I have the exciting task (YAY for me) of creating an installer for our software onto the Sun ONE AS. Basically I give the end user a few input panels to enter the few arguments that I need and then I want my installer to perform all the rest of the deployment. I am stuck with using InstallShield! I have been using asadmin and it's been great so far. It performs everything the Web based admin tool does but quicker. The only problem I'm having is that when I go to deploy our ejb's I'm getting classnotfound exceptions. This is fair enough and makes sense. But I want to know is there anyway of using asadmin to add jars to an instances classpath? I can't seem to find info anywhere on how to do it? using the web based admin tool to do it is easy but have to avoid getting the end user to do this step...
Any answers/hints/tops anyone???
Cheers
Paul

You can use asadmin to change instance classpath by
using set subcommand and setting <server_name>.java-config.server-classpath attribute to the desired value (you can use get subcommand first to get the original path, append what you need and use set to modify it). Relevant admin guide URLs are:
http://docs.sun.com/source/816-7156-10/agsvrprf.html#1022664
http://docs.sun.com/source/816-7156-10/agcmdln.html
Hope this helps....

Similar Messages

  • Is it possible to change instance and use OEM ?

    We have 4 single DB instance in same oracle 11gr2 server on win2008R2.
    We will not use grid control because of lack of time, knowledge and customer approval.
    Is it possible to change instance and use OEM by changing ORACLE_UNQNAME variable or in any way ?

    840105 wrote:
    IF what EdStevens said is true,
    WHat environmental variable ,or othe settings shoud I set to start 4 different dbconsole and access those OEM in same server ?
    "IF" what I said is true???
    The same environment variables you set to start the database itself .....
    Here's the environment with no oracle-specific settings:
    oracle:$ env | grep ORA | sort
    PS1=\n\u:$ORACLE_SID$
    Now we set the environment for database 'orcl'
    oracle:$ . oraenv
    ORACLE_SID = [oracle] ? orcl
    The Oracle base for ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1 is /u01/app/oracle
    Now the environment looks like this:
    oracle:orcl$ env | grep ORA | sort
    ORACLE_BASE=/u01/app/oracle
    ORACLE_HOME=/u01/app/oracle/product/11.2.0/db_1
    ORACLE_SID=orcl
    PS1=\n\u:$ORACLE_SID$
    Start the dbcontrol
    oracle:orcl$ emctl start dbconsole
    Oracle Enterprise Manager 11g Database Control Release 11.2.0.1.0
    Copyright (c) 1996, 2009 Oracle Corporation.  All rights reserved.
    https://vblnxsrv01.vbdomain:1158/em/console/aboutApplication
    Starting Oracle Enterprise Manager 11g Database Control ........................... started.
    If Oracle would only provide documentation ... oh, wait!
    Getting Started with Database Administration
    Managing Oracle Enterprise Manager Database Control

  • 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

  • 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

  • Issue in setting java classpath using bash

    I tried creating a script file for executing my java code in my linux machine.Below is the script which i created.
    #!/bin/sh
    HOME=`pwd`
    JAVA_HOME=$HOME/jre
    CLASSES=$HOME/classes
    CLASS_PATH=$CLASSES/Testing.jar:$CLASSES/server/Server.jar
    "${JAVA_HOME}"/bin/java -cp "$CLASS_PATH" 'com.project.testing.Tester' '10000'It worked perfectly.But if i put this script in a directory containing spaces in its name, it is not working and it is throwing the below exception
    Exception in thread "main" java.lang.NoClassDefFoundError: com/project/testing/Tester
    So i modified the script to escape the spaces in the class path variable.Below is the modified script
    #!/bin/sh
    HOME=`pwd`
    JAVA_HOME=$HOME/jre
    CLASSES=$HOME/classes
    CLASS_PATH=$CLASSES/Testing.jar:$CLASSES/server/Server.jar
    CLASS_PATH=$(echo $CLASS_PATH | sed 's/ /\\ /g')
    "${JAVA_HOME}"/bin/java -cp "$CLASS_PATH" 'com.project.testing.Tester' '10000'But still i am getting the same exception.
    Please help me to solve this problem.

    julians wrote:
    >
    You think?? Why don't you just find out? The classpath is one of the system properties, so just write a Java program which simply writes all of the system properties to stdout. Then look at the system property which contains the classpath.
    Sorry you didn't understand my question.Your answer is irrelevant to my questionThen you should explain your question better, using something less totally useless than "not working".
    My question is I can read.
    It has nothing to do with bash.There is some issue with java in the way it treats the argument after -cp option.If i can find out why should i post it here?.No. Java isn't treating any arguments. Your shell (bash) is treating the arguments. If you think it's Java, then you should investigate that. Which is why I posted what I did. If you think it's irrelevant then it must not be Java causing the problem. Of course you didn't even try it. Time-waster.
    Please simulate this issue and respond to my postYou want me to buy a computer and install bash and try to reproduce your problem? Don't be ridiculous. Do your own work.

  • Setting the CLASSPATH from the JVM by a class

    Hy experts
    I have an application thats searching a jar file and have to access classes from this jar file.
    There are two ways to do this:
    1.
    Loading the jar file byte by byte and create the classes to load them into memory. This is the hard way.
    2.
    Setting the CLASSPATH variable in the running program! Thats the easy way! May how does it works?
    Is there any possiblity to set the classpath in a running application or only in the shell?
    Thanks for help
    konrad

    the classpath is readin when you run the JVM ie issue the 'java' command, the environment cant be altered to update a new classpath. However, why not just put the files you wish to load at runtime within the current classpath you've setup. If you use the System.loadLibrary(), you should be able to pick up the classes you wish to readin at run time via this approach.
    good luck
    rob

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

  • Setting classpath using batch, but

    i am really confused now,i have my own java application, i convert it into exe and now it is located in C:\myprogram folder,
    this program is associated with the .txt file
    thats the reason why i conveert it into an exe
    but the problem is, when i double click on the txt file, i got an error "noclassdeffounderror: MYPROGRAM"( ihave associted txt with my program )
    that happens only when i double click on the txt file outside the bin directory
    if txt file i clicked is in the bin dir, it will be launched without error
    do i need to do it using batch(set the classpath)
    but since my program is an exe how should i write in the batch??
    so, can anyone help me??thansk
    Edited by: E.D.-inc on Sep 28, 2007 1:18 PM
    Edited by: E.D.-inc on Sep 28, 2007 1:44 PM

    So you are having an error when you run a native application. As I said before this is not a Java question.
    Possibly whatever tool you used to create the .exe file is faulty or was misused in some way. The makers of that tool would be the people to ask.
    Possibly the .exe you created requires some particular configuration of your machine (system variables and the like). Again, consult the documentation of whatever tool you used to create the .exe, or ask whoever supports it.
    It seems to me a bit overly complicated to create an .exe instead of arranging for a Java application to run in response to the text files being "opened". There were detailed instructions (for Windows) posted on this site within the last day or so saying how this is done. You might like to search for them.

  • Hi I have two questions. I am using NAS 4.1 and was wondering is it possible to set a different session timeout for different users? How is the session timeout set? Thanks, YS

     

    <i>I am using NAS 4.1 and was wondering is it possible to set a different session timeout for different users?</i>
    Um, there is no such thing as NAS4.1.
    I'm assuming that you mean NAS4.0 (maybe NAS4.0sp1?). If so, then the session timeouts are specified in the session section of the NTV configuration files.
    AFAIK, you can specify session timeouts on a per user basis.

  • My daughter and I have separate iCloud accounts set up on out desktop PCs and our iPhones and iPads. We want to share the usage of a Win 8 laptop and will log in using using separate user accounts. Is it possible to set up our own iCloud accounts?

    My daughter and I have separate iCloud accounts set up on out desktop PCs and our iPhones and iPads. We want to share the usage of a Win 8 laptop and will log in using using separate user accounts. Is it possible to set up our own iCloud accounts in each of those separate user accounts?

    No it is not possible.  Content purchased from the iTunes Store is permanently tied to the account from which it was originally purchased, and Apple does not provide a way to change it.

  • Is it possible to set a song in my itunes library as a ringtone straight from my phone, without having to use my computer?

    Is it possible to set a song in my itunes library as a ringtone straight from my phone, without having to use my computer?

    Hi,
    According to your post, my understanding is that you want to make the Workflow Tasks work out with a pre-determined due date that it's 2 days from today in your client list workflow.
    I recommend that you can create this client list workflow as below in your environment.
    Then, you can go to “Start Options” to check “Start workflow automatically when an item is created”, publish this workflow and test if it works.
    When an new item is added in the client list, its corresponding Workflow Task is shown as below:
    Best Regards,
    Yumi Fu

  • Is it possible to set up a computer that uses the Sprint...

    Is it possible to set up a computer that uses the Sprint Pantech PX-500 (Mobile Broadband Card) to share its connection via Wi-fi? How would I set this up on a WRT54G?
    Thanks so much!
    -B

    If you haven't got the router then get WRT54G3G. If you already have a router then use it as a switch/access point, and use windows internet connection sharing or proxy server to share internet.

  • Setting the Classpath of a VM launched using JDI

    I using VirtualMachineManager to get a LauchingConnector and fire off a new VM.
    It seems that there should be some way of me setting the classpath for this new VM.
    In general I'd like a list of the options that I can put in that argument map.

    In J2SE 5.0, jdb has a new option that will list the available connectors and the arguments that can be passed to them EG:
    jdb -listconnectors
    Available connectors are:
    Connector: com.sun.jdi.CommandLineLaunch Transport: dt_socket
    description: Launches target using Sun Java VM command line and attaches to it
    Argument: home Default value: /net/foo/p/jdk/1.5.0/jre
    description: Home directory of the SDK or runtime environment used to launch the application
    Argument: options (no default)
    description: Launched VM options
    Required Argument: main (no default)
    description: Main class and arguments, or if -jar is an option, the main jar file and arguments
    Argument: suspend Default value: true
    description: All threads will be suspended before execution of main
    Required Argument: quote Default value: "
    description: Character used to combine space-delimited text into a single command line argument
    Required Argument: vmexec Default value: java
    description: Name of the Java VM launcher
    This means that you would want to put "-classpath ......" into the 'options' argument.
    Hope this helps

  • How to set the Classpath of the Manifest to use jars which are included?

    Hi,
    I want to set the classpath for jars which are included in another jar, wihich I want to execute. At the moment I unzip them and include them afterwards, but there should be a more handy way to do this.
    Please post an example of a Classpath declaration for the Manifest, assuming the jars are at the top level of the archive.
    If it shouldn't be possible do that, please explain me why.
    Perhaps it might be diffuclt for java to decide if a classpath location starts with the current-dir or the current-jar, but I assume that there is a special syntax to sort out such probems.
    Thanks a lot in advance.
    Greetings Michael

    Java's classloader doe not support jars within jars. There are some 3rd part solutions, one is "one jar" at sourceforge. Search for others.

  • How to get and set graph propertis using UIGraph instance

    Hi,
    I have added barGraph graph component on *.jspx and also added buttons like "Get properties" and "Set Properties". On "Get Properties" button action, I want to get all the attrributes of barGraph using UIGraph and also want to get "getGroupAttributes" and "getSeriesAttributes".
    I saw examples on gettiing the Group attributes using the click event on the graph.
    Is there any way to get the attributes on some button action like "Get Properties" without any click event on graph?
    Thanks,
    Gopal

    [Copying the answer here from the internal forum discussion so that other customers can benefit]
    Hi Gopal,
    You can call getValue on the UIGraph to get the GraphDataModel, then to use the data access APIs from there.
    Once you get the DataAccess from the GraphDataModel, you can call getMemberMetadata to get the members on the row and column edge.
    This method is documented in the interface CDFDataAccess:
    http://docs.oracle.com/cd/E16162_01/apirefs.1112/e17492/oracle/dss/util/CDFDataAccess.html#getMemberMetadata%28int,%20int,%20int,%20java.lang.String%29
    You should use the following constants for the series and groups:
    DataDirector.COLUMN_EDGE=groups
    DataDirector.ROW_EDGE=series
    Use the method getEdgeExtent to find out how many members are in the series and groups:
    http://docs.oracle.com/cd/E16162_01/apirefs.1112/e17492/oracle/dss/util/CDFDataAccess.html#getEdgeExtent%28int%29
    Method getLayerMetadata is the correct way to get the names of the layers, a.k.a "dimensions" displayed in the graph.
    DataAccess is used to read the data from the Graph. You set the data in the Graph by setting tabular data, using data binding by dragging and dropping from the data control palette, or by implementing a custom DataSource and setting it on the graph.
    http://docs.oracle.com/cd/E16162_01/apirefs.1112/e17492/oracle/dss/dataView/CommonDataview.html#setDataSource%28oracle.dss.util.DataSource%29
    However, implementing a custom data source is not trivial, and you should only use that approach if you can't use tabular data or regular binding against the available data controls.
    This doc chapter might help in understanding data source requirements for different Graph types:
    http://docs.oracle.com/cd/E16162_01/web.1112/e16181/dv_graph.htm#CEGBGCDG
    Hope this helps,
    Katia

Maybe you are looking for

  • Broadband drops 'out' more than 'in' - OpenReach a...

    First, forgive me if a similar problem has been posted; I've had to resort to a 2G O2 dongle & speeds are so bad that I can't search the forum.  For weeks (months?) now I've had terrible broadband connectivity - sometimes going for days without a con

  • Tax jurisdiction for taxinj vs taxinn procedure

    Hello, I am trying to configure CIN, and would like know how system will determine the tax jurisdiction for taxinn procedure. As if we use procedure taxinj then for tax code we can maintain the tax jurisdiction but if we use the procedure Taxinn then

  • Plan changing when using variables instead of constant

    Hi, I have a query, when run with the constant values uses a better plan. But when these constants are replaced with variables, plan is changing and taking much longer time to complete. I don't want the query to use a different plan when using the va

  • Update with correlated subquery

    Hi, I have the following SQL update statement: update temp_input_sms b set (b.provider_id,b.region_id)=      (select provider_id,region_id      from      select a.PROVIDER_ID,a.REGION_ID,row_number() over (order by fraud) rn      from icdm.smsc_looku

  • Trial license information

    Good morning, I know that this forum is to help out with technical related problems, but I have a problem relating to the expiration of the 30 day trial license. I've downloaded the 30 day trial version from the Macromedia website. Well it's been mor