Results 1 to 6 of 6
  1. #1
    LoTech is offline Member
    Join Date
    Sep 2008
    Posts
    3
    Rep Power
    0

    Default Patch Application Stupidity (mine!)

    Okay, I have suddenly found myself supporting code on a Windows server - something I have never done. In applying a patch, the instructions clearly tell me to enter:

    > java -jar setup.jar (Note that you need to have a JVM in your path.)

    And of course, I have no idea what this implies. When I try to make a go of this (the file is on the E drive), I get:

    'java' is not recognized as an internal or external command, operable program, or batch file.

    Can anybody get me started on this?

    LoTech

  2. #2
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    7

    Default

    Quote Originally Posted by LoTech View Post
    'java' is not recognized as an internal or external command, operable program, or batch file.
    Do you have Java installed on the server?
    The error message is clear, there is no program named "java" on your path.

    So if its installed, make sure its on the path.
    If not installed, install it first.

  3. #3
    LoTech is offline Member
    Join Date
    Sep 2008
    Posts
    3
    Rep Power
    0

    Default

    Quote Originally Posted by fishtoprecords View Post
    Do you have Java installed on the server?
    The error message is clear, there is no program named "java" on your path.

    So if its installed, make sure its on the path.
    If not installed, install it first.
    Yeah, this is where my total lack of experience with windows or unix comes into play...

    Java is installed and working. How do I get it on the path? Is this one of those system variables that I need to change, or am I just way off base?

    Thanks!

  4. #4
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    7

    Default

    How do you know its working?

    How you add it to the path varies with the OS. In Linux, your sysadmin edits the /etc/profile entries.

    In Windows, you set it in "Environment" which is accessible from Control Panel, but its been a while and I'm not current on the exact steps. Go to ControlPanel, look at System, and wander until you find "Environment"

  5. #5
    LoTech is offline Member
    Join Date
    Sep 2008
    Posts
    3
    Rep Power
    0

    Default

    Quote Originally Posted by fishtoprecords View Post
    How do you know its working?

    How you add it to the path varies with the OS. In Linux, your sysadmin edits the /etc/profile entries.

    In Windows, you set it in "Environment" which is accessible from Control Panel, but its been a while and I'm not current on the exact steps. Go to ControlPanel, look at System, and wander until you find "Environment"
    Thanks for the help!

    Yeah, I found the system variables, but have no clue which one I should change.

    Java is indeed working - the application requires it, and I can see javaw.exe running in task manager.

    LoTech

  6. #6
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,556
    Rep Power
    25

    Default

    How often will you need to run the java command? If not very often, you can specify the full path to the java.exe command on your commandline:
    D:\Java\jre1.6.0_02\bin\java.exe -jar ...

    The Environment value to set is PATH.
    I get the following for the path command entered at cmd terminal:
    C:\Documents and Settings\Owner>path
    PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Sys tem32\Wbem;C:\Program Files\Java\jdk1.5.0_04\bin;C:\Perl\bin;C:\BatchFil es;C:\Program Files\Support Tools\
    Ignore the line foldings.

    As you can see I have several versions of java I can execute. 1.5 is the installed one.
    Last edited by Norm; 09-17-2008 at 02:59 AM.

Similar Threads

  1. Replies: 0
    Last Post: 02-16-2008, 09:31 PM
  2. Replies: 0
    Last Post: 02-16-2008, 09:29 PM
  3. Need help in releasing a patch to Java application
    By venusunil in forum Advanced Java
    Replies: 1
    Last Post: 10-31-2007, 09:35 PM
  4. how to use JTA for application
    By mary in forum Advanced Java
    Replies: 1
    Last Post: 07-13-2007, 04:34 PM
  5. Help, GUI Application
    By Felissa in forum AWT / Swing
    Replies: 2
    Last Post: 07-04-2007, 08:19 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
  •