How to pass arguments to JVM containing spaces on Solaris

How to pass the value of the JVM Argument containing spaces on Solaris?

For example, I need to run tests of cucumber and pass the following JVM argument:

-Dcucumber.options = "features - classpath:com glue, company, projects, steps"

But I get the following error:

Unrecognized option:-glue

Could not create the Java virtual machine.

Seems that the space after "features" is recognized as a delimiter, even if I put the value in quotes.

Everything works fine on Windows, but fails on Solaris 5.10.

Any ideas?

Thank you.

Problem is solved. The cause was illogical in quotes in Shell.

This does not work, she same product works the same string on Windows:

CUCUMBER_OPTIONS = "-Dcucumber.options =-" $FEATURES_PATH - fit $STEPS_PATH\ "" "

JVM_OPTIONS = "$CUCUMBER_OPTIONS $OTHER_OPTIONS".

$JAVAHOME/bin/java org.junit.runner.JUnitCore com.company.project.runner.TestRunner $JVM_OPTIONS

While this is the case, even the value $FEATURES_PATH-$STEPS_PATH glue is not quoted:

CUCUMBER_OPTIONS = "glue-Dcucumber.options = $ FEATURES_PATH-$STEPS_PATH.

JVM_OPTIONS = $OTHER_OPTIONS.

$JAVAHOME/bin/java '$CUCUMBER_OPTIONS' $JVM_OPTIONS org.junit.runner.JUnitCore com.company.project.runner.TestRunner

Tags: Java

