NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

java applet execution fails on line arguments

 
Post new topic   Reply to topic    NetBeans Forums -> Profiler Users
View previous topic :: View next topic  
Author Message
tuedel



Joined: 27 Jan 2014
Posts: 1

PostPosted: Mon Jan 27, 2014 8:02 pm    Post subject: java applet execution fails on line arguments Reply with quote

Hello peoply,

i do face a strange behavior, after having updated my jdk/jre. After installation, any applet i try to execute is running into the same IllegalArgumentException. I have enabled the java console debugging features and have found a strange entry, which i assume is causing the problem. See below:

Code:
basic: LaunchDesc.selectJRE(false, false) returning selected jre: JREInfo for index 0:
    platform is: 1.7
    product is: 1.7.0_51
    location is: http://java.sun.com/products/autodl/j2se
    path is: C:\Program Files (x86)\Java\jre7\bin\javaw.exe
    args is: -agentpath:"D:\progz\NetBeans 7.2.1\profiler\lib\deployed\jdk15\windows-amd64\profilerinterface.dll=D:\progz\NetBeans 7.2.1\profiler\lib",5140
    native platform is: Windows, x86 [ x86, 32bit ]
    JavaFX runtime is: JavaFX 2.2.51 found at C:\Program Files (x86)\Java\jre7\
    enabled is: true
    registered is: true
    system is: true

basic: LaunchDesc location: https://java.com/en/download/JavaDetection_applet.jnlp
basic: exception: Syntax Error: Unbalanced quotes in command line arguments.
ExitException[ 3]java.lang.IllegalArgumentException: Syntax Error: Unbalanced quotes in command line arguments
    at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)


The -agentpath argument is passed in, unfortunately i neither know where it's been set nor why my old jre/jdk were not causing this problem.
Since its a netbeans entry i am looking forward getting an answer here.

Thanks for help. Kind regards.
Back to top
Jiri Sedlacek
Posted via mailing list.





PostPosted: Wed Jan 29, 2014 4:01 pm    Post subject: java applet execution fails on line arguments Reply with quote

Reported post
Hi,

the -agentpath argument is clearly incorrect. The value works for Java 5 64bit but you're running
the applet using Java 7 32bit. You need to provide the correct value for your Java.

In case the "Unbalanced quotes in command line arguments" message still occurs after fixing the
above argument, it might mean the applet runtime doesn't accept the -agentpath value with quotes.
Try to remove the quotes (8.3 format of 'NetBeans 7.2.1' may be needed without quotes).

FYI, you may use VisualVM (https://visualvm.java.net) to see the arguments used for starting an applet.

Regards,
Jiri


On 1/27/2014 9:02 PM, tuedel wrote:
Quote:
Hello peoply,

i do face a strange behavior, after having updated my jdk/jre. After installation, any applet i try to execute is running into the same IllegalArgumentException. I have enabled the java console debugging features and have found a strange entry, which i assume is causing the problem. See below:


Code:
basic: LaunchDesc.selectJRE(false, false) returning selected jre: JREInfo for index 0:
platform is: 1.7
product is: 1.7.0_51
location is: http://java.sun.com/products/autodl/j2se
path is: C:\Program Files (x86)\Java\jre7\bin\javaw.exe
args is: -agentpath:"D:\progz\NetBeans 7.2.1\profiler\lib\deployed\jdk15\windows-amd64\profilerinterface.dll=D:\progz\NetBeans 7.2.1\profiler\lib",5140
native platform is: Windows, x86 [ x86, 32bit ]
JavaFX runtime is: JavaFX 2.2.51 found at C:\Program Files (x86)\Java\jre7\
enabled is: true
registered is: true
system is: true

basic: LaunchDesc location: https://java.com/en/download/JavaDetection_applet.jnlp
basic: exception: Syntax Error: Unbalanced quotes in command line arguments.
ExitException[ 3]java.lang.IllegalArgumentException: Syntax Error: Unbalanced quotes in command line arguments
at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)



The -agentpath argument is passed in, unfortunately i neither know where it's been set nor why my old jre/jdk were not causing this problem.
Since its a netbeans entry i am looking forward getting an answer here.

Thanks for help. Kind regards.





Back to top
verveniru



Joined: 07 Feb 2014
Posts: 3

PostPosted: Tue Feb 11, 2014 10:47 am    Post subject: Reply with quote

This code is not properly working.
Back to top
javalearner



Joined: 01 May 2017
Posts: 2

PostPosted: Mon May 08, 2017 5:53 am    Post subject: Re: java applet execution fails on line arguments Reply with quote

tuedel wrote:
Hello peoply,

i do face a strange behavior, after having updated my jdk/jre. After installation, any applet i try to execute is running into the same IllegalArgumentException. I have enabled the java console debugging features and have found a strange entry, which i assume is causing the problem. See below:

Code:
basic: LaunchDesc.selectJRE(false, false) returning selected jre: JREInfo for index 0:
    platform is: 1.7
    product is: 1.7.0_51
    location is: http://java.sun.com/products/autodl/j2se
    path is: C:\Program Files (x86)\Java\jre7\bin\javaw.exe
    args is: -agentpath:"D:\progz\NetBeans 7.2.1\profiler\lib\deployed\jdk15\windows-amd64\profilerinterface.dll=D:\progz\NetBeans 7.2.1\profiler\lib",5140
    native platform is: Windows, x86 [ x86, 32bit ]
    JavaFX runtime is: JavaFX 2.2.51 found at C:\Program Files (x86)\Java\jre7\
    enabled is: true
    registered is: true
    system is: true

basic: LaunchDesc location: https://java.com/en/download/JavaDetection_applet.jnlp
basic: exception: Syntax Error: Unbalanced quotes in command line arguments.
ExitException[ 3]java.lang.IllegalArgumentException: Syntax Error: Unbalanced quotes in command line arguments
    at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)


The -agentpath argument is passed in, unfortunately i neither know where it's been set nor why my old jre/jdk were not causing this problem.
Since its a netbeans entry i am looking forward getting an answer here.

Thanks for help. Kind regards.



I agree with Jiri Sedlacek. Have you follow the instructions if yes, let me know the issue which you are still facing
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Profiler Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo