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 7758 - build 37 - When selecting an excutable class can't set arguments
Summary: build 37 - When selecting an excutable class can't set arguments
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-09-26 16:17 UTC by RefuX
Modified: 2003-06-30 16:44 UTC (History)
0 users

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 RefuX 2000-09-26 16:17:48 UTC
build 37 - When selecting an excutable class can't set arguments
Comment 1 Jesse Glick 2000-10-11 11:19:59 UTC
Please be more specific--what did you try to do? What happened?
Comment 2 RefuX 2000-10-12 02:04:59 UTC
ok, there is a class in your file system.
This class has a main method
Try to set the arguments sent to that class on execution
you can't! (the properties browser don't have no argument prop)
Comment 3 Jesse Glick 2000-10-12 10:10:59 UTC
There is no such property on the Execution tab? Do you have write access to the
source file (check permission bits)? To the containing directory? Does Build |
Set Arguments work? What OS and JDK are you using please?
Comment 4 RefuX 2000-10-12 20:45:59 UTC
There is no execution tab. The class has no "you can execute me" icon either.
no, I don't have the source file.
I can enter stuff under "Build|Set Arguments"

If I create a class with a main method. Delete the source, leave the .class file
The .class file DOES have a "you can execute me" icon.
However there is still no execute tab (is this supposed to happen?)

The other class, when browsing in the tree has no main method.
However in the Forte501 release it does, I presume you have changed your class
parser?

Build 45
JDK1.2.2
W2K
Comment 5 Jesse Glick 2000-10-13 14:18:59 UTC
OK, now I see the problem. Sourceless class objects simply fail to provide an
Execution tab in current dev builds. I suspect this has to do with recent cookie
initialization changes, but that's just a guess. Note that there is an
ExecCookie and ArgumentsCookie and everything, just no Execution sheet set.

BTW RefuX--there should be an execute icon iff the class has a main method. I'm
not sure what you mean about there being no Execution tab for classes with
source, though, it works for me.
Comment 6 RefuX 2000-10-13 16:48:59 UTC
>BTW RefuX--there should be an execute icon iff the class has a main method.
yhea, for some reason after adding some supporting librarys of the class,
netbeans can now parse class and see its main method (why? don't ask me).
It now does show the execute icon, however still no execute tab (as has been
established)

>I'm not sure what you mean about there being no Execution tab for classes with
>source, though, it works for me.
works for me too. If there is source, works fine.
Comment 7 Svata Dedic 2000-10-13 16:55:59 UTC
Well, I can explain why the class node does not show executable icon if it lacks
some library. Since the structure is scanned using reflection package, the JVM
must be able to load the class. So if the class is missing some library it
depends on, it is not only marked as executable, but as erroneous :-\ This will
change when (if) we add _real_ parsing of .class files.
Comment 8 Jan Becicka 2001-02-01 10:11:59 UTC
[010130_1] Verified
Comment 9 Quality Engineering 2003-06-30 16:44:09 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.