Re: Launching javaw and not javac (128 Views)
Reply
Occasional Contributor
perfTest1ng
Posts: 7
Registered: ‎04-02-2014
Message 1 of 4 (179 Views)

Launching javaw and not javac

Hi there.

 

I am trying to get loadrunner to invoke a javaw when creating a jvm, however loadrunner invokes javac.

Is there a way to launch javaw instead of javac?

 

My applicatoin is passing parameters to a javaw which is not understood by javac.

 

Thanks

 

Loadrunner Vugen 11.00

JDK 1.6.0_45

Azm
Occasional Advisor
Azm
Posts: 5
Registered: ‎07-12-2013
Message 2 of 4 (156 Views)

Re: Launching javaw and not javac

Hi,

 

Let's clarify that the javac.exe is a compiler that intended to generate bite code (.class files).

So LoadRunner doesn't use javac to invoke jvm (neither during recording nor during replaying). javac only used within building process.

 

 

Best regards.

Occasional Contributor
perfTest1ng
Posts: 7
Registered: ‎04-02-2014
Message 3 of 4 (150 Views)

Re: Launching javaw and not javac

Ok.

 

My application is starting a javaw in a cmd file:

 

start javaw -arguments -arguments

 

How would i create a vm using loadrunner with these arguments? or can i use javaw in loadrunner?

 

Thanks

Azm
Occasional Advisor
Azm
Posts: 5
Registered: ‎07-12-2013
Message 4 of 4 (128 Views)

Re: Launching javaw and not javac

Ok.

What do you mean "create vm using LoadRunner"? If you want to record Java protocol script (suppose you need Java Record Replay protocol) you can use one of the options offered by Recording dialogue.

I guess "Executable/batch" should be most appropriate for you.

You can write batch (.bat) file that will invoke java vm using command line you need.

rec_jrr_lr11.png

The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.