cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Not a customer? Start a free trial

Click the Start a free trial link to start a 15-day SaaS trial of our product and join our community as a trial user. If you are an existing customer do not start a free trial.

AppDynamics customers and established members should click the sign in button to authenticate.

Knowledge Base

Instrumenting Java Web Start Applications

Java Web Start software allows you to download and run Java applications from the web and is included in the Java Runtime Environment (JRE) since release of Java 5.0. Java Web Start applications are launched by using the Java Network Launch Protocol (JNLP).

 

Environment 

  • Java client application launched via JNLP
  • JVM: Oracle 1.7.0_71
  • Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
  • OS: Windows 7 64-bit 

 

Solution

To attach the Java Agent, use one of the following approaches:

 

Approach 1

 
javaws -J-javaagent:<agent-install-dir>\javaagent.jar <jnlp file>

 

Approach 2

 

set JAVA_HOME=C:\Program Files\Java\jre7
set JAVA_TOOL_OPTIONS=-javaagent:<agent-install-dir>\javaagent.jar<JAVA_HOME>\bin\javaws.exe <jnlp file>

 

Security Settings

If the agent is not behaving as expected due to security related issues, then you might need to tweak Java security settings as follows:
  1. Find the <JAVA_HOME>\lib\security\javaws.policy file .
  2. Edit the file with these settings: 
grant codeBase "file:${jnlpx.home}/javaws.jar" {
permission java.security.AllPermission;
};

grant {
permission java.security.AllPermission;
};

 

Version history
Last update:
‎11-19-2018 01:46 PM
Updated by:
Labels (1)
Contributors
Tags (3)
By replying you agree to the Terms and Conditions of the AppDynamics Community.