Similar Questions

  • How to passing arguments to an exe

    Hai Everbody

    I know that LabVIEW has the ability to call an exe file created in different platform, can I know how to pass arguments to the special exe (which is located in another platform) via LabVIEW... I wish someone could help me out of this

    Thanks for your answers, I found the solution... As the exe is in .net, I used the syntax for the command line arguments in .net...

  • How to pass arguments to the SQL Script in command prompt

    I don't know about the ' & nom_de_variable "to request a value in the command line.

    But, how can I pass arguments from the command line for the following script to the command - prompt

    Example:

    ex_proc. SQL

    CREATE OR REPLACE PROCEDURE ex_proc (employee_id NUMBE IN)
    IS
    v_emp_id Number (38);
    BEGIN

    v_emp_id: = employe_id;

    UPDATE emp_employee SET sal = 2000 WHERE emp_id = v_emp_id;

    END;
    /


    call_ex_proc. SQL

    Appellant for procedure above:

    BEGIN

    ex_proc (100); -The employee id is 100.

    END;
    /

    Here are the General controls that we use to run the scripts above-

    SQL > @ex_proc.sql

    SQL > @call_ex_proc.sql



    But my requirement is to pass the employee id as an argument in the command line as.
    SQL > @call_ex_proc.sql 100

    Is it possible to pass command line arguments?

    Usually this question start with reading documentation, wouldn't it?

    Solomon Yakobson showed you the method gross and unreadable.

    You will use best

    set = '& 1' '.

    -use & in the rest of the code

    ----------
    Sybrand Bakker
    Senior Oracle DBA

  • How to pass arguments to a manufacturer of components

    Hello, I need a little help. I created the new components in flash builder, and I don't know how to give arguments to its constructor. If create a new component named "MyComponent", I would like to pass some of the arguments, something like:

    var myComponent1:myComponent = new myComponent (myAgrument);

    I usually do with the as3 classes, but I don't know how to do with flex components.

    Thx for the help

    Max

    Yes, something like

    SerializableAttribute public class MyClasss extends group

    {

    private var var1:MyCustomType;

    public void MyClass(arg:MyCustomType)

    {

    var1 = arg;

    }

    }

    HTH,

    C

  • How to pass arguments of JavaScript

    Hi guys,.

    I'm trying to run a JavaScript from my plugin written in C++. I use CS6. I want to read some of the arguments of C++ plugin by running the script file to set value for IScriptArgs key pair

    Here is my code:

    ScriptRunner InterfacePtr < IScriptRunner > (() Utils < IScriptUtils >-> QueryScriptRunner (scriptFile));

    PMString theReturnString;

    PMString theErrorString;

    ScriptRecordData args;

    ScriptData sScript (scriptFile);

    ScriptData sResultData;

    Utils < IScriptArgs > ()-> Save();

    Utils < IScriptArgs > ()-> Set ("arg1", "val1");

    Utils < IScriptArgs > ()-> Set ("arg2", "val2");

    status is < IScriptUtils > ()-> DispatchScriptRunner Utils (scriptRunner sScript, args, sResultData, theErrorString, kFalse);.

    Utils < IScriptArgs > ()-> Restore();

    Here is the script I use to get the ScriptAgrs arguments:

    var arg1 = app.scriptArgs.get ("arg1");

    var app.scriptArgs.get ("arg2") = arg2;

    But it does not work on CS6,'s done it on CC2015 and CC2014.

    I can get as a single argument or arg1 arg2, I can't get two arguments as above coding,.

    Can someone help me, please!

    Sorry, that's my bad. The cause is DispatchScriptRunner running failed with the error message "cannot process the request because a modal dialog box or the alert is active.

  • How to pass an argument to a standalone java class JDeveloper

    For the experienced:

    In JDeveloper when you write a java class with a main() method that takes no arguments, you just click with the right button on the java file and choose run to run the program. But suppose the main() method takes arguments, how to move your arguments to the program? This is especially a problem I use the studio version of JDeveloper (10.1.3.4 and 11.1.1.3 Versions) that each uses the version of the JDK included with, rather the JDK (which is yet another different version) installed at the level of the OS on the PC.

    Thanks a lot for your help!


    Newman

    Hello

    If you mean how to pass arguments in JDeveloper:
    Tools > Project Properties > run/debug > change the default run Configuration (or create a new) > settings start > program Arguments - here you can set arguments

    Kind regards
    Branislav

  • How to pass parameters to a Flex application?

    I'm new to Flex programming, and I need to pass to a server
    parameter generated at my test Flex application below. Can someone show
    me a MINIMUM of HTML page size that can pass the "myname" parameter to
    my Flex application?

    Thanks in advance,

    Beard

    <? XML version = "1.0" encoding = "utf-8"? >
    " < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML "creationComplete ="initVars ()">
    < mx:Script > <! [CDATA]
    [Bindable]
    public var myName:String;
    private function initVars (): void {}
    myName = Application.application.parameters.myName;
    }
    []] > < / mx:Script >
    < text mx:Label = "name:"{myname}"" / >
    < / mx:Application >

    Hello

    This docs page contains different version (more short long, static and generated) on how to pass arguments to the application through vars:

    http://livedocs.Adobe.com/Flex/3/HTML/Help.HTML?content=passingarguments_3.html

    (you simply set variable in the object that hosts your flash animation in a page, see doc linked for more details)

    Kind regards

    Peter

  • How to pass an argument of javascript to java extension

    Hello, I have an application running with a Java Extension.

    For the course of time, I only call some java extension methods (ScriptableFunction, but now, I have to pass the variable javascript (arguments) to the extension.

    I call a method with:

    // In: public final class MyCamera extends ScriptableFunction
    
    public Object getField(String name) {
    
        if (name.equals("getImage")) {
         return callGestorCamera.pushUICameraSnapshot();
        } 
    
        return new String("do nothing");
    }
    

    and javascript :

    function getImage() {
        var name = mycamera.camera.getImage;
        return name;
    }
    

    and run correctly.

    But now I have to pass one argument, as some URL, and I don't know how to do.

    I try to move the handful of Java class to Javascript, something like this:

    // In: public final class MyCamera extends ScriptableFunction
    
    public Object getField(String name) {
    
        if (name.equals("getImage")) {
         return callGestorCamera.pushUICameraSnapshot();
        } 
    
        if (name.equals("getObject")) {
         return callGestorCamera;
        }
    
        return new String("do nothing");
    }
    

    and javascript :

    function setUrl(url) {   var handle = mycamera.camera.getObject;        handle.setUrl(url);
    
        return true;}
    

    but is not running and try:

    mycamera.camera.getObject.setUrl(url);
    

    but does not work.

    What is the way?

    Thank you!

    I believe that the Extensions lab shows how to pass a parameter to a function... For example, he spends the duration of the vibration.

    http://NA.BlackBerry.com/eng/developers/devbetasoftware/Lab_Widget_Extension.zip

  • You need to pass arguments to the Sub - VI which runs in parallel to the main vi.

    Please help me.

    I can pass arguments to a subvi using "call-by-reference-node" but the sub - vi will not work in parallel.  I can also run my sub - vi in parallel using "invoke the node", but then cannot pass arguments.  I can't understand how to merge these two concepts.

    When I open the reference VI, I specify the strict type, using call-by-reference-node.  When I use call node, I don't specify the type.  It seems that specifying the type strict guard screw run in parallel, but also seems necessary to pass arguments.

    I apologize for my absence of a deeper understanding of this and appreciate any help you can give me.

    Chris

    You must invoke 'Ctrl Val.Set' node.

  • Passing arguments to the script

    Hello

    I have created a dialog box load the files in the folder and when I click the button I run another script of command StartScript (...)

    How can I pass arguments to the script (the paths of files)?

    Thank you

    Hey OzShimon,

    As long as you use a tiara predefined global variables (T1, T2,...)  you'd be fine. You can also define user variables (.) SAV files) or even to declare your own global variables with: call GlobalDim ("Myname").

    These variables are not re-initialized until you restart the script engine. So just change 'obj' for T1 your test should work

    ' Dim obj

    Void Button1_EventClick (ByRef This)

    T1 = "Hello World".

    Call ScriptStart("C:\Users\Oz\Desktop\test.vbs")

    End Sub

    * the script code (test.vbs):

    Call MsgBox (T1)

    Kind regards

    Javier

  • How to pass the value of the run-time file .sh by Oracle procedure

    I have a file test.sh that contain

    #1/bin/bash

    exp test/test@orcl file=/home/oracle/dump/test.dmp log=/home/oracle/dump/test.dmp grants = Y = index constraints Y = Y = (test) owner statistics = none

    Exit 0

    I craete a work called Create_job_proc in this work, I want to pass the value of job_action is the location of the file test.sh to

    /U01/home/Oracle/dump/test.sh and want to spend the test/test@orcl as a variable...

    Please suggest me... how to pass the value of Job_Action which will replace the .sh file content test/test@orcl to the value of the time of execution as scott/tiger@hr

    Thank you much Parth... It works perfectly...

    Thank you all for your help...

  • How to pass an xml CDATA in the string element when OSB call a webservice?

    How to pass an xml CDATA in the string element when OSB call a webservice?

    I have a business service (biz) this route to exploitation of a Web service.

    An example of this legacy Web service request:
    < soapenv:Envelope xmlns:soapenv = 'http://schemas.xmlsoap.org/soap/envelope/' xmlns: ex = "example" >
    < soapenv:Header / >
    < soapenv:Body >
    < ex: run >
    < ex: arg > <! [CDATA [< searchCustomerByDocumentNumber >
    < documentNumber > 12345678909 < / documentNumber >
    [[< / searchCustomerByDocumentNumber >]] > < / ex: arg >
    < / ex: run >
    < / soapenv:Body >
    < / soapenv:Envelope >

    type ex: arg is a string.

    How to pass this structure CDATA webservice in OSB?

    Steps to resolve this problem:
    1 create an XML schema. For example:


    elementFormDefault = "unqualified" >


              
                   
                        
                             
                             

                        

                        
                             
                        

                   

         

         

         
         

    With this XSD, XML can be generating:


    documentNumber

    2 create an XQuery query to create a ComplexType searchCustomerByDocumentNumber. For example:
    (: pragma bea: element global-element-return = "searchCustomerByDocumentNumber" location = "searchCustomerByDocumentNumber.xsd" ::))

    declare namespace xf = "http://tempuri.org/NovoSia/CreateSearchCustomerByDocumentNumber/";

    declare function xf:CreateSearchCustomerByDocumentNumber($documentNumber_as_xs:string)
    as {(searchCustomerByDocumentNumber)}

    {$documentNumber}

    };

    declare the variable $documentNumber as XS: String external;

    XF:CreateSearchCustomerByDocumentNumber ($documentNumber)

    3. in your step in proxy pipeline add to assign the created the XQuery function call from the number of the document of your payload.
    Assign to a variable (for example: called searchCustomerByDocumentNumberRequest)

    4. create an another Transformation of XQuery (XQ) to create a request to the existing Web service. For example:
    {fn - bea: serialize ($searchCustomerByDocumentNumberRequest)}

    For more information about xquery Serialize function:
    41.2.6 fn - bea: serialize()
    You can use the fn - bea: serialize() function if you need to represent an XML document as a string instead of as an XML element. For example, you can share an XML document through an EJB interface and the EJB method takes the string as an argument. The function has the following signature:

    FN - bea: serialize($input as item()) as xs: string

    Source: http://docs.oracle.com/cd/E14571_01/doc.1111/e15867/xquery.htm

  • How to pass variables by using the command line when starting from a native application ActionScript

    How to pass in variables or arguments to start using the command line when starting a native ActionScript application? For example, I have my app MySweetWidget call and it was compiled with Adobe AIR runtime in captivity so now I have MySweetWidget.exe.

    In the command line, I call MySweetWidget.exe and would like to pass in variables or properties of the application. I guess that these variables are read from the loaderInfo.parameters object.

    Please let me know if the Adobe AIR runtime supports passing the parameters to native execution. If so, I would like to help determine the correct format of how pass variables. So would you want to read those loaderinfo.parameters object?

    Thank you

    Jeff

    I found the answer to my own question:

    Yes, it's a feature supported. It is documented on the following page:

    http://help.Adobe.com/en_US/FlashPlatform/reference/ActionScript/3/Flash/desktop/NativeApp lication.html #event:invoke

    When you subscribe to the event from the NativeApplication invoke it will subsequently send the event and you read the table of e.arguments object to get the start in the native application arguments.

  • How to pass a variable to a swf file in another using the Loader?

    I'm loading a swf file from another swf using the method as follows:

    var myLoader:Loader = new Loader();

    addChild (myLoader);

    var url: URLRequest = new URLRequest ("myExternalMovie.swf");

    myLoader.load (url);

    How to pass a variable to the first SWF in the second?

    I'm not sure that "passage" is a term there, given that this generally applies to what happens with functions that can host variables to pass as arguments in the.

    When using the charger, you can assign an event listener to determine whether the activity of loading is complete and have an event handler that targets its contentLoaderInfo property to the event.currentTarget.content, which in your case would be the loaded swf file.  At this point, you can assign a value to a variable in this swf file by targeting...

    var myLoader:Loader = new Loader();

    addChild (myLoader);

    myLoader.contentLoaderInfo.addEventListener (Event.COMPLETE, loadComplete);

    myLoader.load (url);

    var loadedSWF:MovieClip;

    function loadComplete(evt:Event):void {}

    loadedSWF = MovieClip (evt.currentTarget.content);

    loadedSWF.someVariable = ';?

    }

    It is probably possible you may also have the loaded swf the value rtrieve by targeting to the parent swf file, which would be both parents away because of the charger is the relative of the SWF loaded... unevariable = MovieClip (parent.parent) .someValue;

  • How to pass the value of the item Application Javascript function.

    Hello

    I have the JavaScript in the properties attribute of the HTML Form element

    I'm on page 1 and passing the value of the item page P1_DEPT_NO. It is perferctly working very well and I am able to get the exact value of the element on the page
    onchange="javascript:function1($x('P1_DEPT_NO').value);"
    I'm on page 1 and passing the value G_DEPT_NO of the Application element .
    The problem here is, I don't get the point of Application inside the javascript function value.
    I tried to use alert(); and it gives me the undefined value
    onchange="javascript:function1($x('G_DEPT_NO').value);"
    I just want to know, How to pass the value of the Application in Javascript element.

    Thank you
    Deepak

    Deepak,

    I'm not a Javascript expert, but the suggestin I did was because the javascript is a case-sensitive... language and thats why onChange is not the same thing as onchange.
    Not sure if this is causing the problem.

    Application elements not associated with a page and have therefore no properties user interface.
    So, as mentioned in another post, the rendering would not work for the elements of the application.
    If it is for a single item, used only on this page, you might create a hidden page element and use it fo your goal

    If you want to keep watching objects application and AJAX, this page contains examples of using AJAX to solve problems like the one you mentioned.
    http://www.Oracle.com/technology/OBE/hol08/apexweb20/ajax_otn.htm#T1B

    Thank you
    Rajesh.

Maybe you are looking for

  • XAVC S + GPS

    Hi there, so for now, it seems that my video HDR - AS100V XAVC S do not work with the GPS overlay, neither can I convert it to PlayMemories to MP4 format that does not work with. Is it possible I can convert the file XAVC S a MP4 file or something, s

  • Re-installed Windows 7; No drivers.

    Hello. I bought a dell xps 13 today and used the cd to re - install windows 7. |Unfortunately it removed all my drivers.I have read some of the threads and discovered that I should install them again one by one and in a certain order, but I don't kno

  • How to make an element ListField unselectable?

    I did a search but could not find an answer and I tried to play with the recall but nothing worked so just... How could I go for a row of a listField unselectable? What I'm trying to do, is to have a "separator" in the list, and when the user makes a

  • Get the CRC Message When you try to install Roller Coaster Tycoon

    Hi, Im getting this CRC error message when I tried to install a game called Roller Coaster Tycoon. Now I don't have the disc, because I downloaded offline. At the top of the window for installation it is said, self-extracting Archive.   And the error

  • These people have no customer support at all? You can contact these clowns?

    These people have no customer support at all? You can contact these clowns?