My Notepad

  • My Linux Notes
  • My Grid Notes
  • To do List
  • Thursday, December 15, 2005

     
    Try SWT on eclipse

    I tried to run my first SWT program on linux today.
    The file can successfully pass compilation after I refered the classpath in the command line:
    javac -classpath /usr/share/eclipse/plugins/org.eclipse.swt.gtk.linux.x86_3.1.1.jar SWTHello.java

    However, errors still occur when I try to run it using,
    java SWTHello
    I finally got it work by,
    java -Djava.library.path=/<
    /usr/share/eclipse/configuration/org.eclipse.osgi/bundles/33/1/.cp/> SWTHello

    Note, if you put the -Djava... into the eclipse argument window, it should be,
    -Djava.library.path=/usr/share/eclipse/configuration/org.eclipse.osgi/bundles/33/1/.cp

    Comments: Post a Comment



    << Home

    Archives

    December 2005   January 2006   February 2006   April 2006   May 2006   June 2006   July 2006   November 2006   February 2007   May 2007   June 2007   November 2007   February 2008   March 2008   April 2008   August 2008   December 2008   March 2009   April 2009   May 2009   June 2009   October 2009   November 2009   December 2009   May 2013  

    This page is powered by Blogger. Isn't yours?