RUN JAVAWS command line in text-mode Linux environment

I want to hit a JNLP-URL through command line JAVAWS , but whenever i try to hit it first time it tries to show me the security dialog to accept the certificate but since i am running JAVAWS in a Linux environment which has only text-mode and no graphics , it fails with the following exception.
Java Web Start splash screen process exiting .....
Splash: X11 connection failed: No such file or directory
Exception in thread "javawsApplicationMain" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:1
59)
at java.awt.Window.<init>(Window.java:310)
at java.awt.Frame.<init>(Frame.java:419)
at java.awt.Frame.<init>(Frame.java:384)
at javax.swing.SwingUtilities$SharedOwnerFrame.<init>(SwingUtilities.jav
a:1666)
at javax.swing.SwingUtilities.getSharedOwnerFrame(SwingUtilities.java:17
43)
at javax.swing.JDialog.<init>(JDialog.java:212)
at javax.swing.JDialog.<init>(JDialog.java:163)
at com.sun.javaws.ui.console.Console.<init>(Console.java:44)
at com.sun.javaws.Launcher.run(Launcher.java:110)
at java.lang.Thread.run(Thread.java:595)
Any pointers or workarounds would be appreciable. I dont want to install a X-environment on my linux box , since the application i am downloading is not even GUI application and i dont require graphics at all
Thanks In Advance
JNLP Khurana

Hi 23r23,
While there might be a finite limit to the number of characters in the command for the Run object, it is definitely more than your current command.
The problem in your case sems to be the path of your files. Since you have spaces in the folder names, you will have to enclose this in two sets of double-qoutes as below:
"cmd /c move /y ""C:\Program Files\National Instruments\Lookout 5.1\2004\*.*"" \\leo-2k1\Groups\Film\Data\2004"
Normally, as with the DOS command prompt, you would need only one set of double qoutes with paths that have spaces. However, Lookout expects two sets of double-quotes because one set of double-qoute is part of the command.
About moving the file while Spreadsheet object is writing to it, I don't think doing th
is is a good idea even if the cmd allowed it. Anyways, you can try it out to see if it does.
Regards,
Khalid

