• 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 Embedded my Jnlp in browser

 
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 64
Netbeans IDE Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
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
Is this a Swing app? Java Swing apps don't run in the browser.
 
Jacob Anawalt
Ranch Hand
Posts: 64
Netbeans IDE Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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://coderanch.com/how-to/java/AppletsFaq#application
 
reply
    Bookmark Topic Watch Topic
  • New Topic