Have you asked on Google?
This has nothing to do with java programming.
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.
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.
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:
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.
ferrarini (May 30th, 2012)
@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.
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!
copeg (May 30th, 2012)
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.
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!