Java for OS/390 - Submitting JCL

Does anyone know how to submit a JCL job through Java in MVS? The IBM site has proven to be of absolutely no help (as usual), and I couldn't find any references to something like this on the forums here or on Google.
Ideally, I would like to dynamically create my JCL and submit it directly to JES (perhaps using the internal reader?). However, I have found an API that will (supposedly) allow me to create datasets... if there is a way to submit an actual dataset containing JCL, then that would be acceptable as well.

For anyone who may stumble upon this thread in the future, I eventually found a way to submit JCL jobs FROM JAVA using JNI. Enjoy...
Here is the C program. You must compile it into a native library.
/*  DISCLAIMER                                                        */
/*  THIS SAMPLE PROGRAM IS PROVIDED FOR TUTORIAL PURPOSES ONLY.  A    */
/*  COMPLETE HANDLING OF ERROR CONDITIONS HAS NOT BEEN SHOWN OR       */
/*  ATTEMPTED, AND THIS PROGRAM HAS NOT BEEN SUBMITTED TO FORMAL IBM  */
/*  TESTING.  THIS PROGRAM IS DISTRIBUTED ON AN 'AS IS' BASIS         */
/*  WITHOUT ANY WARRANTIES EITHER EXPRESSED OR IMPLIED.               */
/*  Copyright 1996, IBM Corporation                                   */
/*  All rights reserved                                               */
/*  Author: Frank De Gilio [email protected]                         */
/*  Derivative work from: John Pfuntner                               */
/* Submit JNI C code                                                  */
/* Submit a batch job from Java class                                 */
#define VERSION 1
#define RELEASE 1
   Program: Submit.c
   Version: 1 Release: 1
   Usage: intended to be a DLL called by a Java class
   Change history:
     Feb. 2002 initial release (V1R1)
