• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Create Executable Jar File With User Library

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am Experienced Delphi GUI Prgrammer,
I have Created a test Application Using
Eclipse, Windows Builder Pro, Openswing.

The application Runs From Eclipse Well Then
I exported it to Jar and Expected That it will
run with java -jar ???.Jar but it wont run
and gives excetion about Openswing Jars.

How can I package my application with all the jars
required in a single jar/zip file which can be
put a single directory on target client and
will run with double clicking a main application Jar file

BTW the working platform is Windows XP and Target Platform
can be either Windows or Linux.

Raja S Patil
 
Marshal
Posts: 79179
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch

I always seem to have problems with jars myself. I presume you have set a "main" class when you created the jar from Eclipse. I presume you have had to add Openswing to the classpath with the "use external jars" command on Eclipse.

Please go through the Java Tutorials about "deployment", and find the bit about adding to the classpath; then you can put Openswing into the same folder and the new classpath will allow it to find it.

There is a cheat's way of putting a jar into the classpath, which is to move an openswing folder into the package structure.Try executing the main method from such a folder structure. It is in theory possible to add the classes in the openswing folder to the jar with the updating commands (see the tutorial link I posted above), but I have never tried myself.
[ May 26, 2008: Message edited by: Campbell Ritchie ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic