Re: How to start Java desktop application in NetBeans ?
On Sep 26, 5:12 pm, Sabine Dinis Blochberger <no.s...@here.invalid>
wrote:
tobleron wrote:
On Sep 26, 1:59 pm, tobleron <bud...@yahoo.com> wrote:
On Sep 26, 7:59 am, Lew <no...@lewscanon.com> wrote:
tobleron wrote:
The errors were :
@Override protected void startup() {
show(new login(this)); //ERROR : can't find symbo=
l
}
public static void main(String[] args) {
launch(login.class, args); //ERROR : application =
can't be
applied to ....
}
The errors indicate that there is no class defined in the project=
.. But
in fact, there is a class named "login" in login.java. Do I misse=
d
something ?
Probably an import. Is 'login' [sic] in package 'ecgterminal1'?
Class names should start with an upper-case letter. Lower-case f=
irst letters
are for (non-constant) variables and methods.
--
Lew
Yes. "login" is in package "ecgterminal1".
I'll try to change the name with upper-case letter.
"login" has been changed to "Login". But there's still error :
cannot find symbol
symbol : constructor Login(ecgterminal1.Main)
location : class ecgterminal1.Login
Any suggestion please ?
Your class Login does not have a constructor like the one you're
calling. It has a constructor with two parameters.
Either write a constructor with the parameters you want, or give the
existing one all its parameters.
Hi, I've tried to fix the problem, but these new errors occurred :
Sep 27, 2008 8:45:38 PM org.jdesktop.application.LocalStorage getId
WARNING: unspecified resource Application.id using Main
Sep 27, 2008 8:45:38 PM org.jdesktop.application.LocalStorage getId
WARNING: unspecified resource Application.vendorId using
UnknownApplicationVendor
What should I do ? Please advise. Thanks in advance.