Results 1 to 3 of 3
  1. #1
    Freddie is offline Member
    Join Date
    May 2007
    Posts
    41
    Rep Power
    0

    Default Problems with the jar

    My concrete difficulty is the following one: I develop a program for an hospital using netbeans 5.5 and when I execute it from there it me works perfectly, but when I construct a .jar and execute it, it is as if it was not finding the routes of
    classpath who when it is going to initiate does not find the images that I place to the buttons , to solve this problem initially uses a program that is called launch4j that serves to create .exe native of windows from a .jar across this program if it assumes the route it creates the exe And I list everything the perfect one if it finds the route of the images ... but it turns out that for motives of stability I am going to pass the machine to linux already mount everything (database postgrest and jdk 1.5.0) but I started to having the same problem ... when I execute from netbeans everything it works well, but when I compile and execute the .jar nothing it does not find the route where I have the icons. And the worst thing is that here I cannot create .exe in windows, I believe that my problem is with the classpath but not solving it ....

    If you can help me I will appreciate that

  2. #2
    derrickD is offline Member
    Join Date
    Apr 2007
    Location
    USA
    Posts
    50
    Rep Power
    0

    Default

    can you post a little bit of the code that shows how you are setting up the path to the images ? It may be a path difference between windows and linux. Lets see how you are setting it.

  3. #3
    Nick15 is offline Member
    Join Date
    May 2007
    Posts
    38
    Rep Power
    0

    Default

    Good morning, I know a tool that maybe can helps you, it is used to create installer for java application
    the installer is multiplataform (a jar) and the best thing is that soft is open source: "IzPack"
    for more information:
    IzPack Java Installer - start

Similar Threads

  1. Problems in JSP : Need help
    By raj4u in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 02-07-2008, 11:06 AM
  2. GUI problems.
    By saytri in forum New To Java
    Replies: 1
    Last Post: 12-16-2007, 11:27 PM
  3. gui problems
    By bluebirdjc in forum Advanced Java
    Replies: 2
    Last Post: 07-23-2007, 06:38 PM
  4. a few problems
    By gary in forum AWT / Swing
    Replies: 0
    Last Post: 07-11-2007, 05:57 PM
  5. problems with JPA
    By Ed in forum New To Java
    Replies: 2
    Last Post: 07-04-2007, 06:34 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
  •