• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to get help in java?from command line

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 !
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can download the JavaDoc and install it locally.
 
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
use javap

for example



 
harilal ithikkat
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
yep...........
better option is to study well..........
Do all the programs urself from home
 
Ranch Hand
Posts: 608
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks Sam Mercs
 
harilal ithikkat
Ranch Hand
Posts: 221
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sam Mercs is right

i dont know to muggin....i tried paper cuts
reply
    Bookmark Topic Watch Topic
  • New Topic