SWT app to .jar problems

hi everybody,
I'm totally new in the java world and i've written my first java app last day:)
I was very proud but when i want to compile the program i ran in to some problems!
The system consists out of two separate layers.
In the main class i've made the interface (SWT) and there are some other classes that are doing the real work.
I've compiled the whole program with the SWT interface but it won't work!
But when i compile the classes that are doing the real work and write a small class that calls the other classes it works!
So the problem is the SWT but I can't solve it!
Some errors i've got :
java -classpath .;swt.jar -Djava.library.path=swt-win32-3346.dll -jar comp
ile.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/swt/widge
ts/Composite
and the succeeded built :
java -jar test.jar
| This is te converter!
|
| I'm converting the vte and barcode file
| Author Marcel Boersma
Converting succeed!
Message was edited by:
maboNL

for windows, only for non-plug-in projects
Making a jar file from SWT project, in Eclipse:
1. Create one manifest file in project with following contents:
     Manifest-Version: 1.0
     Class-path: swt.jar
     Main-class: package.MainClass
2. Export jar file with this manifest file
a) Right-click on project
b) Selection Export
c) Select Java and Jar file
d) Select the project, classpath and file project
e) In jar file textbox enter the name for jar file and select options: "Exports generated class files and resources" and "Compress the content of the jar file"
f) Press Next button
g) Press Next button
h) Select "Use existing manifest from workspace" and select the manifest file which you has created
i) Press Finish button     
3. Put togheter the jar file and swt.jar
4. Run jar file

