C:\wrox\pro_jms\Chapter04\ package javax.jms does not exist

Posted on 2007-10-15
Last Modified: 2012-06-27
can someone tell me the .jar file to use for package javax.jms?  netbeans for some reason is not able to find it.
Question by:mmingfeilam
    LVL 92

    Accepted Solution

    they'd be in j2ee.jar (or whatever jar the j2ee classes are in)
    you can download J2EE or get it from your contaiuner
    LVL 4

    Assisted Solution


    Author Comment

    i think you guys are both right, but i just can't tell netbeans 5.0 where that jar is located so it will build my project.  i tried the library manager and added a new library and used the j2ee.jar file, but the build still failed.  maybe i need to use ant and the build.xml.
    LVL 92

    Expert Comment

    you sure there isn't a jar with your MQ?

    Author Comment

    when i build from the command line using jdk 1.6, it's fine.  but with netbeans 5.0 (i have to use it since our client uses only 5.0), the latest jdk it will use is jdk 1.5 (but even that i think should be fine as JMS is not new technology).  i think maybe i should modify build.xml and use the attached ANT compiler to build instead.  i just need to figure out the syntax.

    Author Comment

    never mind, i figured it out.  i have to add the jar to the project's library

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Suggested Solutions

    Title # Comments Views Activity
    how to extract window origin in spring 2 55
    canBalance challenge 34 55
    matchUp  challenge 9 48
    userCompare  challenge 3 51
    Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
    Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
    Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
    This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now