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

    Unhappy Packaging and Running Java Apps

    Hi
    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 
    -Dgate.home=C:\projectLibs\gate-5.0 
    -Djava.ext.dirs=C:\projectLibs\gate-5.0\lib\ext\guk.jar
    Any ideas?
    Thanks

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

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