• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How To Embedded my Jnlp in browser

 
Miguel Enriquez
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 64
Linux Netbeans IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Miguel Enriquez
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65229
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this a Swing app? Java Swing apps don't run in the browser.
 
Jacob Anawalt
Ranch Hand
Posts: 64
Linux Netbeans IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11196
15
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic