Running jave apps in web browser

Hi,
I'm (very obviously) new to java.
Longer term I'm looking to develop a distributed application using java. I recently saw a java app that ran in a clients web browser. I assumed that the browser was using java applets, it wasn't. The web page I was looking at clearly had functionality on it that was well beyond that which could be produced by an html page.
I was told by the person showing me the web page that when the user hit the URL the system would download and install "jar" files if they weren't already installed and the application would run.
The page had on it a table (datagrid) which could be sorted by clicking on any of the table headings.
Being new to java I'm unsure what this technology is, if it is not an applet, and how it works. Is anyone out there able to give me a brief high level description of what particular part of the java technology this is (does it require J2SE or J2EE).
Many thanks...

1) The "grid" is a JTable component, which is available in applets, providing the plug-in/JRE is of a more recent (1.2+) vintage.
2) Applets are not HTML - they're little Java programs, which means they can use Swing, which is a much richer UI environment than any HTML page (including DHTML). See #1
3) Applets are embedded in HTML pages, so they kinda look like they're part of the page, just like using a TABLE tag.
4) Current JRE/plug-ins cache the applet JAR files, so it's easier to start next time you run across that page.
5) Web Start is another distribution option, wherein the JRE/plug-in is used to retrieve and update "fat" (stand-alone) applications via a web site, but the browser is not required to run the application. The only time the browser is involved is on the initial download of the application.
6) J2SE downloads include Web Start.
Methinks you'd be better off studying and understanding the Java technologies better before you decide you're going to use it...

Similar Messages

  • What is needed as a minimum to run Java apps?

    Hello,
    I'm running Windows 2000 Pro on a home computer and want to conserve disk space. There seem to be a lot of duplicate files in Java directories on my system. I only want to be able to run Java apps - no development or deployment. What is the minimum installation required to just run apps?
    I currently have J2SE Runtime Environment installed.
    Thanks in advance,
    Kudzuken

    I could get all technical and fancy on you, tell you about jre's that can run on palm pilots and such, but nevermind that stuff.
    The answer is that the java 2 runtime environment is all you need
    Be careful about moving and deleting files tho
    Hello,
    I'm running Windows 2000 Pro on a home computer and
    want to conserve disk space. There seem to be a
    lot of duplicate files in Java directories on my
    system. I only want to be able to run Java apps -
    no development or deployment. What is the minimum
    installation required to just run apps?
    I currently have J2SE Runtime Environment installed.
    Thanks in advance,
    Kudzuken

  • How do i relate my java program to web browser?

    hi..
    when i visit a website with any web browser, can i let my java program download the page automatically?(and it's going to do something with the pages)
    thank you in advance

    50 lines of java can make web browser?
    i'm serious..
    how can i make a something like "cookie or history file" integrated in web browser?
    should i look at source code of browser application? or
    it can be achieved just placing my program on top of browser application?..
    one simple example could be..
    retyping a word in a html form every 1hour..
    is this impossible?
    thank you

  • How to run Java App in Jar file

    I can run Java App jar-ed into 1 jar file with java -jar App.jar
    But sometimes I need to jar only the app and bind the other classes from different place. So I tried to use:
    java -classpath c:\utils.jar -jar App2.jar
    where classes in App2.jar link to utils.jar. I just can't make it work. Any idea/help.
    thanks
    -ho

    hi HasanOen
    u need to edit the manifest file in yr JAR file u can do this by using the following cammand or by making the batch file but make sure all the files are in same folder.
    first of all u need to make a text file like below
    /////////// first file name: "THIS.txt" /////////
    Manifest-Version: 1.0
    Created-By: java // whatever here
    Main-Class: PUT YOUR MAIN CLASS NAME HERE (like MAIN)
    //////////////////// BATCH FILE "RUN.bat" //////////////
    jar cmf This.txt App2.jar MANIFEST.mf com
    com is the folder where your all the class file are.
    now double click the run.bat file. this will edit yr manifest file.
    hope this should work for u
    Note : Make sure yr jar file, txt file, bat file, and yr classes folder is in the same folder(I mean at same level)
    regards
    Satinderjit

  • Problem running javafx application in web browser

    The application runs fine when i build it in netbeans and run it. but when i try running it in a web browser, it displays a blank square!
    the following is the html page that netbeans generated:
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>tasklistinbrowser</title>
    </head>
    <body>
    <h1>tasklistinbrowser</h1>
    <script src="http://dl.javafx.com/1.3/dtfx.js"></script>
    <script>
    javafx(
    archive: "tasklistinbrowser.jar",
    width: 1000,
    height: 1000,
    code: "tasklistinbrowser.Main",
    name: "tasklistinbrowser"
    </script>
    </body>
    </html>does anyone know where i'm going wrong?

    I also have a problem when trying to run my application in a browser. (running with netbeans works)
    Only a grey shape appears.
    But it seems to be a problem with the application itself, because other applications can be run in my browser without any problems.
    any ideas? thanks

  • Running Java app when java not installed

    I need to run java apps on a server I don't control and the admin will not install java. :(
    Tried a few things to run java without installation, but get error that a java registry item can not be found. "Error opening registry key 'Software\JavaSoft\Java Runtime Environment'" Might be that without control of the registry, there's no way to run the java engine, but curious if there's a way to get it to run... I'm gonna play around with it, but figured if someone out there knows it's not possible, they could save me time by letting me know.
    Thanks!

    Depends on what you want to run. To run an applet on the computer requires that the JRE be installed, as the applet needs the Java Plug-in and Registry keys that the JRE install includes. To run a Java program from the command line needs a copy of the JRE, but it does not need to be "installed" by the Java installer. Then the command "java ... classname" needs to include the full path to the java executable that the JRE contains.
    There might be websites that allow you to run certain kinds of Java programs on the website. I don't know if they still wxist. I also doubt that they'll run applets.

  • Running a Java application from web browser

    Hi,
    I'm not sure if this is the right place to put this, and it probably isn't, but I don't really know what else to do at the moment.
    I have a problem. I've written all these nice and pretty Java applications that do all this complicated junk that makes me proud. However...I have no idea how to actually run those applications.
    I've looked at guides on Java applets, Java Web Start, Java Server Pages, etc, and I still am not sure. JSP looked like the best option, until I figured out I can't use it with my web server. So, I've pretty much hit a wall here.
    If anyone could shed some light on this, I would be very appreciative. All I want is for a certain application to run when a user clicks a button on a simple HTML page. That's all I want...yet it seems so hard.
    Is there a simple way to do this, or do I need to use JWS or something and configure all these JARs and JNLP and classpaths and everything under the sun (no pun intended)?
    Again, I apologize if there is a better forum for this; I am just very confused right now and feel like I've hit a brick wall. If anyone can give me any advice, or point me in a good (easy) direction, I would truly be grateful.

    If anyone could shed some light on this, I would be
    very appreciative. All I want is for a certain
    application to run when a user clicks a button on a
    simple HTML page. That's all I want...yet it seems so
    hard. There's a lot of hidden details that make it so hard. What computer will run the application when the button is clicked? If the application will run on the client computer (within the web browser) there has to be a mechanism for allowing arbitrary code to be downloaded, verified and executed on any number of different target platforms. This is the problem that Java Applets address. Mostly this is a security issue, since a simple HTML page being able to run arbitary code without user interaction or approval is going to cause the world to be overrun by computer virii. There's also the multi-platform issue, but in many cases that can be avoided by requiring the client to use a single platform (the MS approach).
    If the application will run on the server, then the client code is much less difficult, as only a basic web browser is needed, and the server code is complicated, since it needs to keep track of multiple clients at the same time and process data in a request-response fashion.
    From the end-user's point-of-view, it certainly is simple though. Press the button and voila!
    "Any technology which is distinguishable from magic is insufficiently advanced"
    Brian

  • Issue in running JavaFX application in web browser

    Our team currently was developing a desktop application which now needs to be run in a web browser. Deployment is successful, but while running it in IE 8, the background color of the IE outside the stage (from the desktop application) is coming in grey color. Our applucation's background color is white, hence, this makes it look odd. The more peculiar thing is when we run the url in IE8, the first page (login page) comes without the grey part, ie the whole window is white colored. But after logout, (the login page should be made visible) only the stage size comes in white and the rest of the window comes in grey background color. Please help in fixing this.

    to answer your questions:
    how to set the browser size according to stage sizeTo resize area reserved for application in a web page you can access web page from inside of your app and use javascript to get a handle of application in the web page DOM and then set size on it as you need.
    See
    http://docs.oracle.com/javafx/2.0/deployment/javafx_javascript.htm#BCEIAGHE
    and
    http://docs.oracle.com/javafx/2.0/deployment/javafx_javascript.htm#BCEIBFGD
    How to get the handle for browser size here?For embedded application you will get initial Stage in the start() sized to browser allocated area.
    And you can you tip i referenced before to resize app if browser will change allocated area (due to user requests).
    However, i think your real question is different:
    that in the login page the stage size is smaller than the browser size we set while packagingDoes it mean your app pops create login stage first and then populate main stage?
    Then good app behavior is like:
    if (runningEmbedded) { //see tip 2.3.1 in the same guide
    //fill given stage with something - e.g. same background as web page or some image
    popLoginPage();
    //once user logged populate main stage
    populateMainStage();
    And create all assets for all stages in the init(). So in start you will only adding panels to the stages and creating new stages.
    You may need to erase "dummy" content from the main stage before you populate it.
    Hope this helps. If not, please explain what you app is doing in more details. What do you do with stage provided in start, how you create login and other stages.
    What you size your application to and what are stage dimensions.

  • Error running J2EE App on Web AS 6.40

    Hi all experts,
    I'm triying to implement JSPWiki on Web As 6.40 SP17, I've followed the instructions this blog /people/pankaj.kumar32/blog/2005/09/10/wiki-wiki-world-and-portals
    This is what a did:
    1.- Downlowded the latest version of JSPWiki from http://jspwiki.org
    2.- Extracted the JSPWiki.war
    3.- Used deploytool to create a JSPWiki.ear and deployed on server
    4.- Started the appplication
    5.- Called url http://localhost:50000/JSPWiki/Install.jsp as suggested on jspwiki readme.txt
    6.- The first 2 pages were displayed without problen.
    But when I try to run the app the server drop this message:
    Details: javax.servlet.jsp.JspException: Tag failed, check logs: null
         at com.ecyrd.jspwiki.tags.WikiTagBase.doStartTag(WikiTagBase.java:90)
         at jsp_PageActions1169070742968._jspService(jsp_PageActions1169070742968.java:78)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:537)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:290)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.include(RequestDispatcherImpl.java:440)
         at com.sap.engine.services.servlets_jsp.server.jsp.PageContextImpl.include(PageContextImpl.java:138)
         at com.ecyrd.jspwiki.tags.IncludeTag.doEndTag(IncludeTag.java:83)
         at jsp_Header1169070740546._jspx_method_wiki_Include_1(jsp_Header1169070740546.java:65535)
         at jsp_Header1169070740546._jspService(jsp_Header1169070740546.java:13)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:537)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:290)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.include(RequestDispatcherImpl.java:440)
         at com.sap.engine.services.servlets_jsp.server.jsp.PageContextImpl.include(PageContextImpl.java:138)
         at com.ecyrd.jspwiki.tags.IncludeTag.doEndTag(IncludeTag.java:83)
         at jsp_ViewTemplate1169070738265._jspx_method_wiki_Include_1(jsp_ViewTemplate1169070738265.java:65535)
         at jsp_ViewTemplate1169070738265._jspService(jsp_ViewTemplate1169070738265.java:22)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:537)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:290)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.include(RequestDispatcherImpl.java:440)
         at com.sap.engine.services.servlets_jsp.server.jsp.PageContextImpl.include(PageContextImpl.java:138)
         at com.ecyrd.jspwiki.tags.IncludeTag.doEndTag(IncludeTag.java:83)
         at jsp_LoginForm1169070737203._jspService(jsp_LoginForm1169070737203.java:41)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:537)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:290)
         at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.include(RequestDispatcherImpl.java:440)
         at com.sap.engine.services.servlets_jsp.server.jsp.PageContextImpl.include(PageContextImpl.java:178)
         at jsp_Login1169070735953._jspService(jsp_Login1169070735953.java:130)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:537)
         at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:117)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:62)
         at com.ecyrd.jspwiki.ui.WikiServletFilter.doFilter(WikiServletFilter.java:99)
         at com.ecyrd.jspwiki.ui.WikiJSPFilter.doFilter(WikiJSPFilter.java:71)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:58)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:374)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:265)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:345)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:323)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:865)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:240)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
         at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    The wierd thing is that the two latest versionsof wiki gives me the same error, please if you have any clue that could help me I'll really appreciate it.
    Thanks in advance,
    RR.-

    Hi,
    Make sure that the directory C:\Program Files\sapinst_instdir\NW04SR1\WEBAS_ABAP_ORA_UC\DB exists and that it is accessible under the user you are logged in as.
    Also check the freespace available on the drive c:\
    Regards,
    Siddhesh

  • How to override runtime parameters of Java programs in web browser windows?

    Hi Oracle forumers,
    There's a Java based program that is accessed through a web browser. The program somehow sets its own runtime parameters. However, those parameters don't always work well for running the program on every computer. Is there a way to override the runtime parameters that the program would normally set with my own parameters? I was expecting the Java Control Panel applet to be the place to set my own runtime parameters but the last time I checked that didn't work with this program.

    Sangeetha Kalyani,
    Use SWF de-compiler.. and get the source of your SWF.. i think this will simplyfy your JOB...!
    Thanks,
    Pradeep

  • Java app with web service and servlets

    Hi. I intend to make a java application which exposes some methods as a web service and as jsp/servlets. It's core functionality is not really web centric, but its more a java app with a web tier. I am not sure about how the architecture of such a system would look like using the java platform. I currently see three options:
    1. Run everything in a servlet container like tomcat. I hesitate to do this because i would be putting a lot of functionality which isn't about the web into a servlet container. Also, I have a lot of application scope data that is maintained and shared by all servlets/web services. However, it would be really easy just to put everything into tomcat and use ServletContext to maintain some global objects.
    2. Use a Java EE to seperate application/business logic and data access into session beans and entity beans. I hesitate to this because it seem a bit overkill because the system isn't very big or complex right now. It also means that I would have to learn to use EJB's instead of just using some POJOs.
    3. Run the web tier in a servlet container and the main app in a separate JVM, and then connect the tier by sending serialized objects over TCP sockets. I don't like writing network code but at least there is some separation of the tiers.
    What would you do? Maybe I have overlooked a much better solution to the problem?
    Let me just say that the system is the product of a student project spanning one semester, so it's important to choose the RIGHT solution (architectural-wise) instead of the something quick and dirty that is hard to defend.

    jschell wrote:
    Run everything in a servlet container like tomcatTomcat is a JEE container.Now I am confused. Maybe you mean Glassfish? Tomcat is definitely a web container(?).
    Let me just say that the system is the product of a student project spanning one semester, so it's important to choose the RIGHT solution (architectural-wise) That pretty much makes it impossible then.
    1. A "Right" solution is generally only proven by time.
    2. It requires a great deal of knowledge about the business domain.Yeah, you are right. Let be try to rephrase it. What solution (pattern) would be considered the most common or appropriate when you have a Java App and want to expose a few methods as a website and web service?
    I hesitate to do this because i would be putting a lot of functionality which isn't about the web into a servlet container. Also, I have a lot of application scope data that is maintained and shared by all servlets/web servicesHuh? Do you already have an exposed web service? If you already have a server which other clients communicate then where does this functionality that you don't want to be tomcat running now? Or where do you think that you want to run it? And if you are or do run it somewhere else then tomcat could access it the same way any other client accesses that server.Sorry, that sentence was written badly. I don't have anything right now. What I meant to write was that I will have a lot of application scope data, objects that are kept in memory as long as the server is running, shared by multiple servlet instances.

  • Loading jfx app into web browser with preloader (improving load time)

    hi,
    has anyone made any attempt to construct kind of application preloader, waiting for whole app to load can take long time and default spinning wheel with java cup is not really user friendly.
    I was thinking about breaking app in two parts
    1)login view
    2)rest of the app that will be loaded lazily
    but then how to load second jar, what about updates of that second jar. Is there any way to talk to javascript in browser to show something nicer then default applet's preloadder.????
    maybe there is a better idea on how to improve loading time of jfx app embedded in web browser, my experience is based on 1.1 version of jfx so now it can be better.
    apart from jfx component im planing to use spring ioc and jdbc driver. so it should show something as quick as possible (confirm certificate and show login view) and then (or in the meantime) load rest of the stuff.
    any thoughts appreciated
    thanks

    Have you read the last post of (the prolific ;-) ) Rakesh Menon ;-)
    http://blogs.sun.com/rakeshmenonp/entry/javafx_lazy_loading
    May be it could help you.
    Regards
    Richard

  • How to Run a form in Web browser?!

    Hi,
    1- Is it possible to run a .fmx file in web browser? if yes how to do so?
    if no. what do I need to do to make it possible?
    Many thanks

    Forms 6i and above yes it is possible.
    Forms 6i can be deployed both web and client/server, but 9i and above is only for web deployment.
    If you want to deploy for testing purposes you can run the forms from the forms builder using OC4J Instance, but for production deployment you need to have OAS, Oracle Application Server.
    Tony

  • N73 wont install jad apps via web browser

    hi
    after updating to 4.0727.2.2.1 my n73 wont install any jad apps on the web browser (it will install sis apps fine)after i click on the file to install it loads then asks me were to install it then it trys to connect to install it and then it says disconnected. Can anyone help me to fix this problem? ive already tried a soft reset.

    maybe it needs jar-files cause jad is only some "useless" text.
    V21.0.025 » 04-09-2007 » RM-356 5800 XpressMusic » Language pack 01

  • Run Java App as a Windows Service

    Hi,
    Is there an easy way (without 3rd party software) to run a Java app as a service in windows?
    Sorry if this isn't the right forum to post to...
    Any help would be greatly appreciated!
    Thanks in advance!

    Nope there isn't. And there also isn't a reason not to use 3rd party software as there is an excellent open source API to do this job: Java Service Wrapper.

Maybe you are looking for