Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Java and networking

  1. #1
    Junior Member
    Join Date
    Oct 2013
    Location
    Durban
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Java and networking

    Hi all,

    Please help with the following peace of code, i am using Netbeans to try and use java embedded with WMI to get information on remote PC's within a network. I am trying to import the following but it tells me the package does not exist. Please please help

    import com.ms.com.*;
    import com.ms.com.Variant;
    import org.jinterop.dcom.common.IJIUnreferenced;
    import org.jinterop.dcom.common.JIException;
    import org.jinterop.dcom.common.JISystem;
    import org.jinterop.dcom.core.JIComServer;
    import org.jinterop.dcom.core.JIProgId;
    import org.jinterop.dcom.core.JISession;
    import org.jinterop.dcom.core.JIString;
    import org.jinterop.dcom.core.JIVariant;


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,139
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: Java and networking

    tells me the package does not exist.
    That means the compiler can not find the package on the classpath. You need to find the jar file that contains that package and include it on the classpath so the compiler can find it. The IDE has a way to add jar files to the classpath for the compiler.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Oct 2013
    Location
    Durban
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Java and networking

    Thank you alot Norm, this certainly helped alot, i am now proceeding with building the rest of my code.

    Thanks again

Similar Threads

  1. Java networking basics
    By Earthly Minds in forum Java Networking Tutorials
    Replies: 0
    Last Post: June 9th, 2013, 07:50 PM
  2. Networking Java
    By aneel in forum JDBC and Database Tutorials
    Replies: 1
    Last Post: December 13th, 2011, 03:28 AM
  3. Social networking with java
    By tah_206207 in forum Web Frameworks
    Replies: 4
    Last Post: December 2nd, 2011, 03:57 PM
  4. networking in java
    By sridhar in forum Member Introductions
    Replies: 1
    Last Post: October 4th, 2010, 11:11 AM
  5. [SOLVED] java networking
    By renu1 in forum Java Networking
    Replies: 0
    Last Post: March 12th, 2010, 12:33 PM