简体   繁体   中英

How to retrieve the source code from a jnlp file

I have downloaded a few jnlp files from the oracle tutorials in swing available on their website which they give as examples. While they run run but is there also any way that I can retrieve the source code from them? It would really help me to understand their examples better.

Thanx in advance!!

Given a .jnlp file from The Java Tutorials , focus on two Java Web Start attributes:

codebase="http://docs.oracle.com/javase/tutorialJWS/uiswing/components/ex6"
main-class="components.ColorChooserDemo"

And search for the main-class name on the codebase site, for example

http://www.google.com/#q=site:oracle.com+ColorChooserDemo

Voilà, first hit !

Bonus feature: most example sections have the HTML name , eg .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM