Can environment variable be used in Windows

Can an environment variable be set and used in Windows for compiling.
For example, instead of typing in something like
javac -classpath c:/java/j2sdk/xml/lib/jaxb.jar MyProg.java
can I set an environment variable (call it "ev")
to c:/java/j2sdk/xml/lib
(or would it be c:\java\j2sdk\xml\lib)
so that something like one of the following (which one?) will work:
javac -classpath ev/jaxb.jar MyProg.java
or
javac -classpath %ev%/jaxb.jar MyProg.java
or
javac -class path %ev%\jaxb.jar MyProg.java

Don't know - best way to find out is to test.

Similar Messages

  • Can photoshop 7 be used with windows 8?

    Can photoshop 7 be used with windows 8?

    Unlikely, but feel free to try using compatibility modes and al lthe otehr usual tricks.
    Mylenium

  • Can time capsule be used with windows programs

    can time capsule be used with windows as a wi fi router? or dose the disk that came with the time capsule work with windows program?

    The wifi router side will work fine.
    The disk that came with the TC should have windows version of airport utility but you can download it.. that is important if you want to setup the TC or use the shared disk.

  • Can ethernet ports be used for windows pc as a LAN so that i can share all documents through it?

    can ethernet ports be used for windows pc as a LAN so that i can share all documents through it?

    The current 27-inch iMac can. Other iMac models can't outside of a VNC setup or ScreenRecycler; all such solutions require a standalone monitor for setup and troubleshooting.
    (51433)

  • Environment variables for use with EEM routing trigger?

    I've only recently started looking into EEM, and was hoping a guru here could clear something up for me:
    The docs do not show there to be any environment variables that can be used with EEM's "routing" trigger, to determine which route was added, changed, or modified.
    It seems odd that the trigger would allow you to fire specifically on adds or removes, but then give you no indication of the specific route that was added or removed. Is this info in some non-obvious generic variable?
    Or, is the only available approach to cache the route table, and then parse the whole table when the event fires? I haven't seen any examples that use this trigger; maybe because of this lack of any documented routing-specific variables?
    Thanks in advance!

    Every event detector has its own set of internal variables. These are different than environment variables. Environment variables are those you can modify in the config with "event manager environment". If you have a device which supports the routing event detector, you can run the command, "show event manager detector routing detailed" and that will show you all of the available internal variables.
    I actually did a programmatic applet example using the oruting ED for my Networkers session this past year. This example doesn't use any of the internal variables, but it will give you an idea of how this ED works:
    event manager applet route-watch
    event routing network 10.1.1.0/24 type add protocol ospf
    action 001 cli command "enable"
    action 002 set done 0
    action 003 while $done eq 0
    action 004 wait 5
    action 005 cli command "ping ip 10.1.1.1"
    action 005 regexp "!!!!!" "$_cli_result"
    action 006 if $_regexp_result eq 1
    action 007 cli command "config t"
    action 008 cli command "int Tunnel0"
    action 009 cli command "shut"
    action 010 cli command "end"
    action 011 set done 1
    action 012 end
    action 013 end
    This applet will be triggered when the route 10.1.1.0/24 is learned via OSPF. The applet will then try and ping 10.1.1.1, and when it is 100% successful, it will take down the backup tunnel interface. Because it may take a little while before the ping is 100% successful, the applet will loop until it gets a 100% success (or until the 20 second maxrun timer expires).

  • I have a Lexmark Prevail Pro 705 printer connected to my network wirelessly. I can no longer scan from it using Image Capture. I can print to it. I can scan from it using a Windows machine. Most updated firmware. Driver v 11.0 Any ideas?

    I have a Lexmark Prevail Pro 705. Latest (as of july 30, 2012) firmware. Mac driver v 11.0
    I can no longer communicate wirelessly with the scan feature of the printer. I can print no problem using a wireless connection. Using a window's machine I can scan wirelessly from the printer. It seems that my iMac (OSX 10.8, 3.06 Ghz Intel Core 2 Duo, 24inch early 2009) is not connecting to it. I can put a USB cord into the computer and scan.
    Any ideas? This came up starting 2 weeks ago. I had hoped the operating system upgrade would solve it. It has not. I see nothing on the Lexmark boards about this. Since the printer works fine in both print an scan mode using a windows machine and can print fine from a Mac but not scan I don't have any ideas but I suspect it is the Mac.  

    Repair your disk permission: http://bit.ly/OeD7U3.
    Run Cleanup tool http://bit.ly/vnukXY
    Download updated driver from Lexmark website www.lexmark.com
    Run firmware update http://bit.ly/AcNqbg
    Reset printing system http://support.apple.com/kb/HT1341

  • How do I define javascript global variables to use across windows

    I have a number of web pages. I have javascript for each page. I need to share some data across the web pages. How do I define javascript variables that can be accessed from multiple web pages?

    Use SugarSync.

  • Can jmc.dll be used in Windows 7?

    Hi all,
    I developed a video application using Java media Components and it works in Windows XP and Vista.
    But when I launch it in Windows 7, the error message is shown "Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: C:\Users\hting\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\1\2d356c01-6988cd3a-n\jmc.dll: Can't find dependent libraries"
    Does any body ever use JMC in Windows 7? Is it the jmc.dll problem?
    Simon:)

    I used Dependency Walker to look at what dependent libraries JMC.dll relies on. Nothing exotic. DW shows when a DLL is missing, you might use it to see what you need.

  • Can you really not use a windows-formatted hard drive with Time Machine?

    I still have people in my household that think Windows is the way to go, and so they have used all the hard drives to back up their stuff.
    There is still a reasonable amount of room on one of the hard drives for me to do a Time Machine backup, however it is obviously formatted to Windows.
    Is there ANY way the hard drive can be used with both systems?
    It's a bit of a bummer if I have to shell out for a new one just for my MacBook!
    Thanks

    Do you mean you want to connect a USB drive to the TC?  If so, it will recognize a disk formatted in FAT32, but not ExFAT or NTFS.
    If you mean you want a Windoze-like partition on the TC's internal HD, that's a bit trickier, since it can't be partitioned.  But you could create a disk image on it via Disk Utility, formatted MS-DOS (FAT) aka FAT32, or ExFAT  (I'm not entirely sure if ExFAT would work in a disk image there, but it might.)

  • Can LabVIEW variables be used like those found in a Java program?

    I created a decoding program in Java that reads in a certain number, or code, and returns the decoded version of that number.
    I tried initially to create this program inside of LabVIEW itself but was hindered by my lack of familiarity and knowledge of what LabVIEW can and can't do and how to approach the problem in LabVIEW.
    My stumbling blocks in LabVIEW seem to be the arrays and working the variables. I'm probably approaching this completely wrong, more than likely because I'm trying to think in Java rather than LabVIEW. 
    Any help that can be given is most appreciated. Also I have attached a text document with my Java code in it. It's not perfect but it works.
    If I need to clarify anything just ask.
    Once again thanks for any help in advanced.
    Solved!
    Go to Solution.
    Attachments:
    Decoder.txt ‏5 KB

    In LabVIEW the wire is the variable. The way you pass parameters to functions (subvis) is with a wire through the connector pane. Same for returning results.
    Forget that local variables exist! A lot of new programmers that come from a text based programming background discover the LabVIEW local and global variables way too early. Like duct tape they can be useful. But it is possible to write huge complex applications without touching them. And the code is much simpler than programs of less complexity that make extensive use of locals and globals.
    Since you are new to LabVIEW you can become a very good programmer if you keep the following in mind. It is a little confusing but "local variables" and "global variables" are not really variables in labVIEW like they are in Java. The wires are the variables. Those rectangle things you create from controls or indicators are more like a function for that control or indicator. They can not exist without an owning control or indicator. It is unfortunate that they are called variables but they are a relic of the stone ages when code was carved into cave walls.
    =====================
    LabVIEW 2012

  • Can Endpoint 2012 be used on Windows Server 2008 R2?

    I have never used this product before.  I just need to protect one Microsoft Window Server running 2008 R2 Enterprise.  I don't need to install the infrastructure or manager.  Is this possible?
    Thanks!

    Hi,Yes you can simply install it manually, server 2008 r2 is supported no problem..
    Regards,
    Jörgen
    -- My System Center blog ccmexec.com -- Twitter
    @ccmexec

  • Can bind variable be used for the table in an explicit cursor

    I have an application that accesses a table on several different servers. I created a ref cursor variable for the cursor and a varchar2 variable to define my query. variable i_server is an parameter of my procedure. Is it possible to rewrite the v_query using bind variables for the table/server? I have include v_query below.
    v_query := 'SELECT rp.usr_id, rp.sun_sft_cat, rp.sun_start, rp.sun_hrs,' ||
    ' rp.mon_sft_cat, rp.mon_start, rp.mon_hrs,' ||
    ' rp.tue_sft_cat, rp.tue_start, rp.tue_hrs,' ||
    ' rp.wed_sft_cat, rp.wed_start, rp.wed_hrs,' ||
    ' rp.thu_sft_cat, rp.thu_start, rp.thu_hrs,' ||
    ' rp.fri_sft_cat, rp.fri_start, rp.fri_hrs,' ||
    ' rp.sat_sft_cat, rp.sat_start, rp.sat_hrs,' ||
    ' rp.sun_sft, rp.mon_sft, rp.tue_sft, rp.wed_sft,' ||
    ' rp.thu_sft, rp.fri_sft, rp.sat_sft, nvl(ei.wip_permanent_sched_seq, 0)' ||
    ' FROM ' || i_server || ' rp, wip_emp_information ei,' ||
    ' wip_emp_status wes, wip_emp_status_type west ' ||
    ' WHERE rp.usr_id = ei.employee_id' ||
    ' AND wes.employee_id = ei.employee_id' ||
    ' AND wes.status_type = west.status_type' ||
    ' AND west.description = ''WAREHOUSE EMPLOYEE''' ||
    ' AND wes.effective_date = (SELECT MAX(wes2.effective_date)' ||
    ' FROM wip_emp_status wes2' ||
    ' WHERE wes2.status_type = wes.status_type' ||
    ' AND wes2.employee_id = wes.employee_id' ||
    ' AND wes2.effective_date <= trunc(SYSDATE))' ||
    ' AND wes.status = ''Y'' AND rp.wk = 1'; -- wk = 1 is next week's schedule
    OPEN rp_sched_cursor FOR v_query;

    If your intention is to do this:
    v_query := 'SELECT rp.usr_id, rp.sun_sft_cat, rp.sun_start, rp.sun_hrs,' ||
    ' rp.mon_sft_cat, rp.mon_start, rp.mon_hrs,' ||
    ' rp.tue_sft_cat, rp.tue_start, rp.tue_hrs,' ||
    ' rp.wed_sft_cat, rp.wed_start, rp.wed_hrs,' ||
    ' rp.thu_sft_cat, rp.thu_start, rp.thu_hrs,' ||
    ' rp.fri_sft_cat, rp.fri_start, rp.fri_hrs,' ||
    ' rp.sat_sft_cat, rp.sat_start, rp.sat_hrs,' ||
    ' rp.sun_sft, rp.mon_sft, rp.tue_sft, rp.wed_sft,' ||
    ' rp.thu_sft, rp.fri_sft, rp.sat_sft, nvl(ei.wip_permanent_sched_seq, 0)' ||
    ' FROM ' || :b0 || ' rp, wip_emp_information ei,' ||      --- Note the bindvariable...
    ' wip_emp_status wes, wip_emp_status_type west ' ||
    ' WHERE rp.usr_id = ei.employee_id' ||
    ' AND wes.employee_id = ei.employee_id' ||
    ' AND wes.status_type = west.status_type' ||
    ' AND west.description = ''WAREHOUSE EMPLOYEE''' ||
    ' AND wes.effective_date = (SELECT MAX(wes2.effective_date)' ||
    ' FROM wip_emp_status wes2' ||
    ' WHERE wes2.status_type = wes.status_type' ||
    ' AND wes2.employee_id = wes.employee_id' ||
    ' AND wes2.effective_date <= trunc(SYSDATE))' ||
    ' AND wes.status = ''Y'' AND rp.wk = 1'; -- wk = 1 is next week's schedule
    OPEN rp_sched_cursor FOR v_query USING i_server;Then the answer is: no, you cannot do that.
    But my question then would be: why would you want to do that?
    I assume you don't have that many "different servers". One cursor per server won't hurt you.

  • Satellite P200-10O: Can't send emails using Vista Windows Mail

    Can any one help.
    I have a Satellite P200-10O, with Vista installed. In Win Mail i have set up my email accounts as normal.
    When i open Win Mail i can click send and receive and it searches for new messages, this can be repeated as often as you like. However when i create a new message and click send it stops working. The message goes into the outbox, if i open it in the outbox and click send, nothing happens, after a while of trying every thing freezes up. If i then close the program and re open it will send the message but then sometimes the send and receive doesn't work until you close and re open. Also the message counters do not up date.
    I have tried everything i can think of, Vista forum, ISP, Toshiba. So far no joy although i will be getting back in touch with Toshiba again. Message is set to send immediatley.
    No virus or firewall is being used.
    Cheers
    1stopcarp

    Hi buddy,
    why are you making yourself such problems?? Why dont you use Mozilla Thunderbird which is faster, reliable and has better functions then this Vista Mail thingy??
    I use Thunderbird now for some years and I love it. Its better than outlook and has so many functions which make the work a lot easier.
    If I were you I would check the following link a thinkabout:
    http://www.mozilla-europe.org/en/products/thunderbird/
    Greets

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

  • Unable to access value in System Environment Variable using Java

    I am using Java code to get the value of a System Environment Variable using the Runtime, Process java classes.
    The code works fine in tomcat, but when deployed in 9ias the code is unable to retrieve the value stored in the System environment variable in Windows 2000.

    Thanks for the comment steve, here is the code which i am using.
         public String getEnvironmentVariable()
                   // This will get the FEDREP_HOME environment variable
                   String FEDREP_HOME = null;
                   Process p = null;
                   Runtime rt = Runtime.getRuntime();
                        try {
                             // invokes a shell-command to retrieve FEDREP_HOME variable
                             String OS = System.getProperty("os.name").toLowerCase();
                                  // Get the Windows 95 environment variable
                                  if (OS.indexOf("windows 9") > -1)
                                            p = rt.exec( "command.com /c echo %FEDREP_HOME%" );
                                  // Get the Windows NT environment variable
                                  else if (OS.indexOf("nt") > -1)
                                            p = rt.exec( "cmd.exe /c echo %FEDREP_HOME%" );
                                  // Get the Windows 2000 environment variable
                                  else if (OS.indexOf("2000") > -1)
                                            p = rt.exec( "cmd.exe /c echo %FEDREP_HOME%" );
                                  // Get the Windows XP environment variable
                                  else if (OS.indexOf("xp") > -1)
                                            p = rt.exec( "cmd.exe /c echo %FEDREP_HOME%" );
                                  // Get the unix environment variable
                                  else if (OS.indexOf("linux") > -1)
                                            p = rt.exec( "sh -c echo $FEDREP_HOME" );
                                  // Get the unix environment variable
                                  else if (OS.indexOf("unix") > -1)
                                            p = rt.exec( "sh -c echo $FEDREP_HOME" );
                                  // Get the unix environment variable
                                  else if (OS.indexOf("sunos") > -1)
                                            p = rt.exec( "sh -c echo $FEDREP_HOME" );
                                  } else
                                            System.out.println("OS not known: " + OS);
                             // set up to read subprogram output
                             InputStream is = p.getInputStream();
                             InputStreamReader isr = new InputStreamReader(is);
                             BufferedReader br = new BufferedReader(isr);
                             // read output from subprogram
                             FEDREP_HOME = br.readLine();
                             br.close();
                        } catch(Exception ex)
                                  System.out.println("Error when getting FEDREP_HOME environment variable");
                                  ex.printStackTrace();
              return(FEDREP_HOME);

Maybe you are looking for

  • Video acquisition from frame grabber

    I wanted to acquire image from a video camera which only has analog output. To do that, I used a framegrabber, called :"Hauppaugel analog video giditizer". However, as I can see from the list, the framegrabber provides image with YUY 2 format and in

  • Problem in using Font class

    In this code i try to make font preview on the word "Test" by selecting font name , style and size but when i select font name and style the word " Test" disappear why ?? please say to me the correct way to do this . my code : import java.awt.BorderL

  • How do i flip a photo on iphoto

    how do i flip a photo on iphoto

  • Inspection type 13

    Hi Gurus, Can you please explain how to handle the inprocess inspection in REM? How to handle auto UD of these inspection lots by job planning? Regards Sandip

  • Can´t change EPCF Level to 0

    Hi experts, Iu2019m trying to change de EPCF Level value to 0 at framework light properties, but when I test the page I can see that the change wasnu2019t applied. At the html source code I have: EPCM.relaxDocumentDomain(); EPCM.init( { Version:6.080