Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » swt application not running(very imp)
swt application not running(very imp) [message #436704] Sat, 22 May 2004 08:09 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 in the console as:
>
> "could not find the main class.Program will exit" whereas i get a warning
dialog as :
main class could not find.Program will exit
>
> Can anyone tell me From beginning how to execute swt applicn.which project
> i have to create.
> regards
> steven
Re: swt application not running(very imp) [message #436896 is a reply to message #436704] Tue, 25 May 2004 22:35 Go to previous message
Geoffrey Ritchey is currently offline Geoffrey RitcheyFriend
Messages: 42
Registered: July 2009
Member
steven sequeira wrote:

It's hard to see why you would have a problem running if you can compile.
Maybe it can't find the dll? I usually run by using an ant window and
double clicking on a task labeled 'run'. Here is my ant file snippet:

<target name="run"
description="run the application" >
<java fork="true">
<jvmarg value="-Djava.library.path=C:\x86>
<classpath refid="browsexml.class.path"/>
<arg value="-f" />
<arg value="C:\time.txt"/>
</java>
</target>

This wont work for you exactly as is but it should give the idea (my
argument
values are obviously different than yours). I have a copy of swt___.dll
in C:\x86 for the jvmarg portion.

> 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.0eclipsepluginsorg.eclipse.swt.win32_2.1.0oswin32x86

> Where D:eclipse 2.1.0eclipseplugins....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 in the console as:
> >
> > "could not find the main class.Program will exit" whereas i get a
warning
> dialog as :
> main class could not find.Program will exit
> >
> > Can anyone tell me From beginning how to execute swt applicn.which project
> > i have to create.
> > regards
> > steven
Previous Topic:running an application outside Eclipse
Next Topic:native drag and drop question
Goto Forum:
  


Current Time: Thu Apr 18 13:26:30 GMT 2024

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

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

Back to the top