• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to get help in java?from command line  RSS feed

 
Nitesh Panchal
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Can anybody here help me with how to get help regarding any function in java from command line? say suppose i want to create BufferedImage object

and i give wrong constructor as :-



instead of say :-



then when i compile it the javac just throws an error that it can't find the symbol BufferedImage(int,int). It doesn't tell me what the function arguments can be or it doesn't provide any help whatsoever. Does anybody knows how can we get help like on certain method ?like what can be it's arguments and help on each argument? I don't have internet at home so please don't say that go to sun.com to view its documentation. Please somebody help me?
Thanks in advance !
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66307
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can download the JavaDoc and install it locally.
 
harilal ithikkat
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use javap

for example



 
harilal ithikkat
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:You can download the JavaDoc and install it locally.


I think Bear Bibeault is right ,Because JavaDoc will help you to find all the description and Heirarchy of classes and all bla bla about JAVA...
 
Nitesh Panchal
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks harilal ithikkat
actually i want to get help in college. Like when i am in exam and certain method's argument i dont remember, for that i needed it!
are there any alternatives also?using javap is easy but any other better option than that?(except me taking the whole java doc in college and dumping it in pc through pen drive )
 
harilal ithikkat
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yep...........
better option is to study well..........
Do all the programs urself from home
 
Saifuddin Merchant
Ranch Hand
Posts: 607
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
harilal ithikkat wrote:yep...........
better option is to study well..........
Do all the programs urself from home


Doing all your homework yourself can help you remember the Java API?

Frankly you should ask your instructor to provide you with the Java API documentation. Its ridiculous to expect anyone to remember the API even for learning purposes.

Now for a way out. Java 5 onwards usually the installation includes the source code. Check the Java Home directory for a zip (or tar or whatever your platform is) file called source.zip. Unzip the content and you should have all the source code for Java. Now generate the documentation right on you PC.

At the command prompt.

You can generate the java doc for whichever packages you need on demand. Hope this works for you.
 
Nitesh Panchal
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
harilal ithikkat wrote:yep...........
better option is to study well..........
Do all the programs urself from home


oh yeah?? you may be good at "mugging" up these APIs but i am certainly not good at that :d.
 
Nitesh Panchal
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Sam Mercs
 
harilal ithikkat
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sam Mercs is right

i dont know to muggin....i tried paper cuts
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!