This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 173041 - Netbeans should suggest correct tips on how to profile/debug an applet
Summary: Netbeans should suggest correct tips on how to profile/debug an applet
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jiri Sedlacek
URL:
Keywords:
: 169004 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-24 15:39 UTC by John Jullion-ceccarelli
Modified: 2009-11-05 13:17 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Jullion-ceccarelli 2009-09-24 15:39:45 UTC
Suggested agentpath string is not correct if java is installed into Program Files directory. 
Spaces are not supported in the argument (by JRE) and users have to escape it manually before it works.
Comment 1 Adam Sotona 2009-09-24 17:01:21 UTC
I don't understand what is the expected behavior.
Spaces are supported - they delimit the options.
Comment 2 neigor 2009-10-06 19:20:00 UTC
If NB is used to profile/debug applets then NB suggests to set agentpath to stop applet after VM startup.

However, sugested string might be not valid. E.g. 
   -agentpath:C:\Program Files\NetBeans 6.7.1\profiler3\lib\deployed\jdk15\windows\profilerinterface.dll=C:\Program Files\NetBeans 
6.7.1\profiler3\lib,5140

Note the spaces in the "Netbeans 6.7.1" and "Program Files".
Copied to Java Control Panel as suggested it will not work as spaces will be treated as delimiters. 

Netbeans should suggest usable string.
Comment 3 Jiri Sedlacek 2009-11-05 11:08:27 UTC
The whole "-agentpath" string needs to be double-quoted if there are spaces in path.
Fixed in profiler-main.


http://hg.netbeans.org/profiler-main/rev/3b25eb1130d4
Comment 4 Jiri Sedlacek 2009-11-05 13:17:37 UTC
*** Issue 169004 has been marked as a duplicate of this issue. ***