Similar Messages

  • Compiling tuxguitar (or generally java/swt apps)

    I can't compile tuxguitar . It uses java and SWT and I have installed both. It gave me 100 errors about undefined references. At closer inspection I found that swt isn't placed with the java package in /opt, but in /usr instead (which is what I prefer, but that's not the point..). I tried exporting swt's /usr path to CLASSPATH, but it didn't help (of cource I could have done it wrong ).
    I wonder if anyone else has problems with compiling swt apps?

    My [timefinder application|http://timefinder.sourceforge.net/] would benefit a lot from JavaFX!
    See my current requirements for a planner UI which could manage a lot of persons or rooms - this would be possible with the NetBeans graph library, too, but JavaFX seems to be a bit more easier to me. Especially because of the great binding.

  • IPhone app store downloading problem

    I have iPhone app store downloading problem (iOS 5). I could not download or update any software successfully from yesterday. Every app shows "waiting for download" but nothing happen for two days. It seems my app store does not connect to server. I use same account in my iPad, but it works normal. So, what happen to my iPhone? Please help me!

    Hold the home button and lock button for 10 seconds to reboot the iPhone.

  • I mean that i phone take time to open apps ,contact ,etc why? i close all apps and the problem still?

    i mean that i phone take time to open apps ,contact ,etc why? i close all apps and the problem still?

    Try a reset by pressing and holding the home and power buttons for 15-20 seconds until the white Apple logo appears.

  • I am receiving a new ipad (3 i guess) from my mom who is in the U.S but i am currently in the philippines. I ofcourse, want to have apps,games,movies etc. can i use an itunes giftcard (also from the U.S) to buy my apps without any problems?

    i am receiving a new ipad (3 i guess) from my mom who is in the U.S but i am currently in the philippines. I ofcourse, want to have apps,games,movies etc. on it. can i use an itunes giftcard (also from the U.S) to buy my apps without any problems?

    No.
    iTunes terms of service:
    The iTunes Service is available to you only in the United States, its territories, and possessions. You agree not to use or attempt to use the iTunes Service from outside these locations. Apple may use technologies to verify your compliance.

  • App keeps loading problem solve

    Anyone with an app still loading problem can get rid of it by going into the app store. tap on "updates"- bottem right corner. tap on purchased where you get a list of your downloads then tap on the cloud with the arrow, enter your pin. hit ok for app over 20mb. go back into the app store and to your purchased list and wait for it to reload. once done come out of the app store and hopefully all the loading apps are gone. hope it works for you.

    I had this same problem when trying to download some training app. I could not delete or get it to upload completely either. Very frustrating. What I did was plug it into my computer, went to Itunes and searched the same app. I was able to download it here and then it starte to sync with my Iphone. You can remove the app after it finishes the download if u want. Hope this works!

  • Mt iPad will not allow me to update my apps. My username and password are correct and I can buy apps with no problem but when I try and update it just says "cannot open iTunes"

    My iPad will not allow me to update apps although I have no problem buying new ones. It says "cannot connect to iTunes" each time I try.

    Same problem for me, too.  It happens on my iPad, iPhone, and iMac.  Weird because I have great Internet connectivity and I can log into and view my iTunes account.  I've downloaded three new apps with no problem.  But my iPad shows 14 apps needing updates, my iPhone shows 2, and my iMac shows 1.  In all cases, clicking on "update" and entering the password results in the message, "Cannot connect to iTunes Store".  It's the same result across multiple WiFi networks, even after resetting them.
    I'll see if someone at the Genius Bar can help and then I will repost.

  • When trying to launch ITunes I get an error message saying that application fail to start because MSVCR80.dll file not found. Reinstalling app may fix problem.

    When trying to launch ITunes I get an error message saying that application fail to start because MSVCR80.dll file not found. Reinstalling app may fix problem.

    I've just (finally) managed to fix this problem today. I checked the Apple Support forums, and it seems a lot of people are having the same problem.
    I rang the Apple Support line, and the very helpful man (thanks Alan!) talked me through it stage by stage. If you go to the following page on the internet: http://support.apple.com/kb/TS5376   it takes you through the process. WARNING - it takes a little time!
    Basically, the first thing you have to do is go to your Program Files and double click on your iTunes folder. There'll be a number of files with the suffix .dll - you need to move all the .dll files from that folder to your desktop - you can simply click and drag them on the desktop..
    Next, uninstall iTunes - go to Control Panel / Add/Rempve Programs and when the list comes up remove iTunes. This will take a few minutes... Then reboot your computer.
    Next, go back to Control Panel / Add Remove and Remove - IN THIS ORDER -
    Apple Software Update
    Apple Mobile Device Support
    Bonjour
    Apple Application Support
    Reboot again!
    Next, check in your Program Files that the iTunes folder is completely gone - if it has, great: if it hasn't, right-click on the folder and press Shift and Delete - it will say "Are you sure you want to completely remove the folder "iTunes"? Click on "Yes".
    Reboot!
    Then go to the iTunes download page and voila! It should download iTunes without any problems... well it did for me.... Good luck!

  • Why do I need to keep rebooting my iPad 2? I reboot it at least 5 times a day. I've deleted most of my Apps but the problem continues.

    Why do I need to keep rebooting my iPad 2? I reboot it at least 5 times a day. I've deleted most of my Apps but the problem continues.

    Use iTunes to restore your iOS device to factory settings - Apple Support

  • Compiling SWT app with gnu/gcj

    has anybody actually compiled a java swt app to machine code using gnu/gcj?.. if so can you please tell me how to?.. i�ve tryed everything thats posted on internet but it still wont work.. thanks

    You would have better luck on a gcj forum/mailling list.

  • Apps installation + start problem

    Hello Im new in this forum. I use a E5-00 just bought it.
    I have two problems:
    1* if during downloading from OVi the internet connection is some how interrupted (due to changing station on the go or whatso ever), Ovi thinks that the file is totally downloaded and closes the download as %100. Then it installs the NOT YET FINISHED file. However I see with correct logo the file is installed. If I try to remove and reinstall the same app, it uses the stored cache of the phone and never is able to finish the download. SO I NEED some way to clear Ovi store cache. could some one help?
    2* another problem is, that if some app has some problem AND if I try to start this app, it does not make ANY notification. It just does not start and I click 100 times it does nothing. Why is it so hard to write just "this app is not suitable for your phone" or "this app is corrupted". is there any way to turn error messages on?
    Thanks for your help in advance,
    Greetings from ist, TR.
    Ali.

    i found the reason of above. if phone language is in Turkish JAVA applications wont start. for users from Turkey, set language as English and it will work fine.

  • Winxp skin on swt apps

    To run an swt app with the winxp skin you need a manifest file, java.exe.manifest, for the launching jvm. how can i do this through a web start launch?

    Your answer is slightly not correct regarding a JWS deployment on a client. A normal deployment user won't be able to change or do this... :-)
    Anyone has figured out how to manage this via Webstart directly?!?
    An approach would be to repackage the SWT-App with an own EXE-File-Wrapper?!
    Message was edited by:
    yosh.de

  • GUI Scripting Java SWT apps

    Hi,
    It doesn't appear that the GUI scripting works with Java SWT apps (eclipse, etc). Is there any way to get this to work?
    Thanks,
    George

    Explorer it with PreFab UIBrowser see if it got any GUI element, if not out of luck. I don't have any Java SWT so I have no way to test my idea. But that where I would start.

  • The Atari's Greatest Hits app have a problem

    The Atari's Greatest Hits app have a problem because it 'buys' the app from the app without asking the password. How can I ask for my money back because my 2 year old kid playing with the Ipad 'bought' the app and we don't want it... someone could help me??

    I would contact your stereo or car's manufacturing and speak with their support. They should be able to verify that for you.
    Do you know for sure that it still works with less than 9,500 songs when you remove a few songs to put you below that number?
    B-rock

  • Oracle App Server - Applet problem (HELP)

    I have a problem with accessing an applet in placed in a sub directory from the webroot. Basically, I can run an applet successfully in my webroot. When the same applet is placed in a sub dir in the webroot, OAS can't resolve the path and can't find the class file. Here's how I specified my applet:
    <applet code=com.helloapplet width=200 height=50>
    The helloapplet.class is in the "com" package and placed in the "com" dir under the webroot.
    I tried this also:
    <applet code="helloapplet.class" CODEBASE="com" width=200 height=50>
    both with the helloapplet.class as part of the "com" package and with it as part of the default package in the "com" dir.
    Anyideas greatly appreciated. Thanks.
    null

    Try the following:
    Move the RMI classes to applib directory instead of encapsulating it in the application. This will ensure that the classes are seen across applications so that whoever activates the RMI registry will not be the only one who can see the RMI classes, but other apps that needed to bind their own classes can see them as well.
    Alternatively, you can add this in application.xml:
    <library path="<rmi class directory"/>
    or
    <library path="<jar file that contains rmi classes (ex. rmiclass.jar)>"/>

Maybe you are looking for

  • Can't get the desktop app to work - forced to sign out and it shuts down

    I was unable to install the most recent update for Adobe Story, so I uninstalled the app, went online and re-downloaded. Now, when I try to launch I get an error that user preferences weren't found, and it forces me to sign out, so I can't work offli

  • Portal not running

    Hi Guys , I anstalled portal,but i am trying to launch url  "https://inld50054767a:53000/irj/portal" i m getting "500   Internal Server Error   Application error occurred during request processing.   Details:   java.lang.NullPointerException: null Ex

  • Cannot synchronise as outlook fails to open for N8...

    I updated PC suite to 6.83 from 6.82 and now cannot synchronise due to failure of outlook to open. I also updated device firmware to v.4.0707.0.7. Can a good summaritan kindly assist?

  • Document splitting & new GL function

    Dear All, I need document for document splitting & new GL function. It is urgent. My email ID is [email protected] Please help. Thanks Gov

  • Ipad goes black unexpectedly

    Hello!  I have a new iPad 3rd Gen and every once in a while the screen goes black/blank and the only way to get it to come back is to press the Off button on the top (it will click) and then press the Home button.  It is unpredictable.  I does, howev