Results 1 to 4 of 4
Thread: swt application running
- 10-25-2008, 04:47 PM #1
swt application running
hello ! I'm new to SWT and have written just a few simple programs, but execute them outside the IDE is problematic :( i simply export the project from eclipse3.1.2 , add manifest.mf where point Class-Path and Main-Class , then i put the jar with needed resources in the same folder, that's it !
But when double-clicking on myApp.jar the console is shown and immediately disappears, however from cmd it works well ! Please suggest me what to do !!!!!! :confused:
- 10-25-2008, 05:57 PM #2
What OS are you on? The quick flashing screen means that java gets an error trying to open the jar file.
Is the OS executing a different commandline than you are?
If you are on Windows, you can look in the Registry for the commandline used to open a jar file. Or you can use windows explorer Tools|Folder Options|FileTypes -> scroll down to the JAR entry, edit it(Advanced butteon) and look at the open entry (or the one that is hi-lited). The commandline will be the 2nd one: application used to perform...
Is that what you use?
- 10-28-2008, 01:36 PM #3
but one problem still remains : i have two files , swt.jar and myApp.jar, so can i put swt.jar into myApp.jar so that myApp.jar is run properly, I tried , but it didn't work! ( if Class-Path: swt.jar means that swt.jar is in the same folder, then Class-Path :myApp.swt.jar must be meant that swt.jar is in the myApp.jar, yes? )
- 10-28-2008, 03:14 PM #4
- By jagadeeshchinni in forum New To JavaReplies: 4Last Post: 09-28-2008, 11:14 AM
- By firstname.lastname@example.org in forum AWT / SwingReplies: 2Last Post: 08-24-2008, 05:24 AM
- By dsiwal in forum Threads and SynchronizationReplies: 2Last Post: 06-10-2008, 07:38 AM
- By barney in forum Java AppletsReplies: 1Last Post: 08-07-2007, 08:12 AM
- By fernando in forum Advanced JavaReplies: 1Last Post: 08-01-2007, 01:25 AM