Running SWT application outside Eclipse [message #464564] |
Thu, 24 November 2005 22:15 |
Eclipse User |
|
|
|
Originally posted by: mwilli.iastate.edu
I'm trying to create a redistributable jar file for an application I am
working on. The application uses SWT for the grapical interface. I am able
to run the jar file using the java -classpath
swt.jar;helloworld.jar -Djava.library.path="C:\SWT" helloworld command-line
parameters, but when the application starts, I don't get any text on the
buttons, I don't get any text in a list, and I don't get any images or text
on CLabels that are part of a sub-class of composite. The program works fine
within Eclipse. Any ideas of how to get this to work outside of eclipse?
P.S. The library is complete.
|
|
|
|
Re: Running SWT application outside Eclipse [message #464570 is a reply to message #464568] |
Fri, 25 November 2005 02:05 |
Eclipse User |
|
|
|
Originally posted by: mwilli.iastate.edu
Haris Peco wrote:
> Mike Williams wrote:
>
>> I'm trying to create a redistributable jar file for an application I am
>> working on. The application uses SWT for the grapical interface. I am able
>> to run the jar file using the java -classpath
>> swt.jar;helloworld.jar -Djava.library.path="C:\SWT" helloworld
>> command-line parameters, but when the application starts, I don't get any
>> text on the buttons, I don't get any text in a list, and I don't get any
>> images or text on CLabels that are part of a sub-class of composite. The
>> program works fine within Eclipse. Any ideas of how to get this to work
>> outside of eclipse? P.S. The library is complete.
> you use any i18n text and images from swt plugin, probably
> this text/images isn't in swt.jar - you have to find where they are
I can't even get just text to display on a regular button though. How
could that not be a part of swt.jar? This is on the windows platform by
the way.
|
|
|
Re: Running SWT application outside Eclipse [message #464572 is a reply to message #464570] |
Fri, 25 November 2005 02:30 |
Eclipse User |
|
|
|
Originally posted by: mwilli.iastate.edu
Mike Williams wrote:
> Haris Peco wrote:
>> Mike Williams wrote:
>>
>>> I'm trying to create a redistributable jar file for an application I am
>>> working on. The application uses SWT for the grapical interface. I am
>>> able
>>> to run the jar file using the java -classpath
>>> swt.jar;helloworld.jar -Djava.library.path="C:\SWT" helloworld
>>> command-line parameters, but when the application starts, I don't get
>>> any
>>> text on the buttons, I don't get any text in a list, and I don't get any
>>> images or text on CLabels that are part of a sub-class of composite. The
>>> program works fine within Eclipse. Any ideas of how to get this to work
>>> outside of eclipse? P.S. The library is complete.
>> you use any i18n text and images from swt plugin, probably
>> this text/images isn't in swt.jar - you have to find where they are
>
> I can't even get just text to display on a regular button though. How
> could that not be a part of swt.jar? This is on the windows platform by
> the way.
Nevermind. I read a post from earlier that solved my problem. Running
with javaw.exe instead of java.exe solved my problem.
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03029 seconds