Pls Help - How can I read the info in system setting

I was trying to get the user login information to auto authenticate a session. The information is in system environment setting. ie say JAVA_HOME when you type SET in the command prompt in w2k.
Is it possible for a JSP code to read that info? Thank you.

I have tried using the following in a jsp file:
<%@ page import="java.io.*"%>
<%@ page import="java.lang.*" %>
<%
Runtime c = Runtime.getRuntime();
Process p = c.exec("SET");
BufferedReader br = new BufferedReader (new InputStreamReader (p.getInputStream()));
%>
Somehow, I got this error. Any idea how I could fix it. Thanks.
---- root cause ----
java.io.IOException: CreateProcess: SET error=2
     at java.lang.Win32Process.create(Native Method)
     at java.lang.Win32Process.(Win32Process.java:61)
     at java.lang.Runtime.execInternal(Native Method)
     at java.lang.Runtime.exec(Runtime.java:546)
     at java.lang.Runtime.exec(Runtime.java:413)
     at java.lang.Runtime.exec(Runtime.java:356)
     at java.lang.Runtime.exec(Runtime.java:320)
     at org.apache.jsp.env1_jsp._jspService(env1_jsp.java:49)
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

Similar Messages

  • Pls help - How can I add a typekit font to muse?

    As Muse doesn't come with all typekit fonts already included in the dropdown list of webfonts, I'd like to know how I can add a typekit font to the dropdown menu so I can use it for my website. I have Adobe creative cloud membership.
    I've searched the whole of the web and can't find anything about this at all - only about adding one of the existing muse typekit fonts which I already know how to do.
    Why doesn't Adobe include all typekit fonts with Muse when you're already a full creative cloud subscriber?

    Done!
    Date: Thu, 20 Dec 2012 03:13:17 -0700
    From: [email protected]
    To: [email protected]
    Subject: Pls help - How can I add a typekit font to muse?
        Re: Pls help - How can I add a typekit font to muse?
        created by morgan_in_london in Help with using Adobe Muse - View the full discussion
    You're very welcome - can I be cheeky and ask for a "correct answer" to be noted? :^D
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4935814#4935814
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4935814#4935814
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4935814#4935814. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Help with using Adobe Muse by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • I had a power mac g4 into which i put 3, 320 gb PATA hard drives in a raid slice config so that it worked as one drive needless to sat that i lost the g4 to a surge but the drives are good. now i have an imac, how can i recover the info off those drives

    i had a power mac g4 into which i put 3, 320 gb PATA hard drives in a raid slice config so that it worked as one drive needless to sat that i lost the g4 to a surge but the drives are good. now i have an imac, how can i recover the info off those drives. can i put the drives in external cases and plug them all in, will the imac see them as a raid slice then  help please

    Before you have another accident:
    Buy a UPS of good quality and sufficient to your needs.
    I would have to assume that the drives were connected to a PCI PATA card, hopefully. Otherwise, well RAID and having drives on the same bus (master and slave).
    And no backup, none at all...
    Get your hands on a G4.
    Data Rescue 3 from Prosoft maybe.
    If they were SATA and running on PCI SATA controller, very popular and common really in G4s, more options would be open.

  • )How can we schedule the info package daily run at 6 AM, with out useing in

    Hi
       Can any one explain 1) what is information broadcasting &how can we use this.
    2)What are the settings we have to do when we use the charts in WAD's
    3)How can we schedule the info package daily run at 6 AM, with out useing in process chains
    Thanks
    Bharath

    Hi,
      Information broadcaster :
          you can precalculate and distribute(thru mail) the query, workbook and webtemplate through online link or html file to the receipents (users).
    have a look at the below link.
         http://help.sap.com/saphelp_nw04/helpdata/en/3a/0e044017355c0ce10000000a1550b0/frameset.htm
    Infopackage scheduling:
         you can schedule the infopackage daily at your desired time .In the schedule tab ,select the start later in background and in the scheduling option give the date and time and give the period values as daily.
    Regards,
    Siva.

  • Pls advise how can I remove the 'Loading' icon.

    I have purchased a app called Kids Song All - 220 and I have downloaded it in itune as it has exceeded 20MB. But currently my iphone been showing "Loading'. Pls advise how can I remove the icon.

    @cor-el: Thank you for your help. Got the issue fixed.
    For those who are interested in a quick fix for this, go under (user profile depending on what OS you are using)\Mozilla\Firefox\Profiles\chrome , create a css file named userChrome.css (you have an example there... ) and paste in this code :
    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
    #statusbar-display { display: none !important; }
    Not sure if it's really correct, but it removed that annoying Status-bar, so I'm satisfied with it.

  • My computer crashed and I no longer have the itunes library. i get an error msg that my iphone is synced to another library - how can I get the info from the phone to the itunes library?

    my computer crashed and I no longer have the itunes library. i get an error msg that my iphone 3g is synced to another library - how can I get the info from the phone to the itunes library without losing everything? How do I delete old audiobooks from my iphone?

    You can transfer itunes purchases:  File>Devices>Transfer Purchases
    The iphone is not a storage/backup device.  The sync is one way - computer to iphone.  The exception is itunes purchases.
    It has always been very basic to always maintain a backup copy of your computer.  Use your backup copy to put everything back.

  • How can I extract the info from my Time Capsule?

    How can I extract the info from my Time Capsule?

    What info would that be??
    If you mean how to recover TM back to a computer.. see Pondini Q14-17
    http://pondini.org/TM/FAQ.html
    If that isn't it .. we do not know what.. "the info" you are talking about.

  • How can i read the data fromtext fieldsin the form of bytes??

    Hi friends,
    How can i read the data fromtext fieldsin the form of byte string while using Socket connection.
    I have two text fields. i need to send the data from the textfeilds to the server using a byte string.
    Can anyboday help me???
    KK

    Does <cfdbinfo> work for Access DBs?
    You might be better off asking this on a MS Access forum.  It's more of an Access issue than a CF one.
    Adam

  • How can I read the image from database into form

    hi everyone
    if I have table like this
    create table test
    (id number(10),
    pic long raw);
    in this table record
    in form If I have block non database
    how can i read the image into non database item
    I try with this code but no good
    select pic into :photo from test where id=5;
    photo its non database item kind image
    how can i invoke image into item
    thanks alooooooot

    Hello,
    You can't select image with select query. You need to create another database block from test table which has item binds with database pic column. Now in where condition in test block's property you have to write id=5. Change test block's properties UPDATE ALLOWED, INSERT ALLOWED, DELETE ALLOWED to NO. Only Query allowed property set to YES.
    Now in your particular trigger write the code
    GO_BLOCK('test');
    Execute_Query;
    please mark if it help you or correct
    Regards,
    Danish

  • HT1296 I am trying to sync contacts from my iPhone to Mac.  When I plug in my iPhone, I do not get the Info tab in iTunes (as mentioned in how to sync on this website).  How can I get the info tab to appear?

    I am trying to sync contacts from my iPhone to Mac.  When I plug in my iPhone, I do not get the Info tab in iTunes (as mentioned in how to sync on this website).  How can I get the info tab to appear?

    Since the release of Mavericks (OS X 10.9) syncing contacts and calendars with a Mac via iTunes is no longer supported. The currently supported method is via iCloud. Setup instructions: http://www.apple.com/icloud/setup/

  • How can i get the info off of an old appleworks database. to my mountain lion. OS X?

    how can i get the info off of an old appleworks database. to my new mountain lion. OS X? My old data base is on AppleWorks 6

    1.  Read Roger Wilmut's excellent series of articles Abandoning Appleworks, especially the one on databases.
    2.  Call the Apple Store and order Snow Leopard Server for $19.99 + sales tax & shipping: 1.800.MYAPPLE (1.800.692.7753) - Apple Part Number: MC588Z/A (telephone orders only).
    3.  Install Snow Leopard Server into Parallels 8, now available for a short time (4 more days) in the March 2013 MacUpdate 10 App Bundle for $49.99:
    4. Install Appleworks 6.2.9 into Snow Leopard Server and it will now run concurrently with Mt. Lion:
                                  [click on image to enlarge]

  • How can we read the screen field values from the report selection screen wi

    Hi expart,
    How can we read the screen field values from the report selection screen with out having an ENTER button pressed  .
    Regards
    Razz

    use this code...
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_posnr.
    **Read the Values of the SCREEN FIELDs
    CALL FUNCTION 'DYNP_VALUES_READ'

  • How can I read the bootstrap files and extract the fragment-URLs and fragment-numbers in plain text?

    How can I read the bootstrap files of any HDS Live stream and extract the fragment-URLs and fragment-numbers in plain text?
    Could it be that it is some kind of compressed format in the bootstrap? Can I uncompress it wirh  f4fpackager.exe? Could not find any download for f4fpackager.exe. I would prefere less code to do so. Is there something in Java of JavaScript, that can extract the fragment-numbers?
    Thank you!

    Doesn't sound too hard to me. Your class User (the convention says to capitalize class names) will have an ArrayList or Vector in it to represent the queue, and a method to store a Packet object into the List. An array or ArrayList or Vector will hold the 10 user objects. You will find the right user object from packet.user_id and call the method.
    Please try to write some code yourself. You won't learn anything from having someone else write it for you. Look at sample code using ArrayList and Vector, there's plenty out there. Post in the forum again if your code turns out not to behave.

  • How can I read the printer snapshot file printers.xml

    How can I read the printer snapshot file printers.xml

    XML files are typically viewed using a web browser.
    Open the XML file and the default program should open it automatically.  If you are prompted to select a program, use the option that lets you choose a program and brows through the directories for your browser (for example, use Internet Explorer, Firefox, etc.).
    If need be, you should be able to right-click the file and select open with to choose the program to open it with.
    There are other XML viewers out ther, but web browsers are typically the default as XML is a web language.
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • Help:How can I run the J2EE Client Application? Thanks

    Help:How can I run the J2EE Client Application that will access the remote J2EE1.4 application server which runs on another host computer?
    I have developped a stateles senterprise java bean name converter and deloyed it in the j2ee1.4 application server on the host machine A. The converterbean provides the remote home interface and remote interface. At the same time I have developped the j2ee application client named convertappclient. When I access the conveter bean at host computer A through the script 'appclient.bat' as 'appclient -client convertappclient.jar', the client can access the bean sucessfully. Now I want to access the bean through the script 'appclient.bat' at host computer B,what files should I copy from host computer A to host computer B;and what the command line should be like? Thanks!
    The following are the code of the enterprise java bean and it's home interface .
    The client code is also provided.
    The enterprise java bean:
    package converter;
    import java.rmi.RemoteException;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    import java.math.*;
    public class ConverterBean implements SessionBean {
    BigDecimal yenRate = new BigDecimal("121.6000");
    BigDecimal euroRate = new BigDecimal("0.0077");
    public ConverterBean() {
    public BigDecimal dollarToYen(BigDecimal dollars) {
    BigDecimal result = dollars.multiply(yenRate);
    return result.setScale(2, BigDecimal.ROUND_UP);
    public BigDecimal yenToEuro(BigDecimal yen) {
    BigDecimal result = yen.multiply(euroRate);
    return result.setScale(2, BigDecimal.ROUND_UP);
    public void ejbCreate() {
    public void ejbRemove() {
    public void ejbActivate() {
    public void ejbPassivate() {
    public void setSessionContext(SessionContext sc) {
    The bean's remote home interface :
    package converter;
    import java.rmi.RemoteException;
    import javax.ejb.CreateException;
    import javax.ejb.EJBHome;
    public interface ConverterHome extends EJBHome {
    Converter create() throws RemoteException, CreateException;
    The bean's remote interface:
    package converter;
    import javax.ejb.EJBObject;
    import java.rmi.RemoteException;
    import java.math.*;
    public interface Converter extends EJBObject {
    public BigDecimal dollarToYen(BigDecimal dollars) throws RemoteException;
    public BigDecimal yenToEuro(BigDecimal yen) throws RemoteException;
    The j2ee application client:
    import converter.Converter;
    import converter.ConverterHome;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.rmi.PortableRemoteObject;
    import java.math.BigDecimal;
    public class ConverterClient {
    public static void main(String[] args) {
    try {
    Context initial = new InitialContext();
    System.setProperty("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
                   System.setProperty("java.naming.provider.url","jnp://10.144.97.250:3700");
    Context myEnv = (Context) initial.lookup("java:comp/env");
    Object objref = myEnv.lookup("ejb/SimpleConverter");
    ConverterHome home =
    (ConverterHome) PortableRemoteObject.narrow(objref,
    ConverterHome.class);
    Converter currencyConverter = home.create();
    BigDecimal param = new BigDecimal("100.00");
    BigDecimal amount = currencyConverter.dollarToYen(param);
    System.out.println(amount);
    amount = currencyConverter.yenToEuro(param);
    System.out.println(amount);
    System.exit(0);
    } catch (Exception ex) {
    System.err.println("Caught an unexpected exception!");
    ex.printStackTrace();
    }

    Surprisingly I find an upsurge in the number of posts with this same problem. I recently found a post which gave a nice link for this. Follow the steps and it should help:
    http://docs.sun.com/source/819-0079/dgacc.html#wp1022105

Maybe you are looking for

  • Late 2011 MacBook Pro can't boot after Yosemite install

    After installing Yosemite on this late 2011 MacBook Pro it stops about a third of the way into booting up. It displays a null sign. I can boot into recovery disk, or external HD (I don't have a backup of this system, but can boot from my MacBook Air'

  • Implementation of a 3 tier model architecture

    Hi, I've just gotten a project to complete where users at 20 customer sites need to gain access to a database in our company and download/upload lots of tables/data from a web page (thru a firewall etc) The way I initally intended to go was using an

  • Game not working in OS 9?

    Hi all! I'm trying to play the old game Munchies on OS 9/Classic via OS X, and it opens fine, but kind of freezes up and doesn't work when the game gets going. Anyone know why? To open it, I just click the program icon from my desktop. I just install

  • Not posted identical amounts FF_5

    Dear Experts, I have problem with the FF_5. When we are proccessing .txt file with same paid amounts to our clients, then all of them are not writed cause the identical amount when I check in FEBABS. Example: 00000313923 00000313923 00000313923 00000

  • Add UDF linked to a UDT

    Hi all, I added a user-defined table (type 'no object') to be able to enter some master data with only a code and description. I want to link this table to a user-defined field. I tried to add an user-defined field linked to this table (just by follo