How to retrieve the source code from a jnlp file

时间:2022-07-05 16:19:35

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.

我已经从他们网站上提供的oracle教程中下载了一些jnlp文件作为示例。虽然它们运行但是还有什么办法可以从中检索源代码吗?这将真正帮助我更好地理解他们的例子。

Thanx in advance!!

Thanx提前!!

1 个解决方案

#1


5  

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

给定The Java Tutorials中的.jnlp文件,重点关注两个Java Web Start属性:

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!

Voilà,第一次打!

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

奖励功能:大多数示例部分都有HTML名称,例如。

#1


5  

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

给定The Java Tutorials中的.jnlp文件,重点关注两个Java Web Start属性:

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!

Voilà,第一次打!

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

奖励功能:大多数示例部分都有HTML名称,例如。