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 49016 - [40cat] cannot set project main class - some weird case problem
Summary: [40cat] cannot set project main class - some weird case problem
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: PC Windows 95/98
: P3 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks: 41537
  Show dependency tree
 
Reported: 2004-09-14 16:32 UTC by ultraklon
Modified: 2004-10-07 14:12 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 ultraklon 2004-09-14 16:32:18 UTC
[ BUILD # : 200408191352 ]
[ JDK VERSION : J2SE 1.4.2_03 ]

Try to do this: create a new project with mixed lower and upper case in its name (example OrchidLives), the auto completion of the directory is set to %PATH%/OrchidLives, ok, the deafult main class proposed is orchidlives.Main (orchidlives in lower!, but is al right for now), change it to orchidlives.principal this works, but now, in the %PATH%/OrchidLives/scr copy a principal.java file that has got a valid main method, overwrite the old one. Ok, now go and try to run the project with F6, "the project doesnt have a main class" Netbeans 4.0 says, he ask u to choose principal.java, choose it, choose it for ever!, now another try, let's set the main class from "project properties", is the same. The problem is the lower/upper case. It worked fine 4 me when i changed (at the creation project screen) the propouse of the NetBeans of orchidlives.principal to OrchidLives.principal
Comment 1 Jesse Glick 2004-09-14 18:09:14 UTC
Jirka do you run Windows? So maybe you can try it...
Comment 2 Milan Kubec 2004-09-15 11:57:09 UTC
"... in the %PATH%/OrchidLives/scr copy a principal.java file that has
got a valid main method, overwrite the old one."

What have you done with the class actually?
Comment 3 Jiri Rechtacek 2004-10-07 14:12:43 UTC
Sorry reporter, your issue makes me confused. I'm not sure where is a
problem. NB40 behaves correctly with classes and packages which name
mixes lower/upper case. Make sure if your example works differently in
IDE and if is compile or run in command line.
Closed as invalid, reopen if you have a reproducible test case failed
in IDE. If yes, please attach it. Thanks