How can i execute java program in JSP ?

att
thanks

try to use:
Runtime.getRuntime().exec("command line");
where "command line" is your command to execute your program.

Similar Messages

  • How can i execute "*.java " files in Workshop

    Hi,
    Im sunil,new to this weblogic workshop8.1..i dont know how to execute standalone .java files or servlets in workshop.plz help me and tell the way.
    regards
    Budati sunil

    Im not too sure about the Java project. But single normal java files with public static void maain(String [] args) are very simple to execute.
    1. Write the java code somewhere lets call this class A.
    2. Make a dummy page flow.
    3. In the begin action of this pageFlow, call the main method of the A class directly using A.main(null) since main is a static method. your code will work fine.
    4. If you have to pass a String[] as parameters. Before calling main, create this String[] and then pass it.
    In this way you can make a jsp and take the input from the user also.
    Hope it helps
    Cheeers

  • I can't execute java program.

    when we execute our java application,
    we met this fatal error.
    my environment of execution are
    - used jnlp(webstart)
    - swing program
    - JRE (1.6.0_22-b04)
    when it happened error, it created hs_err_pidxxxx.log file.(xxxx means sequence).
    of caurse, we try to execute again, we can do it successfully.
    this is file contents
    # A fatal error has been detected by the Java Runtime Environment:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000091, pid=11360, tid=11164
    # JRE version: 6.0_22-b04
    # Java VM: Java HotSpot(TM) Client VM (17.1-b03 mixed mode windows-x86 )
    # Problematic frame:
    # C 0x00000091
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    # The crash happened outside the Java Virtual Machine in native code.
    # See problematic frame for where to report the bug.
    --------------- T H R E A D ---------------
    Current thread (0x47f80800): JavaThread "Thread-3" [_thread_in_native, id=11164, stack(0x47d10000,0x47d50000)]
    siginfo: ExceptionCode=0xc0000005, reading address 0x00000091
    Registers:
    EAX=0x47d4f824, EBX=0x47f80918, ECX=0x47d4f7d4, EDX=0x47d4f820
    ESP=0x47d4f77c, EBP=0x00000001, ESI=0x47f98cc8, EDI=0x47f80800
    EIP=0x00000091, EFLAGS=0x00010202
    Top of Stack: (sp=0x47d4f77c)
    0x47d4f77c: 6d114c04 47f80918 47f98cc8 00000004
    0x47d4f78c: 47d4f7d4 47d4f824 47d4f820 ffa0a0b4
    0x47d4f79c: 47f80800 431fe380 431fe380 47d4f7fc
    0x47d4f7ac: 0095e772 47f80918 47d4f82c 47d4f828
    0x47d4f7bc: 47d4f824 47d4f820 ffa0a0b4 00000070
    0x47d4f7cc: 0000005b 00000092 00000001 0000001e
    0x47d4f7dc: 47d4f7dc 431fe380 47d4f82c 431ff1a8
    0x47d4f7ec: 00000000 431fe380 00000000 47d4f80c
    Instructions: (pc=0x00000091)
    0x00000081:
    [error occurred during error reporting (printing registers, top of stack, instructions near pc), id 0xc0000005]
    Stack: [0x47d10000,0x47d50000], sp=0x47d4f77c, free space=fd47d4ec3ck
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C 0x00000091
    Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
    j sun.java2d.windows.GDIRenderer.doFillRect(Lsun/java2d/SurfaceData;Lsun/java2d/pipe/Region;Ljava/awt/Composite;IIIII)V+0
    j sun.java2d.windows.GDIRenderer.doFillSpans(Lsun/java2d/SunGraphics2D;Lsun/java2d/pipe/SpanIterator;)V+67
    j sun.java2d.windows.GDIRenderer.draw(Lsun/java2d/SunGraphics2D;Ljava/awt/Shape;)V+39
    j sun.java2d.pipe.PixelToShapeConverter.drawLine(Lsun/java2d/SunGraphics2D;IIII)V+22
    j sun.java2d.pipe.ValidatePipe.drawLine(Lsun/java2d/SunGraphics2D;IIII)V+19
    j sun.java2d.SunGraphics2D.drawLine(IIII)V+10
    j javax.swing.plaf.basic.BasicProgressBarUI.paintDeterminate(Ljava/awt/Graphics;Ljavax/swing/JComponent;)V+218
    j javax.swing.plaf.basic.BasicProgressBarUI.paint(Ljava/awt/Graphics;Ljavax/swing/JComponent;)V+22
    j com.incors.plaf.kunststoff.KunststoffProgressBarUI.paint(Ljava/awt/Graphics;Ljavax/swing/JComponent;)V+3
    j javax.swing.plaf.ComponentUI.update(Ljava/awt/Graphics;Ljavax/swing/JComponent;)V+32
    j javax.swing.JComponent.paintComponent(Ljava/awt/Graphics;)V+26
    j javax.swing.JComponent.paint(Ljava/awt/Graphics;)V+290
    j kosmos.basex.util.KosmosUtils.paintImmediately(Ljava/awt/Component;)V+7
    j kosmos.basex.ui.dialog.ProgressDialog.setProgress(I)V+36
    j kosmos.KosmosApp.Progress(Ljava/lang/String;)V+47
    j kosmos.KosmosApp.createUI()Z+823
    j kosmos.KosmosApp$1uitask.run()V+520
    j java.lang.Thread.run()V+11
    v ~StubRoutines::call_stub
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x47fa8800 JavaThread "Image Fetcher 0" daemon [_thread_blocked, id=11120, stack(0x48830000,0x48870000)]
    0x48017800 JavaThread "TimerQueue" daemon [_thread_blocked, id=4844, stack(0x486f0000,0x48730000)]
    0x47fda800 JavaThread "Thread-5" [_thread_blocked, id=8656, stack(0x486b0000,0x486f0000)]
    0x47fd6c00 JavaThread "Thread-4" [_thread_blocked, id=9784, stack(0x48660000,0x486a0000)]
    0x47f86800 JavaThread "D3D Screen Updater" daemon [_thread_blocked, id=8336, stack(0x483c0000,0x48400000)]
    =>0x47f80800 JavaThread "Thread-3" [_thread_in_native, id=11164, stack(0x47d10000,0x47d50000)]
    0x47364c00 JavaThread "Image Animator 0" daemon [_thread_blocked, id=9872, stack(0x47cb0000,0x47cf0000)]
    0x4735a400 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=11200, stack(0x47c70000,0x47cb0000)]
    0x47352400 JavaThread "APP THREAD" [_thread_blocked, id=10268, stack(0x47c30000,0x47c70000)]
    0x4731c000 JavaThread "AWT-Windows" daemon [_thread_in_native, id=10296, stack(0x47540000,0x47580000)]
    0x4731ac00 JavaThread "AWT-Shutdown" [_thread_blocked, id=8412, stack(0x47500000,0x47540000)]
    0x47317400 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=12040, stack(0x474c0000,0x47500000)]
    0x46e47c00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=10972, stack(0x471b0000,0x471f0000)]
    0x46e3d400 JavaThread "CompilerThread0" daemon [_thread_blocked, id=8952, stack(0x47160000,0x471b0000)]
    0x46e33800 JavaThread "JDWP Command Reader" daemon [_thread_in_native, id=6884, stack(0x47120000,0x47160000)]
    0x46e2cc00 JavaThread "JDWP Event Helper Thread" daemon [_thread_blocked, id=12020, stack(0x470e0000,0x47120000)]
    0x46e2a800 JavaThread "JDWP Transport Listener: dt_socket" daemon [_thread_blocked, id=10376, stack(0x470a0000,0x470e0000)]
    0x46e1b000 JavaThread "Attach Listener" daemon [_thread_blocked, id=10472, stack(0x46fa0000,0x46fe0000)]
    0x46e37800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=12052, stack(0x46f60000,0x46fa0000)]
    0x46e09000 JavaThread "Finalizer" daemon [_thread_blocked, id=10348, stack(0x46f20000,0x46f60000)]
    0x46e04400 JavaThread "Reference Handler" daemon [_thread_blocked, id=6568, stack(0x46ee0000,0x46f20000)]
    0x00847800 JavaThread "main" [_thread_blocked, id=11564, stack(0x008e0000,0x00920000)]
    Other Threads:
    0x46e01800 VMThread [stack: 0x46e90000,0x46ee0000] [id=9788]
    0x46e49c00 WatcherThread [stack: 0x471f0000,0x47240000] [id=8676]
    VM state:not at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: None
    Heap
    def new generation total 314560K, used 117447K [0x029d0000, 0x17f20000, 0x17f20000)
    eden space 279616K, 42% used [0x029d0000, 0x09c81c48, 0x13ae0000)
    from space 34944K, 0% used [0x13ae0000, 0x13ae0000, 0x15d00000)
    to space 34944K, 0% used [0x15d00000, 0x15d00000, 0x17f20000)
    tenured generation total 699072K, used 0K [0x17f20000, 0x429d0000, 0x429d0000)
    the space 699072K, 0% used [0x17f20000, 0x17f20000, 0x17f20200, 0x429d0000)
    compacting perm gen total 12288K, used 10980K [0x429d0000, 0x435d0000, 0x469d0000)
    the space 12288K, 89% used [0x429d0000, 0x43489060, 0x43489200, 0x435d0000)
    No shared spaces configured.
    Dynamic libraries:
    0x00400000 - 0x00424000      C:\Program Files\Java\jdk1.6.0_22\bin\javaw.exe
    0x7c930000 - 0x7c9ce000      C:\WINDOWS\system32\ntdll.dll
    0x7c800000 - 0x7c92f000      C:\WINDOWS\system32\kernel32.dll
    0x77f50000 - 0x77ff8000      C:\WINDOWS\system32\ADVAPI32.dll
    0x77d80000 - 0x77e12000      C:\WINDOWS\system32\RPCRT4.dll
    0x77ef0000 - 0x77f01000      C:\WINDOWS\system32\Secur32.dll
    0x77cf0000 - 0x77d7f000      C:\WINDOWS\system32\USER32.dll
    0x77e20000 - 0x77e68000      C:\WINDOWS\system32\GDI32.dll
    0x762e0000 - 0x762fd000      C:\WINDOWS\system32\IMM32.DLL
    0x62340000 - 0x62349000      C:\WINDOWS\system32\LPK.DLL
    0x73f80000 - 0x73feb000      C:\WINDOWS\system32\USP10.dll
    0x77bc0000 - 0x77c18000      C:\WINDOWS\system32\msvcrt.dll
    0x7c340000 - 0x7c396000      C:\Program Files\Java\jdk1.6.0_22\jre\bin\msvcr71.dll
    0x6d8a0000 - 0x6db47000      C:\Program Files\Java\jdk1.6.0_22\jre\bin\client\jvm.dll
    0x76af0000 - 0x76b1b000      C:\WINDOWS\system32\WINMM.dll
    0x6d850000 - 0x6d85c000      C:\Program Files\Java\jdk1.6.0_22\jre\bin\verify.dll
    0x6d3d0000 - 0x6d3ef000      C:\Program Files\Java\jdk1.6.0_22\jre\bin\java.dll
    0x6d330000 - 0x6d338000      C:\Program Files\Java\jdk1.6.0_22\jre\bin\hpi.dll
    0x76ba0000 - 0x76bab000      C:\WINDOWS\system32\PSAPI.DLL
    0x6d420000 - 0x6d449000      C:\Program Files\Java\jdk1.6.0_22\jre\bin\jdwp.dll
    0x6d740000 - 0x6d746000      C:\Program Files\Java\jdk1.6.0_22\jre\bin\npt.dll
    0x6d890000 - 0x6d89f000      C:\Program Files\Java\jdk1.6.0_22\jre\bin\zip.dll
    0x6d2b0000 - 0x6d2b7000      C:\Program Files\Java\jdk1.6.0_22\jre\bin\dt_socket.dll
    0x719e0000 - 0x719f7000      C:\WINDOWS\system32\WS2_32.dll
    0x719d0000 - 0x719d8000      C:\WINDOWS\system32\WS2HELP.dll
    0x71980000 - 0x719bf000      C:\WINDOWS\System32\mswsock.dll
    0x76ed0000 - 0x76ef7000      C:\WINDOWS\system32\DNSAPI.dll
    0x76f60000 - 0x76f68000      C:\WINDOWS\System32\winrnr.dll
    0x76f10000 - 0x76f3c000      C:\WINDOWS\system32\WLDAP32.dll
    0x64000000 - 0x64025000      C:\Program Files\Bonjour\mdnsNSP.dll
    0x76d10000 - 0x76d29000      C:\WINDOWS\system32\Iphlpapi.dll
    0x76f70000 - 0x76f76000      C:\WINDOWS\system32\rasadhlp.dll
    0x65cb0000 - 0x65d06000      C:\WINDOWS\system32\hnetcfg.dll
    0x719c0000 - 0x719c8000      C:\WINDOWS\System32\wshtcpip.dll
    0x6d0b0000 - 0x6d1fa000      C:\Program Files\Java\jdk1.6.0_22\jre\bin\awt.dll
    0x72f50000 - 0x72f76000      C:\WINDOWS\system32\WINSPOOL.DRV
    0x76970000 - 0x76aad000      C:\WINDOWS\system32\ole32.dll
    0x77160000 - 0x77263000      C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\COMCTL32.dll
    0x77e70000 - 0x77ee6000      C:\WINDOWS\system32\SHLWAPI.dll
    0x5a480000 - 0x5a4b8000      C:\WINDOWS\system32\uxtheme.dll
    0x6d2e0000 - 0x6d32f000      C:\Program Files\Java\jdk1.6.0_22\jre\bin\fontmanager.dll
    0x47580000 - 0x4759e000      C:\WINDOWS\SoftCamp\SDS\DSEDCon.dll
    0x7d5a0000 - 0x7dd9c000      C:\WINDOWS\system32\SHELL32.dll
    0x77bb0000 - 0x77bb8000      C:\WINDOWS\system32\VERSION.dll
    0x47450000 - 0x4745e000      C:\WINDOWS\DSIpcAg.dll
    0x475a0000 - 0x475a8000      C:\WINDOWS\system32\SXTracer.dll
    0x73d10000 - 0x73e0e000      C:\WINDOWS\system32\MFC42.DLL
    0x61300000 - 0x6130d000      C:\WINDOWS\system32\MFC42LOC.DLL
    0x477d0000 - 0x477f6000      C:\WINDOWS\WRMK.dll
    0x74660000 - 0x746ab000      C:\WINDOWS\system32\MSCTF.dll
    0x75110000 - 0x7513e000      C:\WINDOWS\system32\msctfime.ime
    0x47960000 - 0x479c9000      C:\WINDOWS\system32\IMKR12.IME
    0x770d0000 - 0x7715b000      C:\WINDOWS\system32\OLEAUT32.dll
    0x78130000 - 0x781cb000      C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.4053_x-ww_e6967989\MSVCR80.dll
    0x7c420000 - 0x7c4a7000      C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.4053_x-ww_e6967989\MSVCP80.dll
    0x4b9e0000 - 0x4bb86000      C:\WINDOWS\system32\d3d9.dll
    0x6de50000 - 0x6de56000      C:\WINDOWS\system32\d3d8thk.dll
    0x6d6b0000 - 0x6d6c3000      C:\Program Files\Java\jdk1.6.0_22\jre\bin\net.dll
    0x6d4f0000 - 0x6d515000      C:\Program Files\Java\jdk1.6.0_22\jre\bin\jpeg.dll
    0x47cf0000 - 0x47d00000      C:\Program Files\NATEON\BIN\NateOnHook40u.dll
    0x6d6d0000 - 0x6d6d9000      C:\Program Files\Java\jdk1.6.0_22\jre\bin\nio.dll
    0x6c000000 - 0x6c02a000      C:\WINDOWS\SoftCamp\SDS\ASCore.dll
    0x6d250000 - 0x6d273000      C:\Program Files\Java\jdk1.6.0_22\jre\bin\dcpr.dll
    VM Arguments:
    jvm_args: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:9607 -Xms1G -Xmx1G -Xss256K -Dlog4j.configuration=file:D:/Project_Work/etc/log4j.xml -Dfile.encoding=MS949
    java_command: kosmos.KosmosApp yslee bnp
    Launcher Type: SUN_STANDARD
    Environment Variables:
    JAVA_HOME=C:\Program Files\Java\jdk1.6.0_22
    CLASSPATH=.;C:\Program Files\Java\j2re1.4.2_11\lib\ext\QTJava.zip
    PATH=C:\Program Files\Java\jdk1.6.0_22\jre\bin;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ESTsoft\ALZip;C:\Program Files\Java\jdk1.6.0_22\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\ESTsoft\ALZip;C:\Program Files\IDM Computer Solutions\UltraEdit\
    USERNAME=20964
    OS=Windows_NT
    PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 11, GenuineIntel
    --------------- S Y S T E M ---------------
    OS: Windows XP Build 2600 Service Pack 2
    CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 15 stepping 11, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3
    Memory: 4k page, physical 2062180k(626912k free), swap 4004456k(1282796k free)
    vm_info: Java HotSpot(TM) Client VM (17.1-b03) for windows-x86 JRE (1.6.0_22-b04), built on Sep 15 2010 00:56:36 by "java_re" with MS VC++ 7.1 (VS2003)
    time: Tue Jan 11 16:39:14 2011
    elapsed time: 43 seconds

    thank you for your reply.
    I tried to update my video driver, but also happened this.
    my client told me to update registry authorization of javaSoft to Administrator's authorization.
    so I will try to do this.
    I will update this to you.

  • How can i use JAVA BEAN and JSP?

    well, i have developed all my web apps by using pure JSP only, i know this sucks, but i dont know how to start on using beans... what directory should i put them into... etc... what are the good programminmg practices/standards/techniques when incorporating beans in jsp???

    Standards are pretty loose, but generally, Beans hold a lot of the backend logic for your JSP. This can include data validation before entering into the database, database inserts, queries, data manipulation. The JSP should really only contain code that will retrieve the data from the bean and appropriately output it.
    As far as using them, you can use the <jsp:useBean> tag in your JSP. As long as the bean is stored somewhere that your classpath points to, you're all set. From then on, you can use it like any other object in your JSP.

  • How can i execute vb scripts in java program

    hi
    how can i execute any batch files or any other exe files (vb scripts) from java programs
    thanks

    Hi,
    You use Runtime.exec to execute commands / exe-files. See the documentation (and remember that it will only work on windows):
    http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html
    /Kaj

  • How can I execute a batch file from my java program

    Hi,
    Can someone help me or direct me to a link,
    How can I execute a DOS batch file from my java program?
    Thanks

    You will need to grab a handle to the process's
    outputstream so u can see its output.The OP didn't mention any output from any batch file;
    nor any input for that
    matter,so lets not complicate matters here for now
    ok?Actually I think this is essential to see whether it works or not. It's either that or do some manual check to see whether it ran, which is not exactly elegant, and in some cases this may not be easier than simply writing the output stream code, or in fact it may be impossible to check manually.
    I'm sure it wasn't intentional that your post appeared to be bristling with attitude.

  • How Can I execute a java program using java code?

    {color:#000000}Hello,
    i am in great trouble someone please help me. i want to execute java program through java code i have compiled the java class using Compiler API now i want to execute this Class file through java code please help me, thanks in advance
    {color}

    Thanks Manko.
    i think my question was not clear enough.. actually i want to run this class using some java code . like any IDE would do i am making a text editor for java, as my term project i have been able to complie the code usign compiler api and it genertaes the class file but now i want to run this class file "THROUGH JAVA CODE" instead of using Java command. I want to achive it programatically. do you have any idea about it.. thanks in advance

  • How to call stand Alone java program from jsp

    Hello all...
    I want to use the stand alone java program in jsp page. I compiled the java program and place the class file in classes folder under web-inf. But when i try to instantiate the java class inside jsp it is not recognizing the class. Where might be the problem
    Plz help....
    Shamim

    hi , this is dheeraj.. i need to know that how to execute java code and class in jsp.. if anyone know about if bt tell me.. i just know that we can use java code by java beans in jsp.. if you know any knowledge regarding this topic please send me.....

  • How can we  use java variable in javascript code on JSP page?

    How can we use java variable in javascript code on JSP page?
    Pls help

    Think about it:
    JSP/Java is executed on the Server and produces HTML+JavaScript.
    Then that HTML+JavaScript is transfered to the client. The client now interpretes the HTML+JavaScript.
    Obviously there's no way to access a Java variable directly from JavaScript.
    What you can do, however, is write out some JavaScript that creates a JavaScript variable containing the value of your Java variable.

  • How to execute java programs in xcode

    I cannot execute Java program in XCode for Mountain Lion 10.8.2. Please help me how to execute a Java program.

    Do you have a particular error or message or diagnostic or issue, or something that's particularly wrong with Xcode?  If installed, Java does work, and Java applications can be invoked.
    Background: Java was deprecated from OS X a while back, and Java itself was removed from the default OS X 10.8 installation.
    Given that Java is now an add-on for OS X, you'll want to check with Oracle — the owner of Java — for OS X kits and tools.
    I don't know off-hand if Xcode still particularly supports Java (it was pretty weak, when last I checked), but I'd expect you'll be using makefiles for the work, and I'd also suspect that whatever Java support remains in Xcode will probably be going away in some future version of Xcode.   (If support hasn't already disappeared.  You may be using bash build scripts and makefiles to deal with Java now, or going forward.)
    If you don't have access to the Apple developer forums and the discussions of tools available there, then the archives of the Apple Java-Dev mailing list can be a good spot to look for existing discussions, and to post questions related to Java development on OS X.
    As for IDEs other than Xcode,  Eclipse or NetBeans or IntelliJ IDEA, and BlueJ all run on OS X, and any of these would probably be a better long-term choices for Java development on OS X.

  • How can I execute program after using F4_Filename function?

    Hi all,
    I'm a new user on the forum. I've been working with ABAP and SAP for a few weeks. I wrote a program for importing data from excel file to SAP using BDC. During searching this forum I found information about F4_Filename function which allows users to browse the disc for a file. I'd like to add this function to my program. I have a parameter for a file name but this is an ordinary static string field. When I added the code which I found in the message on this forum the rest of program doesn't execute.
    This is simple program for example:
    REPORT  Z_TEST8_AB.
    DATA f_name TYPE STRING.
    PARAMETERS p_file like rlgrap-filename DEFAULT 'c:\test.xls'.
    f_name = p_file.
    write:/ f_name.
    This program works correctly. There is a field for parameter. I can change the default name for a file.
    After all, I can run the program (F8) and rest of the code is executed. The field for parameter dissapears from the screen and the file name is displayed. ( command write)
    Now I added a function F4_Filename
    REPORT  Z_TEST8_AB.
    DATA f_name TYPE STRING.
    PARAMETERS p_file like rlgrap-filename DEFAULT 'c:\test.xls'.
    at selection-screen on value-request for p_file.
      call function 'F4_FILENAME'
           exporting
                program_name  = syst-repid
                dynpro_number = syst-dynnr
                field_name    = 'p_file'
           importing
                file_name     = p_file.
    f_name = p_file.
    write:/ f_name.
    I can browse a computer for a file now but after selecting the file I can't run the rest of the code. When I click on the icon or press key F8 the field for parameter doesn't dissapier and the command write is not executed.
    What do I do wrong?
    Could anyone suggest me a solution? How can I executed the code after using this function?
    Thanks in advance.
    Regards,
    Arek.

    Hi arkadiusz,
    1. simple
    2.
    <b>start-of-selection.</b>
    f_name = p_file.
    write:/ f_name.
    regards,
    amit m.

  • How can we call java control source methods within jsp

    Hi guys!
              How can we access java control source methods that are defined in java control projects within jsp.I am getting error when I tried to call java control source's methods in scriptlet of JSP page.Any help/suggestion is appreciated.
              Thanks
              -Chandu

    Uh, what?
    (And you are sure that it's not a Weblogic-specific question?)

  • How can i execute excelsheet without giving path in java

    Hi,
    How can i execute excelsheet without giving path in java, through this code, you can open the notepad but
    I want whereever the excel is installed in your machine , fine and open excelsheet without given absolute path.
    class ExecuteCommand{
    public static void main(String d[]){
         Runtime r = Runtime.getRuntime();
         Process p= null;
         try{
         p = r.exec("notepad");
              catch(Exception e){
                   System.out.println("error");
    If you know please send me your idea and code samples.
    regards
    Mohan kumar

    just execute the exelfile with the Windows "start" command:
    Runtime.exec("cmd /c start "+excelFileName);But this requires that Excel is the default application for the Excel file type (*.xls). You can test this by simply typing "start myTestExcel.xls" in a dos box.

  • How can I assign javascript variables to jsp or java variables.?

    How can I assign javascript variables to jsp or java variables.?

    See I have generated some variables in the javascript which is on the jsp page. I want to assgin these variables to the jsp vaiables. Or how can I access javascript variables from jsp on the same jsp page.

  • How to request Administrator or root to execute java programs?

    How to request Administrator or root to execute java programs when the user is not enough permission?
    as same as following image:
    Windows : http://img151.imageshack.us/img151/6113/winrw5.gif
    Linux: http://img374.imageshack.us/img374/8990/linuxsj4.png
    Edited by: lauangus on 2008?10?13? ??9:15

    Dear Sys Admin,
    Would you please grant me and my group enough rights to do the tasks that have been assigned to us, we are using the following programs. They will need to asccess....
    Sincerely,
    lauangus
    Note: this will usually have to be accompanied by appropriate supervisor signatures and endorsements.

Maybe you are looking for

  • Windows 7 64bit Drivers for my Pavilion g7 2235dx

    I had to "downgrade" my parents new laptop to Windows 7 because  they found Windows 8 on a laptop to be hard to use. The problem I'm having is the HDMI port doesnt work, as well as the 2 USB ports right next to it. When I open the device manager, I s

  • Ios 7.1 - Barrett life further gone down to the **** and call is full screen feature remived

    Yesterday I have updated my ios to latest version 7.1 . Now am thinking if returning back to downgrade my os or some other models . It's irritating me a lot . My battery life totally gone . In standby mode fully charged mobile not even withstanding f

  • Does setQueryTimeout work or not?

    We're using oracle 8i on windows nt with the classes111.zip jdbc library. If I lock a table and then my code tries to update it, my query hangs even though I've set the query timeout to 5 seconds. I've read in several discussion groups that there is

  • Editing a recording to make 2 versions (longer and shorter for a special topic)

    I recorded a multi-topic session as a single 2 hour recording.  I was able to edit out the "lag" portions of the session so I have a nice final presentation of the various speakers/ topics.  However, I want to also produce a 2nd recording of just the

  • How to export films from Itunes to external hard drive?

    I have movies and TV shows on my Itunes that I have brought from the Itunes Store. I would like to export them on to a external hard drive as I have Keenwood dvd player in my car that can play films from my ipod/iphone. I have tryed just drop and dra


HashFlare