• Post Reply Bookmark Topic Watch Topic
  • New Topic

Please show me the way by offering a good source like a book or something else  RSS feed

 
omid azadi
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ,
i know the concepts of java programming. but i dont have enough information about java packages and use of them.
for example when i see a class like "Process" in package "java.lang" , i feel bad for being so unaware.
I need a source for example a book that introduces these kind of information.in other words i need to know most necessary packages in java. please help
 
Stevens Miller
Bartender
Posts: 1445
30
C++ Java Netbeans IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As-salamu alayka, omid.

It sounds like you are having trouble learning about the Java standard library. Don't feel bad about that. It's a big library and takes a long time to learn much about it.

What kind of programs do you want to write? Tell us something more about what you are doing, or what you want to do, and maybe we can suggest a book or Web site that will help you learn more about the parts of the library you will need to understand.
 
L Foster
Ranch Hand
Posts: 242
14
Android Angular Framework AngularJS Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@omid,
Process in particular, is for running a program that is not implemented in Java. It is for running "ls" in Unix, or "rundll32" on windows, etc. I know you want more broad information, but this makes a good example.

This link is a typical "JavaDoc" page, at Oracle. Note that there is one for Java8 and one for Java7. It is best to go for the one that matches your JDK.

http://docs.oracle.com/javase/7/docs/api/java/lang/Process.html
http://docs.oracle.com/javase/8/docs/api/java/lang/Process.html

And this is a tutorial set. This has many sort of "trails" you can follow, to get more in depth knowledge about concepts.
http://docs.oracle.com/javase/tutorial/

There is one specific to processes and threads: https://docs.oracle.com/javase/tutorial/essential/concurrency/procthread.html.

One big word to the wise, when it comes to messing around with running programs from Java. The last time I used it for anything, I had to be very very careful to discard all the output coming from standard error and standard output, and to do it in such a way that neither one blocked the other. A quick and easy way to avoid having this happen, is to wrap whatever you are doing in a little batch script. Then run the batch script from your Java Process, and make sure that batch script does not send ANYTHING to standard output or standard error. If you are new to this stuff, that might be the easiest way. If this gets by you (and, if things have not changed that much since years ago, when I was using Runtime for this), your code can lock up completely.
 
omid azadi
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Stevens Miller wrote:As-salamu alayka, omid.

It sounds like you are having trouble learning about the Java standard library. Don't feel bad about that. It's a big library and takes a long time to learn much about it.

What kind of programs do you want to write? Tell us something more about what you are doing, or what you want to do, and maybe we can suggest a book or Web site that will help you learn more about the parts of the library you will need to understand.

As-salamu alayka , but I am not arab :-)
--------
I want to be able to write any kind of program. I want to be a fast and good programmer that takes advantages of all the java libraries
 
omid azadi
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
L Foster wrote:@omid,
Process in particular, is for running a program that is not implemented in Java. It is for running "ls" in Unix, or "rundll32" on windows, etc. I know you want more broad information, but this makes a good example.

What do you mean by " a program that is not implemented in java ".
What are "1s" and "rundll32" ?
Where can I read about these information from the very beginning?
_____
Thank you very much . L Foster
 
L Foster
Ranch Hand
Posts: 242
14
Android Angular Framework AngularJS Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not one-ess, ell-ess. "ls" is a linux/unix command for getting a directory listing. "rundll32.exe" is one way people used to trigger a browser like Firefox to open a web page. Those were just examples of programs that were not written in Java.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!