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.

Page 2 of 2 FirstFirst 12
Results 26 to 33 of 33

Thread: install network program

  1. #26
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: install network program

    Have you asked on Google?
    This has nothing to do with java programming.
    If you don't understand my answer, don't ignore it, ask a question.

  2. #27
    Junior Member
    Join Date
    May 2012
    Posts
    18
    My Mood
    Aggressive
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: install network program

    I WANT TO DO IS SIMPLE PROGRAM TO OPEN AN INSTALLER NETWORK, WHICH IS LIGHT JAVA NORM

  3. #28
    Junior Member
    Join Date
    May 2012
    Posts
    18
    My Mood
    Aggressive
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: install network program

    NORM NO IDEA, NO SOURCE CODE TUTORIAL DETAIL THAT EXPLAINS HOW I DO IT, YOU JUST DO NOT KNOW THAT SPEAKS AND THAT'S NOT TO DO!!!!

  4. #29
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: install network program

    What is "installer network"? Why do think a java program can do it?

    Java has several classes for doing network things: Socket and the datagram packets. These classes are in the java.net package.

    You are in the wrong forum if you are looking for someone to write some code for you. This forum is for helping students learn java.

    EDIT: I see that you have updated several of your old posts with code but you forgot to tell anyone about those changes.

    For exmple post#1 now has:
     
    import java.io.InputStream; 
    import java.util.Scanner; 
    import jcifs.smb.SmbFile; 
     
    public class Compartilhamento { 
     
    public static void main(String[] args) throws Exception { 
    SmbFile file = new SmbFile("smb://10.0.0.2/public/program.exe"); 
    if (file.exists()) { 
      InputStream stream = file.getInputStream(); 
      Scanner sc = new Scanner(stream); 
      while (sc.hasNextLine()) { 
        System.out.println(sc.nextLine()); 
      } 
    } 
    } 
     
    }
    Last edited by Norm; May 30th, 2012 at 10:44 AM. Reason: Added code
    If you don't understand my answer, don't ignore it, ask a question.

  5. The Following User Says Thank You to Norm For This Useful Post:

    ferrarini (May 30th, 2012)

  6. #30
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,318
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: install network program

    @ferrarini, please don't report posts unnecessarily. The report feature is to notify the moderator staff of users breaking forum rules, and abuse of it is in and of itself breaking forum rules.

  7. #31
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: install network program

    I'm locking this thread. I've deleted the ridiculous posts ferrarini created, which were insulting, vulgar, and rude.

    ferrarini, Norm has been extremely patient with you, despite you making every effort to prevent people from helping you. I suggest you take the advice you've received and think about it carefully. Then read the link in my signature on asking questions the smart way before you post again. You also owe Norm an apology before expecting to receive any kind of further attention.

    One more outburst like that, and I'll ban you. This will be your only warning. These are technical forums, so we don't have time for childish antics.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  8. The Following User Says Thank You to KevinWorkman For This Useful Post:

    copeg (May 30th, 2012)

  9. #32
    Junior Member
    Join Date
    May 2012
    Posts
    18
    My Mood
    Aggressive
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Lightbulb INSTALL PROGRAM NETWORK

    Duplicate thread merged by KevinWorkman:

    import java.io.InputStream;
    import java.util.Scanner;
    import jcifs.smb.SmbFile;

    public class Compartilhamento {

    public static void main(String[] args) throws Exception {
    SmbFile file = new SmbFile("smb://10.0.0.2/public/PROGRAM.EXE");
    if (file.exists()) {
    InputStream stream = file.getInputStream();
    Scanner sc = new Scanner(stream);
    while (sc.hasNextLine()) {
    System.out.println(sc.nextLine());
    }
    }
    }

    }


    CAN SOMEONE PLEASE HELP ME WITH THIS CODE THAT IS GIVING ERROR? I WILL BE FOREVER GRATEFUL
    Last edited by KevinWorkman; May 30th, 2012 at 01:06 PM.

  10. #33
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: install network program

    No. That doesn't mean start another identical thread. It means to calm down, slow down, and really think about the things Norm told you. It means read the link in my signature about how to ask questions. It means to ask an actual technical question.

    I'm one post form banning you. Norm seems willing to help so I haven't done so yet, but if you don't start listening to the advice you're receiving, I'm pulling the plug.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Page 2 of 2 FirstFirst 12

Similar Threads

  1. how to install the JVM?
    By warnexus in forum Java IDEs
    Replies: 3
    Last Post: September 1st, 2011, 10:33 AM
  2. How to install the JDK on Ubuntu Linux
    By Brt93yoda in forum Java JDK & IDE Tutorials
    Replies: 2
    Last Post: July 9th, 2011, 07:18 AM
  3. How to install the JDK on Ubuntu Linux
    By Brt93yoda in forum Java Code Snippets and Tutorials
    Replies: 1
    Last Post: June 5th, 2011, 09:09 AM
  4. Java Network performance analyser program help
    By Tark221 in forum Java Theory & Questions
    Replies: 4
    Last Post: March 22nd, 2011, 01:02 PM
  5. Maven Issues - mvn install
    By Paolo Futre in forum Java Theory & Questions
    Replies: 5
    Last Post: August 26th, 2009, 05:07 AM

Tags for this Thread