Shorten environment variable path

I am installing Oracle database 10G on Windows XP. I am getting an error message saying 'The value of the environment variable path is more than 1023 characters.' How do I shorten this path, where do I go? thanks

My Computer ( right click) -> property -> Advance -> Environment Variable
Select patch and edit it , remove all not required paths
Virag

Similar Messages

  • This test checks whether the length of the environment variable "PATH" does not exceed the recommended length.

    when i am going to Install 11gR2 then thsi error shows how to solve it plz give me guidance
    This test checks whether the length of the environment variable "PATH" does not exceed the recommended length.
    Expected Value:     1023
    Actual Value:          0

    HELLO iSHAN SHAH
    JUST EXPLAIN US YOUR PROBLEM IN DEPTH.
    TELL US YOUR HARDWARE AND SOFTWARE CONFIGURATION.
    ALSO TELL US IN WHICH STEP OF INSTALLATION , THIS ERROR RAISED.
    THANKS
    HARSH SHAH

  • Environment variable path failed in oracle 11g installation

    hi all,
    i am reinstalling oracel 11g in my window 7 64 bit machine after i uninstalled it. however, i got an issue that is environment variable path failed in the installation process. this didn't happen when i firstly successfully installed oracle. how can i fix the issue? thanks in advance.
    regards,
    hong

    user571093 wrote:
    hi,
    the problem is i uninstalled oracle 11g in my windows 7 64 bit machine and then try to install it on my machine. during the prerequisite check stage, an error message popped up like this:
    environment variable: "PATH" failed
    This test checks whether the length of the environment variable "PATH" does not exceed the recommended length. (more details)
    Expected Value
     : 1023
    Actual Value
     : 1433
    so, what is the reason caused this problem and how to fix it. thanks in advance.
    hongI believe the error message is self-explanatory - assuming you you using a supported database and OS combination (which are unknown)
    environment variable: "PATH" failed+
    This test checks whether the length of the environment variable "PATH" does not exceed the recommended length.+
    Expected Value+
    *: 1023*
    Actual Value+
    *: 1433*
    Your PATH variable exceeds the limit of 1023 characters
    HTH
    Srini

  • Environnement variable PATH

    Hi all,
    I am installing 11g database in order to play with it. My OS is windows 7 premium edition, personnal PC and I am having that message:
    Environment variable: "PATH" - This test checks whether the length of the environment variable "PATH" does not exceed the recommended length.
    Valeur attendue
     : 1023
    Valeur réelle
     : 1558
     Liste des erreurs :
    PRVF-3929 : Adding the Oracle binary location to the PATH environment variable will exceed the OS length limit of [ "1023" ] for the variable on the node "DATAEBULLITION"  - Cause:  The installer needs to update the PATH environment variable to include the value "%ORACLE_HOME%/bin;". However, doing so will cause PATH to exceed the maximum allowable length that this operating system allows.  - Action:  Ensure that the sum of the lengths of your current PATH environment variable and that of "%ORACLE_HOME%/bin;" does not exceed the operating system limit. Restart the installer after correcting the setting for environment variable
    Is anyone could help me as I don't understand what is PATH and how to reinstall it ?
    THank you

    I found the answer by reading other user question.

  • Environment variable PATH and Sql*Plus

    Hi all,
    i have a problem with sqlplus.
    It might seem not to be able to read the path environment variable.
    I need to launch some sqls without typing their path (to put the path i should modify morre than 300 shell scripts), e.g.: @script.sql.
    My shell scripts are invoked by the database using java.
    Inside the shell scripts we have commands like "sqlplus -silent <login> @script.sql [parameters]"
    So if sqlplus is not able to read the PATH environment variable, the command hangs waiting for something to do without the chance to close it.(it is silent).
    I run RDBMS v8.1.7 on compaq tru64 Unix.
    Can someone help me??
    Thanks in advance.
    Marco - Milan, Italy

    Where do I set SQL*Plus SQLPATH variable??As every other unix environment variable - either in your profile or in your current shell whatever you like
    Is this the PATH where SQL*Plus searches for .sql
    files??SQL*Plus searches for your files in your current directory, and then the directories you specify with the SQLPATH environment variable.
    SQL*Plus searches this colon-separated list of directories in the order they are listed.

  • I am trying to install itunes 10 but error messages saying could not update the environment variable PATH and CLASSPATH appear. how can i fix this?

    this is really frustrating ive been googling for hours trying to find the solution! any help would be greatly appreciated. I have windows 7 and the newest gen ipod nano

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • Setting widows environment variable like "path "

    I want to set a new value for windows environment variable path. Is there any way to set change the varibale.

    You could also use ORA_FFI package to call Windows API function SetEnvironmentVariable. There is an example below.
    See also:
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/setenvironmentvariable.asp
    kernel_lhandle Ora_Ffi.Libhandletype;
    GetEnvironmentVariable_fhandle Ora_Ffi.Funchandletype;
    SetEnvironmentVariable_fhandle Ora_Ffi.Funchandletype;
    FUNCTION ff_GetEnvironmentVariable(
    fhandle Ora_Ffi.funchandletype,
    lpName varchar2,     -- address of environment variable name
    lpBuffer varchar2,     -- address of buffer for variable value
    nSize      pls_integer -- size of buffer, in characters
    ) RETURN pls_integer;
    PRAGMA interface( C, ff_GetEnvironmentVariable, 11265 );
    FUNCTION ff_SetEnvironmentVariable(
    fhandle Ora_Ffi.funchandletype,
    lpName varchar2,     -- address of environment variable name
    lpValue varchar2     -- address of variable value
    ) RETURN pls_integer;
    PRAGMA interface( C, ff_SetEnvironmentVariable, 11265 );
    function SetEnvironmentVariable(lpName varchar2, lpValue varchar2) return pls_integer IS
    BEGIN
    return ff_SetEnvironmentVariable( SetEnvironmentVariable_fhandle, lpName, lpValue );
    END;
    function GetEnvironmentVariable(
    lpName varchar2
    ) return varchar2 as
    lpBuffer char(2000);     -- address of buffer for variable value
    nSize      pls_integer; -- size of buffer, in characters
    res pls_integer;
    begin
    lpBuffer:='*';
    nSize:=2000-1;
    res:=ff_GetEnvironmentVariable(
    GetEnvironmentVariable_fhandle,
    lpName,
    lpBuffer,
    nSize );
    if res>0 then
    return substr( lpBuffer, 1, res );
    else
    return null;
    end if;
    end;
    -- Initialization
    /* Load the library */
    kernel_lhandle:=Ora_Ffi.Load_library
    ( '', 'kernel32.dll' );
    /* GetEnvironmentVariable */
    GetEnvironmentVariable_fhandle:=Ora_Ffi.Register_Function
    ( kernel_lhandle, 'GetEnvironmentVariableA', Ora_Ffi.C_Std );
    Ora_Ffi.Register_Parameter
    ( GetEnvironmentVariable_fhandle, Ora_Ffi.C_CHAR_PTR );
    Ora_Ffi.Register_Parameter
    ( GetEnvironmentVariable_fhandle, Ora_Ffi.C_CHAR_PTR );
    Ora_Ffi.Register_Parameter
    ( GetEnvironmentVariable_fhandle, Ora_Ffi.C_INT );
    Ora_Ffi.Register_Return
    ( GetEnvironmentVariable_fhandle, Ora_Ffi.C_INT );
    /* SetEnvironmentVariable */
    SetEnvironmentVariable_fhandle:=Ora_Ffi.Register_Function
    ( kernel_lhandle, 'SetEnvironmentVariableA', Ora_Ffi.C_Std );
    Ora_Ffi.Register_Parameter
    ( SetEnvironmentVariable_fhandle, Ora_Ffi.C_CHAR_PTR );
    Ora_Ffi.Register_Parameter
    ( SetEnvironmentVariable_fhandle, Ora_Ffi.C_CHAR_PTR );
    Ora_Ffi.Register_Return
    ( SetEnvironmentVariable_fhandle, Ora_Ffi.C_INT );
    To change the variable PATH you could use something like the following code:
    s:=dll_path||';'||WIN32.GetEnvironmentVariable( 'PATH' );
    res:=WIN32.SetEnvironmentVariable( 'PATH', s );

  • Error Message:PRVF-3929 - PATH environment variable.

    Hello,
    I am trying to install Oracle on my laptop and getting the following error message resulting into hault of installation.
    INFO: *********************************************
    INFO: Environment variable: "PATH": This test checks whether the length of the environment variable "PATH" does not exceed the recommended length.
    INFO: Severity:CRITICAL
    INFO: OverallStatus:VERIFICATION_FAILED
    INFO: -----------------------------------------------
    INFO: Verification Result for Node:Indrajit-PC
    INFO: Expected Value:1023
    INFO: Actual Value:1159
    INFO: Error Message:PRVF-3929 : Adding the Oracle binary location to the PATH environment variable will exceed the OS length limit of [ "1023" ] for the variable on the node "Indrajit-PC"
    INFO: Cause: The installer needs to update the PATH environment variable to include the value "%ORACLE_HOME%/bin;".
    However, doing so will cause PATH to exceed the maximum allowable length that this operating system allows.
    INFO: Action: Ensure that the sum of the lengths of your current PATH environment variable and that of
    "%ORACLE_HOME%/bin;" does not exceed the operating system limit.
    Restart the installer after correcting the setting for environment variable.
    Oracle Database Trying ton install - win64_11gR2
    MY PC CONFIGURATION:
    - Windows 7
    - 64 bit
    Can you please help me getting this solved please.

    C:\>Set
    ALLUSERSPROFILE=C:\ProgramData
    APPDATA=C:\Users\Indrajit\AppData\Roaming
    asl.log=Destination=file
    CLASSPATH=.;C:\Program Files (x86)\Java\jre6\lib\ext\QTJava.zip
    CommonProgramFiles=C:\Program Files\Common Files
    CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
    CommonProgramW6432=C:\Program Files\Common Files
    COMPUTERNAME=INDRAJIT-PC
    ComSpec=C:\Windows\system32\cmd.exe
    COPLIB=C:\Program Files (x86)\Teradata\Client\13.0\CLIv2\
    DataConnectorLibPath=C:\Program Files (x86)\Teradata\Client\13.0\bin
    FP_NO_HOST_CHECK=NO
    HOMEDRIVE=C:
    HOMEPATH=\Users\Indrajit
    JAVA_HOME=C:\Program Files\Java\jdk1.7.0
    LOCALAPPDATA=C:\Users\Indrajit\AppData\Local
    localtd=1
    LOGONSERVER=\\INDRAJIT-PC
    NUMBER_OF_PROCESSORS=4
    OS=Windows_NT
    Path=C:\Program Files (x86)\AXSMOD;C:\Program Files (x86)\Teradata\Client\13.0\A
    XSMOD\;C:\Program Files (x86)\Teradata\Client\13.0\bin;C:\Program Files (x86)\Te
    radata\Client\13.0\bin;C:\Program Files (x86)\Teradata\Client\13.0\CLIv2\;C:\Pro
    gram Files (x86)\Teradata\Client\13.0\ODBC Driver for Teradata\Lib;C:\Program Fi
    les\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Fil
    es\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\Syste
    m32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\ATI
    Technologies\ATI.ACE\Core-Static;c:\Program Files\WIDCOMM\Bluetooth Software\;c:
    \Program Files\WIDCOMM\Bluetooth Software\syswow64;;C:\Program Files\Dell\DW WLA
    N Card\Driver;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\
    QuickTime\QTSystem\;C:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;
    C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft
    SQL Server\100\DTS\Binn\;C:\Program Files\Java\jdk1.7.0\bin;C:\Program Files (x
    86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Teradata\Client\
    13.0\Shared ICU Libraries for Teradata\lib\;C:\Program Files (x86)\AXSMOD;
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
    PROCESSOR_ARCHITECTURE=AMD64
    PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 37 Stepping 5, GenuineIntel
    PROCESSOR_LEVEL=6
    PROCESSOR_REVISION=2505
    ProgramData=C:\ProgramData
    ProgramFiles=C:\Program Files
    ProgramFiles(x86)=C:\Program Files (x86)
    ProgramW6432=C:\Program Files
    PROMPT=$P$G
    PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
    PUBLIC=C:\Users\Public
    QTJAVA=C:\Program Files (x86)\Java\jre6\lib\ext\QTJava.zip
    SESSIONNAME=Console
    SystemDrive=C:
    SystemRoot=C:\Windows
    TEMP=C:\Users\Indrajit\AppData\Local\Temp
    TMP=C:\Users\Indrajit\AppData\Local\Temp
    USERDOMAIN=Indrajit-PC
    USERNAME=Indrajit
    USERPROFILE=C:\Users\Indrajit
    windir=C:\Windows

  • Failed to start up. Please set proper ESSBASEPATH environment variable.

    Hi,
    Recently we have upgraded the 7x to 11x version, Installation looks fine and were able to migrate the zero level data as well. But when i trying to run the Load scripts i am getting the below error
    **Failed to start up. Please set proper ESSBASEPATH environment variable.**
    Below is my environment details
    Setting Server specific environment Variables
    PATH=/usr/local/bin:/bin:/usr/bin:/apps/hyperion/products/Essbase/EssbaseServer/bin:/apps/hyperion/products/Essbase/EssbaseServer:.:/apps/hyperion/products/Essbase/EssbaseServer/bin:/apps/hyperion/products/Essbase/EssbaseServer:.
    ARBORPATH=/apps/hyperion/products/Essbase/EssbaseServer
    LD_LIBRARY_PATH=:/apps/hyperion/products/Essbase/EssbaseServer/bin:/apps/hyperion/products/Essbase/EssbaseServer/dlls:/apps/hyperion/products/Essbase/EssbaseServer/odbc/merant41/lib:/apps/hyperion/products/Essbase/EssbaseServer/bin:/apps/hyperion/products/Essbase/EssbaseServer/dlls:/apps/hyperion/products/Essbase/EssbaseServer/odbc/merant41/lib
    Can you please help me resolving this.

    You will also need an environment variable called ESSBASEPATH
    The value will be the same as ARBORPATH
    Though if you start essbase by using startEssbase.sh then it should pick up the env variables from /hyperion/products/Essbase/EssbaseServer/hyperionenv.doc
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • R12, Environment Variables on Windows, and OBIEE

    Dear Experts,
    I've managed to install R12 on Windows.
    Now, in the global environment variable, Path, the user Oracle has a number of directories in its default PATH, starting with the Oracle apps middle tier.
    C:\oapps\apps\tech_st\10.1.2\bin;     
    C:\oapps\apps\tech_st\10.1.2\jdk\jre\bin\classic;     
    C:\oapps\apps\tech_st\10.1.2\jdk\jre\bin;
    C:\oapps\apps\tech_st\10.1.2\jlib;     
    C:\oapps\apps\tech_st\10.1.3\bin;     
    C:\oapps\db\tech_st\11.1.0\bin;     
    C:\Windows\system32;     
    C:\Windows;     
    I notice that there are .cmd scripts that set the Path.
    This script sets the path to look in: c:\oapps\db
    cd C:\oapps\db\tech_st\11.1.0
    VIS_black.cmd
    echo %PATH%
    C:\oapps\db\tech_st\11.1.0\perl\5.8.3\bin\MSWin32-x86-multithread\;
    C:\oapps\db\tech_st\11.1.0\bin;
    This script sets the path to look in: c:\oapps\apps
    set PATH=""
    cd c:\oapps\apps\apps_st\appl
    VIS_black.cmd
    echo %PATH%
    C:\oapps\apps\apps_st\appl\au\12.0.0\bin;
    I'd like to install OBIEE on the same server. Obviously, I don't want any path conflicts. And, OBIEE uses a different version of java.
    1)
    Do all these Apps directories need to remain in the global PATH environment variable? Or, can the directories be removed from the path, and the scripts can be relied on to set the appropriate variables?
    Thanks a lot!

    if you want global settings (always present, even after reboot), you have to edit the autoexec.bat file, e..g
    SET CLASSPATH=c:\myclasses
    you can set environment variables temporarility in a DOS shell using the same command.
    if possible, you should avoid the CLASSPATH environment variable, and use the -cp or -classpath option for java and javac. This helps a lot to solve classpath confusions.

  • Using custom environment variables in the profile path

    Hi,
    I've created a custom environment variable that I've setup on two computers and the domain controllers.  I want to use this in the profile path in user properties.  However when users log in the variable is taken literally rather than being converted
    into the value.  For example
    \\fileserver\share\user\%myenv%.v2 is generated rather than \\fileserver\share\user\envdata.v2
    If I add in another built-in variable such as %OS%, that converts properly but any time I use a custom variable Windows just doesn't use it during the logon process.  If I open up Explorer and type in the path to my data as it should be it works fine
    so Windows is definitely picking up the variable, just not using during the logon process.  I can't seem to find a TechNet article that states custom variables can't be used in profile paths.
    Has anyone else come across this?
    Thanks,
    Tim

    Hi,
    Thanks for your post.
    So did you create the environment variable using group policy? If yes, i would suggest you use 'Create' and not 'Update', the variable is then held through reboots.
    Please refer to this blog, hope it will be helpful
    http://blogs.technet.com/b/askds/archive/2013/07/31/roaming-profile-compatibility-the-windows-7-to-windows-8-challenge.aspx
    Regards.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Library paths and environment variables

    Hello,
    I am using 10g AS 9.0.4 on a Unix system.
    I am trying to convert an old JSP web application to work with 10g. It is not an EAR/WAR file so I am manually trying to set it up under the "default-web-app" folder. It uses a number of java class files which currently reside in $J2EE_HOME/default-web-app/WEB-INF/classes/mystuff.
    These class files require access to a number of libraries. I foolishly believed that they would be accessible if I were to place them in the $J2EE_HOME/default-web-app/WEB-INF/lib folder, but that did not work.
    I read that OC4J uses a "catch all" lib directory at $J2EE_HOME/applib. I copied the library files there and they still did not work.
    Frustrated, I tried to print out the environment variables for the server - only to find that this function is not supported.
    I managed to print out the library path by creating a Java class files which returns the following as a string:
    System.getProperty("java.library.path");
    This (when called from a JSP) prints a number of different library paths, none of which match those found listed in the $J2EE_HOME/config/application.xml file. I placed the library files in one of the paths listed by the "java.library.path" and it worked!
    3 questions:
    1. How do you print the server's environment variables using a JSP? This strikes me as a very useful function for sorting out library and path issues. Do a search on Google for "print environment variables OC4J" or something similar and there are no useful pages suggesting how this can be done.
    2. Why are the default library paths different on the server than to those specified in application.xml?
    3. How do I change the LD_LIBRARY_PATH (or any environment variable for that matter)? I have tried adding the following line to $ORACLE_HOME/Apache/Jserv/etc/jserv.properties without success:
    wrapper.env=LD_LIBRARY_PATH=/my/custom/library/path
    Any help you can offer would be most appreciated.

    >
    Thanks very much for a such a comprehensive response
    - it has helped answer a lot of questions, especially
    being able to print out the system properties. That
    will be really useful!
    No worries at all Rob.
    The main hurdle is that the libraries are indeed
    native (*.so) libraries. I hadn't considered that
    until you pointed it out in your message. Can I
    assume, then, that $J2EE_HOME/applib and
    $J2EE_HOME/default-web-app/WEB-INF/lib are only
    designed to handle Java's .JAR librares? That would
    explain why placing the native libraries in there
    didn't work, but is there a way of getting such
    native libraries recognised and bundled up in a
    WAR/EAR file?
    Yep, that's it.
    Our proprietary applib and the servlet specs web-inf/lib are only dealing with Java archives.
    The J2EE specs don't cover how to deal with native libs like this.
    Now I've NEVER EVER tried it, but it's worth a shot of at least trying -- for simplified packaging purposes, what you may be able to do is to distribute the .so's within the web-inf/lib -- and then just set that directory (where's its realized on the server after the app is deployed) to be referenced witihn the LD_LIBRARY_PATH. I'd expect our deployment manager will just ignore files it doesn't know about, so arguably you should be able to at least distribute them with the standard archive.
    You'll need to specifically set the LD_LIBRARY_PATH as a separate task outside of the deployment operation though.
    >
    This is where things get a bit weird, and is partly
    my fault during the installation of 10g AS.
    We already had an existing installation of Oracle 10g
    Database (10.1.0) at $ORACLE_HOME under the user
    "oracle". I logged in as the user "oracle" to install
    the Application Server into a different location (In
    this case, "$ORACLE_HOME/../ias10g_9.0.4" - let's
    call this $IAS_HOME). So there is no separate user
    account for Oracle Database and Application Server
    (and hence no separate $LD_LIBRARY_PATH).
    If I log into UNIX as the user "oracle" and echo the
    LD_LIBRARY_PATH, I get the following directories:
    $ORACLE_HOME/lib
    /usr/openv/netbackup/bin
    /usr/dt/lib
    /usr/lib
    I use this user to do "opmnctl stopall" and "opmnctl
    startall". If I then print out the library path from
    a JSP using
    "System.getProperty("java.library.path");", I get the
    following paths:
    $IAS_HOME/jdk/jre/lib/sparc/server
    $IAS_HOME/jdk/jre/lib/sparc
    $IAS_HOME/jdk/jre/../lib/sparc
    $IAS_HOME/opmn/lib
    $IAS_HOME/lib
    $IAS_HOME/usr/lib
    Which is totally different to those listed by
    $LD_LIBRARY_PATH at the command line, which means
    they must be coming from somewhere else.
    It gets worse - my application is trying to call a
    native library that is only present in the
    $ORACLE_HOME/lib32 directory (libclntsh.so.10.1), so
    unless I can include this path in the
    "java.library.path" on the Applicaiton Server, then
    my program will not work.
    So, how do I change the "java.library.path" when the
    values aren't coming from $LD_LIBRARY_PATH in the
    first place?
    The utility $IAS_HOME/opmn/bin/opmnctl is actually a shell script.
    It has this section which sets the LD_LIBRARY_PATH:
    if [ -z "$LD_LIBRARY_PATH" ]
    then
    LD_LIBRARY_PATH=$ORACLE_HOME/opmn/lib:$ORACLE_HOME/lib ; export LD_LIBRARY_PATH
    else LD_LIBRARY_PATH=$ORACLE_HOME/opmn/lib:$ORACLE_HOME/lib:${LD_LIBRARY_PATH} ; export LD_LIBRARY_PATH
    fi
    So if you have an existing LD_LIBRARY_PATH env var set, it should just be putting its paths onto the front of it.
    What you could try as a quick test is to edit the opmnctl script (after taking a backup of course) and either appending the path you need to it, or just add some debug statements to output the LD_LIBRARY_PATH value it ends up setting so you can try and work out what's causing it.
    I expect these other entries:
    $IAS_HOME/jdk/jre/lib/sparc/server
    $IAS_HOME/jdk/jre/lib/sparc
    $IAS_HOME/jdk/jre/../lib/sparc
    are coming from the JRE when it is launched, in probably a similar manner to our opmn entries.
    I really appreciate your help, and I bet if anyone
    can answer these questions, you can! ;-)
    You're very welcome.
    cheers
    -steve-

  • How do I use a OS (Windows) Environment Variable in the source path of me ActionScript 3.0 settings

    I'm sure this can be done as I know we used something similiar at my old work place, below is an image showing what I am attempting to do.
    We used this to create more portable / shareable assets files which when symbols are linking to code, the code was very often in different directories on different machines.
    So we had set up environment variables in the OS to point to source directories and then used these variables in the source paths.
    As long as everyone had these variables set up then it would all work.
    Anyone know the correct way to do this in Flash CC
    Thanks in advance!
    Best Wishes
    Rhys Thomas

    sinious the problem with doing that is that the changed path gets into the code repository as well, so you wind up with everyone going back and forth changing it to their own value, which is a hassle. If you use relative paths and a standard project setup, then it all "just works" without a problem.
    For example, this is the setup I use:
    .dev
         .thisProject
              .Flash1
                   Flash1.as
                   .Flash1
                        Flash1.xfl
                   .view
                        .audioAssets
                        .customViews
              .SoundLib
                   SoundLib.xfl
              SoundLib.swc
         .bin <swfs are output here
              .xml
         .core
              .control
              .model
              .service
              .view
    We have a "base project" that you check out to start a new project (we do heaps of similar work), and the paths are already set up to be relative. Having each project point to its own copy of the core code allows for fine-grained control of which revision you're using--we've even pointed deliberately to old versions or branches on rare occasions.
    The bin folder is actually shared with the website repository, which is in a different directory from the Flash source code (in the website, it has a different name). This allows the generated swfs to be easily updated and ensures that the latest XML is being used both for development and on the site.
    The "thisProject" folder actually includes a Flash Builder workspace with all the standard shortcuts, etc., already set up. This is primarily because of how the "default path" works when you create a new Flash Pro project in FB. Because we output a level up from the workspace, we hack the .metadata folder every time, but that's a small change.

  • How do I use a UNIX environment variable for the path of a file name

    We are running Forms 6i over the web. The forms server runs on a UNIX (HP-UX) machine.
    I want to read the contents of a file, which is simple enough, using the TEXT_IO package. However, I want to reference a UNIX environment variable that specifies the file path i.e
    PROCEDURE get_file IS
    in_file Text_IO.File_Type;
    linebuf VARCHAR2(1800);
    filename VARCHAR2(200);
    BEGIN
    filename:= '$LOG_DIR/RCAS181.log';
    in_file := Text_IO.Fopen(filename, 'r');
    .....other stuff
    Notice the filename string references my unix env variable '$LOG_DIR'. However, this doesnt work. If I put the full pathname it works fine.
    Any suggestions ?

    Have a look at TOOL_ENV.GETVAR()

  • Action to SET environment variable (permanently) e.g. change path

    I would like to be able to set an environment variable as an action in bundles
    -- not to set one associated with an executable action, but rather to define an
    action that will accomplish permanently setting an environment variable.
    For example (not quite real but close) if I installed Java, I might want to set
    the value for JAVA_HOME as a persistent environment variable if the install
    doesn't create it.
    I know of several methods that work for setting an environment variable on the
    system, but none of them work particularly well for my purposes:
    1) Create a batch/cmd file containing the SETX command, place it somewhere
    accessible to the system, and use Run Script. The drawback is that this
    requires placing an extra little command file somewhere accessible to every
    system that runs the bundle.
    2) Add or modify the variable via the registry. This has the drawback of
    requiring a "refresh" action to somehow make the system see the variable value
    right away.
    err.... I think those are the only methods I know. Of course one can set an
    environment variable just associated with an action (except with11.2.3 agent)
    but I want to essentially modify the system permanently, but only for people
    getting the specific bundle.
    What's the best way to go about this? Am I missing something (personality?)?
    Thanks.
    -- DE

    Originally Posted by DE
    I would like to be able to set an environment variable as an action in bundles
    -- not to set one associated with an executable action, but rather to define an
    action that will accomplish permanently setting an environment variable.
    For example (not quite real but close) if I installed Java, I might want to set
    the value for JAVA_HOME as a persistent environment variable if the install
    doesn't create it.
    I know of several methods that work for setting an environment variable on the
    system, but none of them work particularly well for my purposes:
    1) Create a batch/cmd file containing the SETX command, place it somewhere
    accessible to the system, and use Run Script. The drawback is that this
    requires placing an extra little command file somewhere accessible to every
    system that runs the bundle.
    2) Add or modify the variable via the registry. This has the drawback of
    requiring a "refresh" action to somehow make the system see the variable value
    right away.
    err.... I think those are the only methods I know. Of course one can set an
    environment variable just associated with an action (except with11.2.3 agent)
    but I want to essentially modify the system permanently, but only for people
    getting the specific bundle.
    What's the best way to go about this? Am I missing something (personality?)?
    Thanks.
    -- DE
    Hi DE, have you tried with a VBS script? Here's a script that I use to add a path to the "PATH" variable and add 2 other system variables.
    Code:
    Dim CurrPath
    Dim NewPath
    strVarMAYA = "MAYA_LOCATION"
    strVarMUDBOX = "MUDBOX_LOCATION"
    strVarMAYAValue = "C:\Program Files\Autodesk\Maya2014"
    strVarMUDBOXValue = "C:\Program Files\Autodesk\Mudbox 2014"
    Set WshShell = CreateObject("WScript.Shell")
    Set WshSystemEnv = WshShell.Environment("SYSTEM")
    CurrPath = WshSystemEnv("PATH")
    NewPath = CurrPath & ";C:\Program Files\Autodesk\Maya2014\bin" & ";C:\Program Files\Autodesk\Mudbox 2014"
    WshSystemEnv("PATH") = NewPath
    WshSystemEnv(strVarMAYA) = strVarMAYAValue
    WshSystemEnv(strVarMUDBOX) = strVarMUDBOXValue
    For the PATH system variable you could use EditPath if you need to manipulate the content of the variable.
    Hope it helps!
    GuillaumeBDEB

Maybe you are looking for