aspose file tools*
The moose likes JNLP and Web Start and the fly likes How To Embedded my Jnlp in browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "How To Embedded my Jnlp in browser" Watch "How To Embedded my Jnlp in browser" New topic
Author

How To Embedded my Jnlp in browser

Miguel Enriquez
Ranch Hand

Joined: Mar 13, 2004
Posts: 87
Hi friends easy question, i run my Jnlp file following these steps"

http://transvar.org/6112/WebStartAppInstruction.pdf

run fine, the JNLP but OUT the browser?

how to run ebedded in Internet Explorer?


thanks
Jacob Anawalt
Ranch Hand

Joined: Oct 27, 2010
Posts: 32

What exactly are you looking to embed?

The Java program as an Applet?

The JNLP file so that you don't have a separate "launch.jnlp" file to download to kick off your Java Network Launch Protocol invoked Java program?


Jacob
Miguel Enriquez
Ranch Hand

Joined: Mar 13, 2004
Posts: 87
thanks for answer...

the program isnt a applet....


i create a win32 Gui program:
2 jframes, 1 call to other...

then converted to JAVA WEB START (following these steps: http://transvar.org/6112/WebStartAppInstruction.pdf)

the files, in dist directory was copied to c:\xamp\htdocs\miguel\jnlp1

06/07/2013 12:42 p. m. 13,568 jeeMyFrame.jar
06/07/2013 12:42 p. m. 609 launch.html
06/07/2013 01:03 p. m. 640 launch.jnlp

i can access: http://localhost/miguel/jnlp1/launch.html

show me a button: LAUNCH

clicked on it and show me a scree: Java 7 ....
and then show me the app but out from Internet Explorer. i want run the app into Internet explorer, embedded....


Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60077
    
  65

Is this a Swing app? Java Swing apps don't run in the browser.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Jacob Anawalt
Ranch Hand

Joined: Oct 27, 2010
Posts: 32

To embed a Java program within a browser, you subclass java.applet.Applet and you either use the applet element or the deployJava JavaScript object.

http://docs.oracle.com/javase/tutorial/deployment/applet/index.html

To embed the JNLP into the web page, you Base64 encode the JNLP file's contents and paste that string into the jnlp_embedded parameter passed to the deployJava JavaScript object.

http://docs.oracle.com/javase/tutorial/deployment/deploymentInDepth/embeddingJNLPFileInWebPage.html

I did read your Web Start App Instructions document. If you wrote an app as they show in it, then you are writing a Java JFC/Swing based GUI with a top level frame titled "GUI Test". It is not sub-classing applet, so it must be expected that it does not embed within your web browser.

If your program is written in pure Java, it is not a win32 GUI program. It is an AWT, SWT, or JFC/Swing based Java GUI pprogram. Java calls Win32 code for you when the program is run on MS Windows. If you are working through the Bioinformatics Programming II course that PDF is part of, I can understand that you are being hit with a lot of terms that can be easy to confuse with one another. The answer you need does depend on how your program is written though, so the difference between Win32 and Swing is important.
Miguel Enriquez
Ranch Hand

Joined: Mar 13, 2004
Posts: 87
yes is a Swing App, then need first convert my Swing App to Applet?

How To?


(not remeber the site but i think i can run a swing app into a web browser) bure really your are the experts!!! definetively
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 9993
    
    7

Miguel Enriquez wrote:yes is a Swing App, then need first convert my Swing App to Applet?
How To?

Take a look at https://www.coderanch.com/how-to/java/AppletsFaq#application


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How To Embedded my Jnlp in browser
 
Similar Threads
auto open jnlp file on IE5 without open/save prompt
how does the web start work???
To the Author!!
Not accessing or saving data in browser in a Web Start application
how to get web start working