For Programmers: Free Programming Magazines  


Home > Archive > Java Help > December 2004 > Re: GUI error: Could not find the main class. Program will exit.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: GUI error: Could not find the main class. Program will exit.
thufir

2004-12-30, 8:58 am

the exact same error occurs for the swing HelloWorld demo from Sun.
moving the .jar's from one directory to another has no effect--both
..jar files execute fine from the command line but give that error with
a double click.

both .jar files open with "javaw" , which AFAIK is correct.
sorry, i'm not understanding your suggestion:(

--
Thufir

Tony Morris

2004-12-30, 8:58 am

"thufir" <thufir.hawat@mail.com> wrote in message
news:1104398887.743285.87710@z14g2000cwz.googlegroups.com...
> the exact same error occurs for the swing HelloWorld demo from Sun.
> moving the .jar's from one directory to another has no effect--both
> .jar files execute fine from the command line but give that error with
> a double click.
>
> both .jar files open with "javaw" , which AFAIK is correct.
> sorry, i'm not understanding your suggestion:(
>
> --
> Thufir
>


It's a red herring.
I'm guessing your problem description is incomplete.
Post the jar.

--
Tony Morris
http://xdweb.net/~dibblego/



Tony Morris

2004-12-30, 8:57 pm

"thufir" <thufir.hawat@mail.com> wrote in message
news:1104404355.124275.282290@c13g2000cwb.googlegroups.com...
> http://thufir.lecktronix.net/jar/
>
> thanks :)
>


It works fine for me:
Windows 2003 EE Sun JDK 1.5.0
Windows 2003 EE Sun JDK 1.4.2_04
Linux Mandrake 9 Sun JDK 1.4.2_02

Can you provide any additional information that would help reproduce your
problem?
Your problem description seems inconsistent.

what if:
> javaw -jar gui.jar

from the command line?

--
Tony Morris
http://xdweb.net/~dibblego/



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com