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.
[ 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
Jirka do you run Windows? So maybe you can try it...
"... 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?
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