[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: What do I have to ship with my program to use SWT?

Hi Andreas,

1. Put the swt jar on your classpath with a command like: javac -cp
C:\swt.jar win32\Main.java

2. See
http://download.eclipse.org/eclipse/downloads/drops/S-3.4M6-200803301350/details.php#SWT .

3. Assuming you're using swt 3.3 or newer, just distribute your app + the
swt jar for the target platform.  So if you want to support three platforms
then you'll have three distributables, one with your app + the swt jar for
win32, one with your app + the swt jar for linux, etc.

If any of these steps give you problems then please follow up here.
Grant


"Andreas Balzer" <eclipse@xxxxxxxxxxxxxxxxx> wrote in message
news:ftadbs$n9f$1@xxxxxxxxxxxxxxxxxxxx
> Hello,
> my name is Andreas Balzer, this is my first post to this group :)
> I'm programming a Java application and I like to use SWT. I have a
> couple of questions on how to use it.
> 1) I like to compile a java file on Windows Vista. What do I have to
> execute in my cmd to integrate SWT?
> Until now I did it with some program that has a GUI and is called Java
> Editor. Unfortunately it doesn't tell me what it does.
> 2) What do I have to execute to run the compiled file?
> I tried "java -Djava.library.path=C:\Users\AndreasB\Desktop\swt\swt.jar
> C:\Users\AndreasB\Desktop\informatik\swing_minesweeper\MineSweeper" but
> I got and error message that the MineSweeper class wasn't found. (It is
> called MineSweeper.class and it is located in swing_minesweeper).
> What do I have to do here?
> 3) If I have compiled it and want to give it away to my potential
> customers, what do I have to do? What SWT files do I have to give away
> and how to integrate them? Let's say the program should work on Mac,
> Linux and Windows. What files do I have to use and where can I find them?
>
> I'm completly new to SWT so please bear with me.
>
> Andreas