Results 1 to 2 of 2
  1. #1
    glmarsh is offline Member
    Join Date
    Jul 2009
    Posts
    4
    Rep Power
    0

    Default SWT program on Linux can find jar files.

    I have a SWT program that I want to jar and run on a Fedora 11 Linux environment. The program runs fine in my Eclipse IDE but will not find the dependent jars (swt.jar, the eclipse plugin jars, etc...) no matter where I put them or how I declare them in my classpath. I decided to put all the content of the dependent jars inside my jar by using the subtask <zipfileset ... />. It appears that the compile and jar process worked but when I go to run my jar I get a security error regarding the jar file not being signed.

    Do I really have to sign the jar to run it as a standalone program in Linux and once I sign the jar will I be able to transfer the jar to a second machine and run it without having to jump through more hoops?

    Regard,

    glmarsh

  2. #2
    glmarsh is offline Member
    Join Date
    Jul 2009
    Posts
    4
    Rep Power
    0

    Default Solved

    Oddly enough the issue was solved by simplifying the Manifest.MF file. In my Ant build file I had created a Manifest that incorporated <section > subtasks. One of the <sections > included an attribute name="Sealed" value="false" and for some inexplicable reason this kept triggering the security error. I removed the section subtask, streamlined the manifest definition and the error went away. The program deploys correctly and runs without a problem.

    glmarsh

Similar Threads

  1. How do you run a java program in linux?
    By rayzinnz in forum New To Java
    Replies: 4
    Last Post: 07-17-2009, 08:18 AM
  2. Cannot find Main class in Linux OS
    By msskiran in forum Eclipse
    Replies: 0
    Last Post: 04-10-2009, 02:04 AM
  3. loading flash files in linux
    By rajeshang in forum AWT / Swing
    Replies: 0
    Last Post: 05-31-2008, 01:59 PM
  4. Files not completely deleted on Linux
    By amamare in forum Advanced Java
    Replies: 0
    Last Post: 12-19-2007, 02:12 PM
  5. how to find files in given directory
    By cecily in forum New To Java
    Replies: 1
    Last Post: 08-05-2007, 04:26 AM

Posting Permissions

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