Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » not able to execute swt application(pls help me)
not able to execute swt application(pls help me) [message #436651] Fri, 21 May 2004 10:35 Go to next message
Eclipse UserFriend
Originally posted by: ssequeira.icope.com

I have a simple swt applcn.I have set the build paths by selecting
swt.jar.Its compiling with no errors.Then i set the configuration using
run->run..->java application and for that particular swt applicn i set the
VM arguments fields as:

-Djava.library.path=D:\eclipse
2.1.0\eclipse\plugins\org.eclipse.swt.win32_2.1.0\os\win32\x 86

Where D:\eclipse 2.1.0\eclipse\plugins\....is my root installtion directory



My project name is org.eclipse.test.(which is plugin project).My project
tree is like this:
--org.eclipse.test
--src(this folder automatically done while creating blank plugin prjct)
--org.eclipse.test(package name)
--Testswt.java(my swt applicn)

Now when i run(as java applicn)i get error as:

"could not find the main class.Program will exit"

Can anyone tell me From beginning how to execute swt applicn.which project
i have to create.(plugin project right?)

regards
steven
Re: not able to execute swt application(pls help me) [message #436694 is a reply to message #436651] Fri, 21 May 2004 14:46 Go to previous messageGo to next message
Eclipse UserFriend
steven sequeira wrote:
> I have a simple swt applcn.I have set the build paths by selecting
> swt.jar.Its compiling with no errors.Then i set the configuration using
> run->run..->java application and for that particular swt applicn i set the
> VM arguments fields as:
>
> -Djava.library.path=D:\eclipse
> 2.1.0\eclipse\plugins\org.eclipse.swt.win32_2.1.0\os\win32\x 86
>
> Where D:\eclipse 2.1.0\eclipse\plugins\....is my root installtion directory
>
>
>
> My project name is org.eclipse.test.(which is plugin project).My project
> tree is like this:
> --org.eclipse.test
> --src(this folder automatically done while creating blank plugin prjct)
> --org.eclipse.test(package name)
> --Testswt.java(my swt applicn)
>
> Now when i run(as java applicn)i get error as:
>
> "could not find the main class.Program will exit"
>
> Can anyone tell me From beginning how to execute swt applicn.which project
> i have to create.(plugin project right?)
>
> regards
> steven
>
>
>
>
You must have a main method in your class(es) for the lunch to work.
It looks like this: public static void main(String[] args)
not able to execute swt application(pls help me) [message #436702 is a reply to message #436694] Sat, 22 May 2004 02:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ssequeira.icope.com

i have main class with public static void main(String args[]).But even
then iam not able to execute.why?
Re: not able to execute swt application(pls help me) [message #436845 is a reply to message #436702] Tue, 25 May 2004 15:53 Go to previous message
Eclipse UserFriend
steven sequeira wrote:

> i have main class with public static void main(String args[]).But even
> then iam not able to execute.why?

Go into the run dialog, double click java application. This will refresh
the class listings for open projects. Click (highlight) the name of the
class you are trying to run. Then choose run.

-Scott
Previous Topic:No more handles -- what does it mean???
Next Topic:[ANN] SWT & Swing Designer 2.0.0
Goto Forum:
  


Current Time: Sat Jul 05 04:43:05 EDT 2025

Powered by FUDForum. Page generated in 0.04439 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top