Similar Messages

  • Error while running ComponentTool command line

    Hi ,
    I am getting following exception while running command line component tool in linux
    ./ComponentTool --list
    csPathUnableToFindParameter(IdcProductName,$IdcResourcesDir/core/config/defaultconfig-$IdcProductName.cfg)
    Please give some pointer to get out of this issue
    Thanks
    Hari
    Edited by: Hari on Apr 2, 2012 4:04 AM

    Hi Jonathan,
    configFileList value is ConfigFileList=$IdcResourcesDir/core/config/defaultconfig-$IdcProductName.cfg
    we have following files in core/config directory
    defaultconfig.cfg launcher-aix.cfg launcher-hpux64.cfg launcher-hpux-ia.cfg launcher-linux-s390.cfg launcher-solaris64.cfg launcher-solaris-x86.cfg
    defaultconfig-idccs.cfg launcher.cfg launcher-hpux.cfg launcher-linux64.cfg launcher-linux-s390x.cfg launcher-solaris-amd64.cfg launcher-win32.cfg
    launcher-aix64.cfg launcher-freebsd.cfg launcher-hpux-ia64.cfg launcher-linux.cfg launcher-osx.cfg launcher-solaris.cfg launcher-windows-amd64.cfg
    Thanks
    Hari

  • Clear screen in "Run SQL Command Line" causes the utility to dump in Window

    Just for your notice... I have not checked if i can reproduce this on Linux platform or on second node running Windows XP Pro.
    But if I use "Run SQL Command Line" utility and do
    clear screen
    The utility dumps, (not the database though only the utlility)
    Maybe some other people could confirm if this findings is a bug or not and if it is a port specific issue with Windows XP only.
    Kindly Rgds
    /Ulf, Kentor IT Sweden

    Tracking info is in
    Re: SQL*Plus generated Program Error
    -- cj

  • Error while running the SAP JCO java program running via command line

    Hi,
        We are facing an issue while using SAP JCO. When i try to run the sample program using RAD 8.0 ( IBM IDE tool For Java Development) its working fine.
    The same sample program if i try to run using command line, Then its giving below exception message.
    Exception in thread "main" java.lang.NoClassDefFoundError: Integration
    NOTE: I have configured proper sapjco jar & Dll files path in class path settings in my batch file.

    Hi,
    class loader can't find class definition during runtime but it could find it during compilation. So the problem is with your classpath. Does your classpath point to file with class Integration? Check this [blog|http://javarevisited.blogspot.com.au/2011/06/noclassdeffounderror-exception-in.html].
    Cheers
    Added reference to blog.

  • Running a command line in Java

    Dear all,
    I have a question, I need to run a command line in a Java program. The commands line is the next:
    cas.exe -i file1
    I have been seeing in internet and I have tried:
    Process ls_proc = Runtime.getRuntime().exec("cmd /c start D:\\cas>cas.exe -i file1");
    it start the window where the cas folder is... but it dont run the commands line : cass.exe -i file1 :(
    Somebody can help me, please??
    Andrea

    try running it like this.
    Process ls_proc = Runtime.getRuntime().exec("cmd /c start D:\\cas>cas.exe -i file1" +"\n");
    if that does not work put this underneath the original.
    ls_proc.newLine();
    or look into the ProcessBuilder class in java.lang.

  • How to run a command line argument

    i want to run a command line argument, say for eg......i want to execute the "dir" command on the dos prompt and capture the output.
    how can i do this.
    actually i want to capture the output of the ping command and write it to a file. can any body plsssssss help

    This command runs a ping to "address" and writes the output back to the command line. To capture it, just put strings into an array or do whatever you want with it. If you want to wait until the program completes before reading its input, use p.waitFor().
    Process p = Runtime.getRuntime().exec("ping " + address);
    BufferedReader in = new BufferedReader(new InputStreamReader(p.getInputStream()));
    String currLine = null;
    while((currLine = in.readLine()) != null)
      System.out.println("ping: " + currLine);
    [/code                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • ??command line for texting to phone number??

    Hi there are few commands on https://support.skype.com/en/faq/FA171/can-i-run-skype-for-windows-desktop-from-the-command-line
    but i am looking command for texting to phone number?

    Hi, Cigilgan, and welcome to the Community,
    Any new command lines would be introduced via an update to the FAQ article you cited.
    Regards,
    Elaine
    Was your question answered? Please click on the Accept as a Solution link so everyone can quickly find what works! Like a post or want to say, "Thank You" - ?? Click on the Kudos button!
    Trustworthy information: Brian Krebs: 3 Basic Rules for Online Safety and Consumer Reports: Guide to Internet Security Online Safety Tip: Change your passwords often!

  • Programed in Eclipse, runs under Eclipse doesn't run from command line

    Hi,
    have created a small Java program under Eclipse. When I right click on the package and select Run As: Java Application from the IDE the program starts fine.
    On the other hand if go from the command line ( I'm under WinXP ) and I type java ProgramName under the directory which contains the .class and .java file I get an exception message saying: Exception in thread "main" java.lang.NoClassDefFoundError: ProgramName ( wrong name: ProgramName/ProgramName ) followed by a stack trace type thing.
    If I do java ProgramName.class or java ProgramName.java I get a shorter but similar message saying:
    Exception in thread "main" java.lang.NoClassDefFoundError: ProgramName/Class
    I don't know what could be wrong, at first I thought about the PATH variable but it doesn't seem to be the case.

    Hi Sarah
    Thanks for replying and sorry for the delay - been on holiday :-)
    I am not running any security additions, just a vanilla Fedora 5 Linux installation.
    Does anyone have any suggestions as to where I may look to solve this problem as I am at a loss at the moment.

  • Executable Jar files can't be run without command line

    Hello,
    A few months ago, I was messing with some executable jar files, but now I can't run them anymore without a batch file or command line, so how do I fix this?
    Thanks in advance,
    Yves W.
    Edited by: Yves W on 18-dec-2010 15:56

    Open a command prompt.
    Type
    assoc .jarYou should get:
    .jar=jarfileIf not, type:
    assoc .jar=jarfileNow type:
    ftype jarfileYou should get something like this (adjust the path to javaw.exe for your system):
    jarfile="C:\Program Files\Java\jre6\bin\javaw.exe" -jar "%1" %*If not, type (adjust the path to javaw.exe for your system):
    ftype jarfile="C:\Program Files\Java\jre6\bin\javaw.exe" -jar "%1" %*

  • How to run ADF command-line test-client on standalone weblogic host

    I have followed the steps to create a test client for the ADF application. In used the following link:
    http://download.oracle.com/docs/cd/B31017_01/web.1013/b25947/bcquerying007.htm
    The above link does not talk about how to setup the environment where the standalone weblogic is installed to be able to run the test client.
    I can run it in the jdeveloper environment.
    I can also run from the command line on the development host, by cut-paste the command from the jdeveloper output log tab.
    I am trying to run this client on the machine where we have a weblogic installed (standalone) for testing. We can run our ADF application from the browser with no issues. We want to automate and run some testing related to the ADF model (non-viewcontroller part) from the command line on this test stage.
    Which/Where are the ADF libraries?
    How can I add our application jar deployed on the weblogic (ear file) to the CLASSPATH?
    What other libraries ADF/Weblogic do I need for the command line test client?
    What am I missing?
    Thanks for any help.
    Edited by: mmunawar on Jul 2, 2011 1:03 PM
    Edited by: mmunawar on Jul 2, 2011 1:04 PM

    create weblogic application server connection from jdeveloper and then Deploy that application through jdeveloper in the weblogic application server and then run it from jdeveloper and see if its working.

  • Running a Command Line via a Package

    Hi,
    I am trying to deploy the following command line via a package to my servers but for some reason the results are as expected. The command I am trying to run is:
    reg add "hklm\software\microsoft\windows nt\currentversion\softwareprotectionplatform" /f /v "KeyManagementServiceName" /t reg_sz /d "dc4hmancmddc1.mydomain.local"
    When I look in the log files on the server the command is being executed as:
    <![LOG[Command line = "C:\Windows\system32\reg.exe" add "hklm\software\microsoft\windows nt\currentversion\softwareprotectionplatform" /f /v "KeyManagementServiceName" /t reg_sz /d "dc4hmancmddc1.mydomain.local",
    Working Directory = C:\Windows\system32\]LOG]!><time="12:44:32.391+00" date="02-24-2014" component="execmgr" context="" type="1" thread="3976" file="scriptexecution.cpp:346">
    Why is this is not working? If I run the command manually on the server, it works and reg key is updated correctly.
    PS: I am probably being really stupid here but any help is appreciated.
    Thank You
    Mayur

    Hi,
    Just looking at the logs file, I see this:
    <![LOG[Running "C:\Windows\system32\cmd.exe" /c "C:\windows\system32\reg.exe add "hklm\software\microsoft\windows nt\currentversion\softwareprotectionplatform" /f /v "KeyManagementServiceName" /t reg_sz /d "dc4hmancmddc1.osmanage.local" with 32bitLauncher]LOG]!><time="13:06:32.677+00"
    date="02-24-2014" component="execmgr" context="" type="1" thread="4024" file="scriptexecution.cpp:364">
    It is launching it with 32bit launcher. So is this still a problem with 64bit redirection?
    The thing is before trying this reg fix I tried several times to run command: slmgr.vbs /skms servername.local via  a packag which executed successfully but again the KMS server wasn't updated. So something tells me this is a different problem?

  • Command lines in text module is not working in adobe forms

    Hi,
    I have a problem, I have a text module with variables and I placed it in Adobe form its working fine, my problem is I added a command line /: NEW PAGE in the text module, it couldn't trigger a new page at that place.Can anyone help me out in this regard.
    Regards,
    Manohar.

    Hi Manohar,
    Adobe wont support text modules with commands.
    Explain your requirement.
    pavan meda

  • Class files created with JBuilder don't run from command line ?

    I have created an Application with JBuilder which is
    running perfectly from within JBuilder.
    However when I tried to run the app from the command line using c:\java ...... I got an error
    Exception in thread "main" java.lang.NoClassDefFoundError: ItasApplication/class
    I also tried to compile my .java files with javac which
    worked perfectly but I got the same message when trying
    to run the app!
    Can you help me ?

    I did this and I got this message :
    Exception in thread "main" java.lang.NoClassDefFoundError: ItasApplication (wron
    g name: itasgui/ItasApplication)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:11
    1)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)

  • Query runs from command line, but not from scheduler

    We use Control-M to schedule shell scripts to be run on a Solaris server. Some of the scripts have to access an Oracle database and in that case our security team will include the DB user and password in the script, then encrypt it and the sys admin team schedules the encrypted shell script with Control-M. That works fine, but we've been trying to have the DB user and password on a separate encrypted file so that we don't have to ask for file encryption every time it's necessary to modify a script (this is a test environment).
    We have the script at ~/system_name/scripts, the query at ~/system_name/sql and the encrypted file and key at ~/system_name/keys. The SQLPlus call in the script is:
    ${ORACLE_HOME}/bin/sqlplus "`decrypt -a 3des -k ./../keys/key.3des.system -i ./../keys/login.system`"@instance_name <<EOF
    @${DIR_SQL}/TEST_QUERY.SQL
    quit
    EOF
    The security analyst has tested is successfully from command line, but when we schedule it with Control-M the job abends and we get the following in the sysout:
    + decrypt -a 3des -k ./../keys/key.3des.system -i ./../keys/login.system
    decrypt: cannot open ./../keys/key.3des.system
    decrypt: invalid key.
    + /u00/app/oracle/product/11.1.0/db_1/bin/sqlplus @instance_name
    + 0<<
    @/sistemas/hmp/system_name/sql/TEST_QUERY.SQL
    quit
    SQL*Plus: Release 11.1.0.6.0 - Production on Mon May 3 09:41:55 2010
    Copyright (c) 1982, 2007, Oracle. All rights reserved.
    SP2-0310: unable to open file "instance_name.sql"
    Enter user-name: SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER|SYSASM}]
    where <logon> ::= <username>[<password>][@<connect_identifier>] [edition=valu\
    e] | /
    SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER|SYSASM}]
    where <logon> ::= <username>[<password>][@<connect_identifier>] [edition=valu\
    e] | /
    Enter password:
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
    0000000080
    Any ideas?

    Looks like the command is being split in some way - the connection to sqlplus is being made before it completes the whole string
    It appears to be seeing the @instance_name as a script to execute rather than a db to connect to.
    Is the database on the same server as the script?
    If so, try setting your environment to the correct databsae, so that you can omit the @instance_name part of the syntax and see if it helps
    Also just noticed the failure to open the decrypt script. It would appear uyou are not using a full path name. Have you checked which directroy the scheduled job starts in? You may need to look at running some environment specific scripts first.
    Edited by: LindaA on 05-May-2010 07:43

  • How to run a command line window from code?

    In an application I need to run a dll file with a few arguements. These arguements can be given in the command line window. The execution of the dll file will return a string that i need to get (for the parsing etc).
    1. How can I open a command line window from the Java code?
    2. How to run commands on it?
    3. How to get the results of the commands from the command line into my program?

    In an application I need to run a dll file with a few
    arguements. These arguements can be given in the
    command line window. The execution of the dll file
    will return a string that i need to get (for the
    parsing etc).
    A dll is used by other programs. It is not possible to run it from the command line.