#define _ALL_SOURCE
#define _EXT
#ifndef _XOPEN_SOURCE_EXTENDED
#define _XOPEN_SOURCE_EXTENDED 1
#endif
#include <jni.h>
#include <jni_convert.h>
#include "MVSJob.h"
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <strings.h>
#include <dynit.h>
#include <stdarg.h>
#include <pwd.h>
#define true 1
#define false 0
#define turn_on_HOB(x) x = (char*) ((int) x | 0x80000000)
char *create_text_unit(int key, char *value) {
  /* malloc a SVC99 text unit to be used by dynalloc() */
  char *ret=NULL;
  short *i;
  int len;
  errno = 0;
  if ((ret = malloc((len = strlen(value)+6))) == NULL)
    perror("malloc() error");
  else {
    i = (short*) ret;
    *(i++) = key;
    *(i++) = 1;
    *(i++) = strlen(value);
    strncpy(ret+6, value, strlen(value));
  return ret;
void freeit(char *ddname) {
  /* free a ddname */
  __S99parms plist;
  int rc;
  char *text_units[] = {NULL};
  memset(&plist, 0, sizeof(plist));
  plist.__S99RBLN  = 20;
  plist.__S99VERB  = 2;
  plist.__S99FLAG1 = 0x00;
  plist.__S99TXTPP = text_units;
  text_units[0] = create_text_unit(0x01, ddname);
  turn_on_HOB(text_units[0]);
  if ((rc = svc99(&plist)) != 0){
    if (plist.__S99ERROR == 0x0438);/* DDNAME was not in use */
    else
    fprintf(stderr, "ret=%d, error=%04x\n", rc,
            plist.__S99ERROR);
  else ;
FILE * OpenIntReader(void) {
  /* open a stream to the internal reader */
  FILE *stream=NULL;
  __dyn_t dyn;
  char *extra_text_units[2] = {NULL, NULL};
  int ret;
  char * pIntrdrVar;
  freeit("INTRDR");
  pIntrdrVar=getenv("INTRDRCLASS");
  if (NULL==pIntrdrVar){
    pIntrdrVar=(char *) malloc(2);
    strcpy(pIntrdrVar,"A");
  dyninit(&dyn);
  dyn.__ddname = "INTRDR";
  dyn.__recfm  = _F_;
  dyn.__lrecl  = 80;
  dyn.__miscitems = extra_text_units;
  extra_text_units[0] = create_text_unit(0x19, "INTRDR");
  extra_text_units[1] = create_text_unit(0x18, pIntrdrVar);
  turn_on_HOB(extra_text_units[1]);
  if ((ret = dynalloc(&dyn)) != 0) {
    fprintf(stderr, "ret=%d, error=%04x, info=%04x\n", ret,
            dyn.__errcode, dyn.__infocode);
  else {
    if ((stream = fopen("//dd:intrdr", "w")) == NULL)
     fprintf(stderr,"Error opening dd intrdr\n");
  return stream;
void WriteToReader(FILE * Stream, char * Buffer){
int i;
int Bufflen;
  if ((Bufflen=strlen(Buffer))>80){
    for (i=0;i<Bufflen;i+=80)
     fwrite(((char *)(Buffer+i)),1,80,Stream);
  fwrite(Buffer,1,80,Stream);
void CloseIntReader(FILE * Stream){
  /* Close the internal reader stream */
  fclose(Stream);
  /* free the dd */
  freeit("INTRDR");
JNIEXPORT void JNICALL Java_MVSJob_submitDLL
   (JNIEnv * env, jobject obj, jstring Cards){
FILE * Stream;
jint rc;
jint outlen;
char * Buffer;
rc = GetStringPlatformLength(env, Cards, &outlen, NULL);
Buffer=(char *) malloc(outlen);
GetStringPlatform(env,Cards,Buffer,outlen,NULL);
if(NULL==(Stream=OpenIntReader())) return;
WriteToReader(Stream,Buffer);
CloseIntReader(Stream);
return;
}Here is the Java class, with the native method submitDLL(String[]):
import java.io.*;
import java.util.*;
*MVSJob is a class used to submit JCL to the JES internal reader.
* It requires that "libJavaMVSJob.so" (the complied native DLL)
* be included in the LIBPATH.
public class MVSJob {
private String Cards;
static{
          System.loadLibrary("JavaMVSJob");
* Makes an empty intance of MVSJob.
public MVSJob() {
     super();
     Cards=new String("");
* Add a card to the vector of jobcards.
* @param Card  the jobcard to be added to the end of the jobcard vector
public void addCard(String Card) {
        //Make sure you leave in the spaces, so the job card is filled to the end
     Card=Card.concat("                                                                                ");
     Card=Card.substring(0,80);
     Cards=Cards.concat(Card);
* Submit the Cards to the internal reader.
public void submit() {
     submitDLL(Cards);
* Native method to submit the job.
private native void submitDLL(String JobCards);
}

Similar Messages

  • Integration & DB2 v7.1 for OS/390?

    DB2 v7.1 for OS/390 is not listed in the supported configuration list for Weblogic Integration 8.5 SP5, as seen at http://e-docs.bea.com/platform/suppconfigs/configs85/85_over/overview.html#1056679
    Does this mean that it is not possible to run Weblogic Integration with a DB2-OS/390 backend at all?
    Our DBAs tried to run the Weblogic Integration preparation scripts with the method described at http://e-docs.bea.com/wli/docs81/manage/database.html , but of course they ran into problems with the table names being too long. DB2 for OS/390 has 18-byte table name restrictions.
    I'm worried that we have no recourse but to install a completely separate database just to run Weblogic Integration.
    Has anybody tried Integration with DB2 for OS/390 like this?
    Any help on this matter would be appreciated.

    If you are trying to create connection pool using weblogic JDBC, you
    should use java based type 4 driver that supports jdbc.
    Based on Driver vendor you can use one the following properties creating
    connection pool using weblogic on DB2.
    <JDBCConnectionPool DriverName="com.ddtek.jdbcx.db2.DB2DataSource"
    Name="DataDirect-db2-xa"
    Password="MYPASSWORD"
    Properties="user=USERNAME;PortNumber=50000;PackageName=DDTEK;ServerName=SERVERNAME;DatabaseName=DATABASE"
    Targets="MYSERVER"
    TestTableName="SQL SELECT COUNT(*) FROM SYSIBM.SYSTABLES"
    URL="jdbc:datadirect:db2://HOST:50000"/>
    <JDBCConnectionPool DriverName="com.ddtek.jdbc.db2.DB2Driver"
    Name="DataDirect-db2"
    Password="MYPASSWORD"
    Properties="user=USERNAME;PortNumber=50000;PackageName=DDTEK;ServerName=SERVERNAME;DatabaseName=DATABASE"
    Targets="MYSERVER"
    TestTableName="SQL SELECT COUNT(*) FROM SYSIBM.SYSTABLES"
    URL="jdbc:datadirect:db2://HOST:50000"/>
    <JDBCConnectionPool DriverName="COM.IBM.db2.jdbc.DB2XADataSource"
    Name="IBM-db2-xa"
    Password="MYPASSWORD"
    Properties="user=USERNAME;DatabaseName=DATABASE"
    Targets="MYSERVER"
    TestTableName="SQL SELECT COUNT(*) FROM SYSIBM.SYSTABLES"
    URL="jdbc:db2:DATABASE"/>
    <JDBCConnectionPool DriverName="COM.IBM.db2.jdbc.app.DB2Driver"
    Name="IBM-db2"
    Password="MYPASSWORD"
    Properties="user=USERNAME;DatabaseName=DATABASE"
    Targets="MYSERVER"
    TestTableName="SQL SELECT COUNT(*) FROM SYSIBM.SYSTABLES"
    URL="jdbc:db2:DATABASE"/>
    Thanks,
    Mitesh
    Luis Gasca wrote:
    Hi All,
    How can I connect to a DB2 5.1 database running on a OS/390 (TCP/IP
    installed) ?
    Thanks in advance.

  • Is there an equivalent statement in Java for this PL/SQL stmt?

    Hi,
    I want to know if there is an equivalent statement
    in java for this PL/SQL statement:
    IF strTok IN('COM-1','COM-2','COM-3') Then
    /* Do Something */
    End If;
    I tried using : // This is giving me errors..
    if (strTok.equals(("COM-1") || ("COM-2") || ("COM-3") ) )
    /* Do Something */
    The above Java code is giving me errors.
    Any Help to reduce the number of steps for comparison
    is appreciated.
    thanks in adv
    Sharath

    Something like
    if (strTok.equals("COM-1") ||
        strTok.equals("COM-2") ||
        strTok.equals("COM-3") )Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • How to get the last inserted Autoincrement value in Java for Pervasive DB

    Hi, I need to get the last inserted auto incremented value after the record is inserted IN JAVA For ex. consider we have 4 columns for the myTable in the PERVASIVE DATABASE V10 autoid - identity column (auto increment column) userID userName pageID insertSqlExpression = insert into myTable (userID , userName, pageID) values( ? ,? ,?); prepareInsert = connection.prepareStatement(insertSqlExpression); prepareInsert .excuteUpdate; After inserting the new record how can I get the autoid value (last inserted value) in the Java. Please help me.
    Thanks in advance. Arthik

    JavaArthikBabu wrote:
    I dont have privileges to write new stored procedures in database.I need to do in the Java side only. In many databases that irrelevant. The same way you would do it in a proc can be done with the correctly conceived statement (singular.)
    For ex &#150; if we insert and then the select record's identity value as a single transaction and would this guarantee that what is returned by the select would not include inserts that another might have made?Please do not take that path unless you are absolutely certain that your database does not support any other way to do it.

  • Help - I cannot set the Default Java for Browsers

    Hello:
    I'm running Win 7, the Home Premium, 64 bit flavor. I have IE 8 and FF 3.5.8 installed. FF is the default browser. I've installed Java and when I go to the test page: http://www.java.com/en/download/help/testvm.xml
    I get a message which says: "Something is wrong. Java is not working."
    HOWEVER, if I open a command prompt and type java -version, I get this:
    C:\Users\dogzilla>java -version
    java version "1.6.0_17"
    Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
    Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode)
    So I went to the control panel app, the advanced tab, and expanded the node for Default Java for Browsers. I have 2 problems.
    1. The checkbox for Microsoft Internet Explorer is greyed out; I cannot change any settings here at all.
    2. I checked the checkbox for Mozilla Family. Then, when I click OK, I get an error message which states:
    "Unable to change browser settings. Please check that Mozilla or Firefox or Netscape is properly installed on the system and/or that you have sufficient permissions to change system settings."
    Since I'm writing this message to the forum using FF, I'm going to guess that I have the browser installed correctly. So that leaves me with a permissions problem -- which I don't doubt. I have no idea where to start looking though. Especially considering I can run the files in the bin directory from a command line without any problems.
    Does anyone know how I can solve the two problems I described in this thread? Suggestions are greatly appreciated.
    Thanks!

    Thanks for the reply!
    I tried running as admin and no luck. Still experiencing the same problems.
    I've did some more reading (much more in fact for what this problem should be worth) and other forums mention that on 64 bit Windows systems, both the 32 bit and 64 bit JRE need to be installed.
    When I was running Win XP, I could just download the SDK, create an environment variable, and I was good to go. Now, it looks like if I just install the SDK, I need the JRE plugin download for just the browsers -- what a ridiculous waste/duplication!
    Thanks again for your help.

  • ColdFusion 8 Fails to start after update Java for Mac OSX 10.5 Update 4

    I have been using ColdFusion on a Mac for years. Now CF fails to start after I updated Java for Mac OS X 10.5 Update 4. I usually start by typing in the terminal window sudo /Applications/ColdFusion8/bin/ColdFusion start.
    There is a crash report but I don't know how to read it. See attached.
    Please help, I need this working for my job.
    Thanks...Colin

    Dear Craig,
    Macbook Pro 2.4GHz Intel Core 2 Duo 4 GB RAM
    I'm sure that this is 64-bit
    CF 8.0.1 Enterprise Build 3080
    I had moved the Java SE 6 to the top in both Plugin and Applications. The
    correct version is showing in the terminal window. See below.
    Last login: Thu Jun 18 11:27:09 on ttys001
    Beta-4:~ Colin$ java -version
    java version "1.6.0_13"
    Java(TM) SE Runtime Environment (build 1.6.0_13-b03-211)
    Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02-83, mixed mode)
    Beta-4:~ Colin$
    CF will not start. I have the activity monitor open, and when I start CF you
    see it in the activity monitor for a few seconds as it starts up. When the
    message process is completed in the terminal window CF disappears in the
    activity monitor.
    Any suggestions?
    C
    Hi, Colin,
    My apologies but I forgot to ask 2 questions: (1) What kind of Mac you have
    (Intel or PowerPC)? (2) What version of CF are you running and what installer
    did you choose (8 or 8.0.1, 32-bit, 64-bit, etc.)?
    To start, try the following:
    1. Normally you'd shut CF down first ... but that's not necessary for you
    2. Open Java Preferences again
    3. Select Java SE 6 and move it (drag) to the top spot in both section (Applet
    Plugin and Applications)
    4. Open Terminal
    5. Type java -version (you should see 1.6.0_13 as the new version)
    6. Try to start CF again
    This may not work (I've had issues with it) but it's technically how it's
    supposed to work. With the Java Preferences utility, you're visually setting a
    default JVM (you can do it with commands in Terminal but this is much faster
    and easier).
    If CF still won't start, look for the jvm.config file in your CF application
    folder (try /Applications/ColdFusion8/bin or
    /Applications/ColdFusion8/runtime/bin -- the latter is where a jvm.config file
    is on my machine for a particular version of CF that's installed similar to
    yours). You can override the JVM in this file but, hopefully, that won't be
    necessary!
    Best,
    Craig

  • The Java for Mac OSX 10.5 Update 10 removed the Java plugin from Firefox 5.0. How do I re-install it?

    I've just installed Java for Mac OSX 10.5 Update 10 and can no longer run Java Applets from Firefox 5.0

    Dear Craig,
    Macbook Pro 2.4GHz Intel Core 2 Duo 4 GB RAM
    I'm sure that this is 64-bit
    CF 8.0.1 Enterprise Build 3080
    I had moved the Java SE 6 to the top in both Plugin and Applications. The
    correct version is showing in the terminal window. See below.
    Last login: Thu Jun 18 11:27:09 on ttys001
    Beta-4:~ Colin$ java -version
    java version "1.6.0_13"
    Java(TM) SE Runtime Environment (build 1.6.0_13-b03-211)
    Java HotSpot(TM) 64-Bit Server VM (build 11.3-b02-83, mixed mode)
    Beta-4:~ Colin$
    CF will not start. I have the activity monitor open, and when I start CF you
    see it in the activity monitor for a few seconds as it starts up. When the
    message process is completed in the terminal window CF disappears in the
    activity monitor.
    Any suggestions?
    C
    Hi, Colin,
    My apologies but I forgot to ask 2 questions: (1) What kind of Mac you have
    (Intel or PowerPC)? (2) What version of CF are you running and what installer
    did you choose (8 or 8.0.1, 32-bit, 64-bit, etc.)?
    To start, try the following:
    1. Normally you'd shut CF down first ... but that's not necessary for you
    2. Open Java Preferences again
    3. Select Java SE 6 and move it (drag) to the top spot in both section (Applet
    Plugin and Applications)
    4. Open Terminal
    5. Type java -version (you should see 1.6.0_13 as the new version)
    6. Try to start CF again
    This may not work (I've had issues with it) but it's technically how it's
    supposed to work. With the Java Preferences utility, you're visually setting a
    default JVM (you can do it with commands in Terminal but this is much faster
    and easier).
    If CF still won't start, look for the jvm.config file in your CF application
    folder (try /Applications/ColdFusion8/bin or
    /Applications/ColdFusion8/runtime/bin -- the latter is where a jvm.config file
    is on my machine for a particular version of CF that's installed similar to
    yours). You can override the JVM in this file but, hopefully, that won't be
    necessary!
    Best,
    Craig

  • HT5717 Our company had to remove this Java for OS  2013-004 upgrade because it broke all of our Java installers. Does anyone know when Apple will solve this new problem?

    Hi,
    People at our company installed the latest Java for OSX 2013-004 1.0 Apple Update and all of our software installers failed to run anymore. The only way to kill the installer was Apple Menu -> Force Quit after that. We all had to downgrade to Java for OSX 2013-003 to work.

    Welcome to Apple Support Communities
    I have heard problems with that update. Unfortunately, we don't know when an update will be available. Apple often releases Java updates at the same time as Oracle, but we don't know more things

  • How Do I Get Java For Mac OSX 10.5.8 On A PowerBook G4 Or Update To Minimum MAC OSX 10.6.8 or later Without Spending Any Tech Mind Of My Own And Also Not Buy ANYTHING AT ALL!!!?????

    How Do I Get Java For Mac OSX 10.5.8 On A PowerBook G4 Or Update To Minimum MAC OSX 10.6.8 or later Without Spending Any Tech Mind Of My Own And Also Not Buy ANYTHING AT ALL!!!????? Please Help!!!

    Sorry, it's for 64 bit IntelMacs only...
    updating Java SE 6 to 1.6.0_26 for 64-bit capable Intel-based Macs. 
    Java for Mac OS X 10.5 Update 10

  • HT4884 java for 10.6.8 is not working

    my iMac says all software is up to date but websites that need java still say that i need to update to the latest version of java.

    For OS 10.6.8, I found the latest Java update didn't work right, either. I restored full functionality by reinstalling Snow Leopard from the DVD, then updating to 10.6.8, plus updating Safari, etc, BUT NOT JAVA. Java works fine as long as you don't go too far with the updates: make sure they say they're for 10.6.x .
    I think the problems begin with update 11, which seems to be tailored for OS 10.7 Lion and higher, but the installer doesn't check what OS you have before updating, nor is there any warning before you click install.
    John
    Model Identifier:
    iMac8,1
      Processor Name:
    Intel Core 2 Duo
      Processor Speed:
    2.4 GHz
    Mac OS X 10.6.8

  • How the heck do I install java for yosemite?

    I've tried following the links, but everytime I hit the download button nothing happens.  Not. A. Darned. Thing.  And I keep getting the message that I need to install Java for things to run properly. 

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen. Click the Clear Display icon in the toolbar. Then take one of the actions that you're having trouble with. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • User defined function in java for message mapping

    I wrote the following user defined function in java for message mapping and mapped vendor with this. The aim of this function is to write a error file at defined path when i send empty Vendor value from File to RFC-Function module BAPI_PO_CREATE. The "err.txt" error file is not written when i execute in TEST but the value "ERROR" is returned to destination Vendor Field.
    public String  validation(String a, Container container) {
    //write your code here
    if (a.equals("")) {
    try {
    String source = "Vendor cannot be empty";
    char buffer[] = new char[source.length()];
    source.getChars(0, source.length(), buffer, 0);
    for (int i = 0; i < buffer.length; i +=2)
       f0.write(buffer<i>);
    f0.close();
    FileWriter f1 =  new FileWriter("/10.10.0.55/sapmnt/trans/edixiin/err.txt");
    f1.write(buffer);
    f1.close();
    catch (IOException e) {}
    return "ERROR";

    Hi Senthil,
    Check these things :
    1) Whether you have permission to create a file in that directory.
    2) try giving this 
    10.10.0.55
    sapmnt
    trans
    edixiin
    err.txt
    3) Also check for permissions.
    Hope this will help you.
    Regards
    Suraj

  • Java broken in Firefox after Java for Mac OS X 10.6 Update 3

    After having updated my mac this morning with the latest Java for Mac OS X 10.6 Update 3, Java in Firefox is no longer working. When I open a site that contains a java applet (like javatester.org) I get the following output in the Console, and then Firefox hangs.
    21.10.10 11:44:15 [0x0-0x33033].org.mozilla.firefox[649] ### MRJPlugin: getPluginBundle() here. ###
    21.10.10 11:44:15 [0x0-0x33033].org.mozilla.firefox[649] ### MRJPlugin: CFBundleGetBundleWithIdentifier() succeeded. ###
    21.10.10 11:44:15 [0x0-0x33033].org.mozilla.firefox[649] ### MRJPlugin: CFURLGetFSRef() succeeded. ###
    Any ideas??

    Problem solved!
    For some reason I had an additional "Java" Folder (/Library/Java) with a different Java sdk. After removing this folder and (just to be sure) replacing it with a symlink to /System/Library/Java everyting works again.

  • Can't print wirelessly since Java for Mac OS X 10.5 Update 4

    I have an HP Officejet J4680 All-in-One, and have been printing wirelessly from my Macintosh (OS 10.5.7) since I purchased the printer in December 2008. However, after I installed the Java for Mac OS X 10.5 Update 4, I suddenly lost the ability to print wirelessly. I've spent hours on my own and on the phone with HP trying to figure this out, with no success. When I uninstall and reinstall the printer, I can get to the point in the HP Setup Assistant in which the network configuration has been successfully downloaded to the printer (I see an IP address, Subnet Mask, etc.), but then I get an error message of "Device Not Reachable . . . please make sure that your Mac has access to the network and retry." My Mac does have access to the network because I can get on the internet wirelessly.
    I've tried entering the IP address manually, etc.--but nothing has worked. It's as if the printer is on the network, and the computer is on the same network, but they somehow can't talk to each other. Anyone else notice this problem, and how do I solve it?? Thanks in advance for your time!

    Hello Laura C. I haven't noticed any problems with my wireless connections to my Canon printers, at home or at work, and I have the Update 4 installed. I also cannot think how this update would have impacted your ability to connect to the printer, except maybe due to a reliance of the HP software using Java to operate. But this should not have stopped your existing connection from working, only a new connection...
    Apologies in advance if you have already been through the following, but if you were successful in entering an IP address manually, I would then check that you can get a response from the printer. The best tool to use is Ping. Open Applications > Utilities > Network Utility. Here you will see the Ping tab, as well as several other IP tools.
    Before you select Ping, select Info (it probably has defaulted to this). This pane shows you the current IP address settings for your Mac. Since you are using wireless, change the drop menu from en0 (which is Ethernet) to en1 (wireless). This will show your current IP address set in the Mac. Make a note of this.
    Now select the Ping tab and enter the IP address of the HP. Change the number of pings to 4 and press the Ping button. If the addresses are correct and the network infrastructure working you should get a response. If you get something like " 4 packets transmitted, 0 packets received, 100% packet loss", then that would explain the unreachable message.
    The biggest cause of this symptom is subnetting. To explain further, an IP address consists of two parts, the subnet and network address. The subnet is determined by the subnet mask. If you have a subnet mask of 255.255.255.0, the your subnet is the first three sets of numbers in your IP address and the network address is the last number. For example, an IP address of 10.0.1.10 and subnet mask of 255.255.255.0 has a subnet of 10.0.1 and a network address of 10. For devices to communicate on a local network, they typically need to have the same subnet and a different network address. Can you confirm the subnets for the Mac and printer are the same and the network addresses are different.
    If you get responses to the Pings, which indicates the IP addressing is okay, the other services like firewalls can stop some printer utilities from working correctly. Have you checked your System Preferences > Security > Firewall setting is set to allow all incoming connections?
    HTH
    Pahu

  • Failed update: "Java for Mac OS X 10.4, Release 6"

    In successfully updating to OS X 10.4.11 from 10.4.10 the subject java update, "Java for Mac OS X 10.4, Release 6", came up from Software Update. In trying to install it, it stalled at the very end of the installation. It again failed on a second try. Later on, using Spotlight, I checked my existing Java version to already be Java 1.4.2 plug-in settings -- the target update from java 1.4. Do I really need this Java Release 6? I'm running Sarafi 3.0.4 and Netscape 7.2. Thanks.

    I'd be suspicious about an aborted partial install myself, have you tried the stand alone installer?
    I'd Verify the HD, Repair Permissions, then get...
    http://www.apple.com/support/downloads/javaformacosx104release6.html

Maybe you are looking for

  • HP Officejet 4630 e-All-in-O​ne Series

    Hello,  I have just bought a Mac book Pro and and HP Officejet 4630 printer. I started setting up my printer and since I am in college and using my school's wireless connect. The only way to locate my printer is by changing my wireless connection to

  • RTF template does not format properly when run from Concurent Manager

    Hi I have complex RTF template; many stuff in are in header in word table format,body section again fields are in table format and Footer again in word table format. When I run BI Publisher report as concurrent request half the content like header an

  • How to count number of methods in a java file

    Is there any way to know the count of methods or variables (instance) in a java file or at least in main() of a java file? If yes , can we know about their access modifiers?

  • I receipt 2 days about 18 bills

    I receipt 2 days about 18 bills in 10 minutes, by 18/07: 10 bills and 19/07= : 8 bills, I didn't play that games on my Iphone, can I get my money back ,= please help me. Thank a lot Look that one please Where's My Perry?, v1.0.3 (4+) Write a Review R

  • New symbol instead of wifi, since update

    since updating to 2.1 when my wifi is off there is a tiny little circle instead anyone know what it is??