Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

stand alone SWT application  RSS feed

 
Rohit Mehta
Ranch Hand
Posts: 79
Chrome Eclipse IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all
i m tring to run swt app with a bat file
but console also opens while .bat running
what i m doing wrong , or what more should i do to stop that?

also i need swt.jar for my app, & i m unnable to combine it with my jar
i saw, there is lot at net , but unfortunately , i m not getting in

it may be classpath prob, or else
plz help
thnx
 
Neo Chung
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To run the application without using Eclipse( means run in standalone), the swt.jar library must be in your classpath
you can do the following to make the native library configuration for your application :
1. Put swt-winX.X.X.dll in the same directory as the program.
2. Put swt-winX.X.X.dll in the JAVA_HOME\bin\ directory.
3. Put swt-winX.X.X.dll in the c:\windows\system32 directory.

And then your batch file comes to
javac classpath c:\swt\swt.jar file.java
java classpath c:\swt\swt.jar;. file

try it

best regards,
neochung
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!