Maybe you are looking for

  • Probably a stupid display question

    I shoot with a canon xh-a1 edit with a mbp 15". What im wondering is if I wanted to edit on a bigger screen then my laptop and do some coloring, would it be stupid to think that using a lcd tv as a display would work? The reason I ask is I could go t

  • How can I load a content area in the floor plan manager?

    Hi Guys, I´d like to load a content_area (Page 1 Initial Screen) from another (Page 2 Main screen). Basically, I want to go back to the initial screen from the main screen. How could I do this? (A piece of code would be very useful). Thanks

  • Connecting my iMac to my Hughesnet modem?

    Can someone please help me to connect my iMac to my Hughesnet modem? The tech who installed my Hughesnet said he could not get my computer to recognize my modem and Apple said that I had to pay to get help. If someone could please help, I would appre

  • HT201822 Is there a way to improve Apple's default "ignore accidental trackpad input" function?

    I find I frequently end up typing in the wrong place and/or deleting text because the size of the trackpad leads me to touch it accidentally, usually with my right hand below the thumb. Is there any way to improve on the built in function in Lion?

  • How to resize a photo to 6 x 4 inches

    I have a photo in PE Organizer/Editor which according to the document size it is 6.6667 inches x 8.917 inches. I know to select image from the menu but not sure whether to select image size or canvas size? I select Print, choose the print settings, p