Results 1 to 3 of 3
  1. #1
    newbie123 is offline Member
    Join Date
    Nov 2009
    Posts
    90
    Rep Power
    0

    Default Deployment to Windows Machine

    A little context ... I'm firmly rooted in the UNIX world, writing F77 code. I have only recently acquired a Mac and learned some Java.

    I successfully build a Java program on my Mac, and I create a jar file from it. I can send this jar file to any Mac user, and it runs great.

    I try the samething with a Windows 7 machine. (I have little experience with Windows.) I successfully build the Java program and create a jar file from it. The jar file works fine.

    I send the jar file to other Windows users, they click on it, and they get a "ding" and that's it.

    Can anyone tell me the necessary conditions to get the jar file to work on a Windows machine? The users claim to have Java on their machines, there are no Path, association, etc. problems.

    I seem to be spending more time trying to get Java working on Windows machines than actually writing code.

  2. #2
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Location
    Dystopia
    Posts
    3,782
    Rep Power
    7

    Default Re: Deployment to Windows Machine

    Open a command prompt. Navigate to the dir where the jar file is. Run the file with:
    Java Code:
    java -jar FileName.jar
    If the jar does not execute you should get some info as to the cause.

    Also, open Windows Explorer. Click Tools > Folder Options > File Types. In the list scroll down and click JAR Executable Jar File. At the bottom it should display which program JAR files open with. If it has no association then you will need to "Change" it.

  3. #3
    newbie123 is offline Member
    Join Date
    Nov 2009
    Posts
    90
    Rep Power
    0

    Default Re: Deployment to Windows Machine

    I'll have them run the jar file from a command prompt and see what comes back.

    Thanks.

Similar Threads

  1. Connect to remote Windows machine using JAVA on Linux
    By sumukh_death in forum Networking
    Replies: 6
    Last Post: 09-23-2011, 06:23 PM
  2. Difficulty with Java RE/Virtual Machine on Windows 7
    By deejaycruiser in forum New To Java
    Replies: 1
    Last Post: 03-08-2011, 07:45 AM
  3. Replies: 0
    Last Post: 02-07-2011, 01:27 PM
  4. Access Windows xp from Unix machine
    By mchhapolia in forum Advanced Java
    Replies: 2
    Last Post: 04-15-2009, 02:04 AM
  5. deployment
    By Nicholas Jordan in forum NetBeans
    Replies: 4
    Last Post: 07-09-2008, 05:10 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
  •