Have you asked on Google?
This has nothing to do with java programming.
Printable View
Have you asked on Google?
This has nothing to do with java programming.
I WANT TO DO IS SIMPLE PROGRAM TO OPEN AN INSTALLER NETWORK, WHICH IS LIGHT JAVA NORM
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!!!!
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:
Code :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()); } } } }
@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.
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.
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
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.