Hi,
I want to create SWT file with Myeclipse. Thats why I have created a Java
project. Actually there is no any option to create SWT Project. Then I
have created simple java file and put the following code
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
public class SWTExample {
public static void main(String[] args)
{
Display display = new Display();
Shell shell = new Shell(display);
shell.setText(“Toolbar Test”);
shell.setLayout(new FillLayout());
shell.setSize(300, 400);
Button button = new Button(shell,SWT.BORDER);
button.setText(" Rolta ");
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch()) {
display.sleep();
}
}
display.dispose();
}
}
This program has successfully completed and there is no error. But at time
execution it show the error like
Launching SWTExample has encountered a problem.
These are detailed about the error
Exception occurred executing command line.
CreateProcess: “C:\Program
Files\Genuitec\Common\binary\com.sun.java.jre.win32.x86_1.5.0.011\bin\javaw.exe”
-Dfile.encoding=Cp1252 -classpath
D:\DWorkspace\TestProject\bin;D:\DWorkspace\TestProject\lib\swing-layout-1.0.3.jar;D:\DWorkspace\TestProject\lib\AbsoluteLayout.jar;D:\java\eclipse\plugins\org.eclipse.swt.win32.win32.x86_3.4.1.v3449c.jar;D:\java\eclipse\plugins\org.eclipse.jface_3.4.1.M20080827-2000.jar;D:\java\eclipse\plugins\org.eclipse.jface.databinding_1.2.1.M20080827-0800a.jar;D:\java\eclipse\plugins\org.eclipse.jface.source_3.4.1.M20080827-2000.jar;D:\java\eclipse\plugins\org.eclipse.jface.text.source_3.4.1.r341_v20080827-1100.jar;D:\java\eclipse\plugins\org.eclipse.jface.text_3.4.1.r341_v20080827-1100.jar;D:\java\eclipse\plugins\org.sat4j.pb_2.0.0.v20080602.jar;D:\java\eclipse\plugins\com.instantiations.designer.gwt.hosted.1_4.linux_6.9.0.200901212148.jar;D:\java\eclipse\plugins\com.instantiations.designer.gwt.hosted.1_4.mac_6.9.0.200901212148.jar;D:\java\eclipse\plugins\com.instantiations.desig"
What I do for this program execution? Or how to handle this error?
Regards
Damodhar Zade