Results 1 to 2 of 2
  1. #1
    JL4 is offline Member
    Join Date
    Nov 2008
    Rep Power

    Unhappy Packaging and Running Java Apps

    I need to package my Java application and get it working with minimum hassle.
    There are external libraries that it need to find which is set by the VM arguments in Eclipse.

    I used the export option in Eclipse to create a jar file.

    But when I ran the below line in Cygwin, the VM arguements or -D does not seem to work.

    Java Code:
    java -jar nlp.jar -Xms32m -Xmx200m -Dgate.home=C:\projectLibs\gate-5.0 -Djava.ext.dirs=C:\projectLibs\gate-5.0\lib\ext\guk.jar
    The following are in my VM Arguments in Eclipse:
    Java Code:
    -Xms32m -Xmx200m 
    Any ideas?

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Rep Power


    Java Code:
    java -Xms32m -Xmx200m -Dgate.home=C:\projectLibs\gate-5.0 -Djava.ext.dirs=C:\projectLibs\gate-5.0\lib\ext\guk.jar -jar nlp.jar
    As soon as you enter the jar to be used, the rest of the command line go to the main class (i.e. are the String[] args in main) rather than to th JVM (I.E. JVM arguments).

Similar Threads

  1. Replies: 0
    Last Post: 03-27-2009, 03:53 AM
  2. problem in running a swing apps....
    By vrk in forum AWT / Swing
    Replies: 3
    Last Post: 02-01-2009, 04:36 PM
  3. Packaging Driver and Applet
    By ibanez270dx in forum New To Java
    Replies: 0
    Last Post: 11-14-2007, 01:18 AM
  4. Packaging and accessing data files
    By todd in forum Advanced Java
    Replies: 1
    Last Post: 08-01-2007, 12:27 AM
  5. How Can I Automate Java Installations for PC Apps?
    By in forum New To Java
    Replies: 0
    Last Post: 07-23-2007, 05:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts