This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Applets and the fly likes Web Browser with JRE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Web Browser with JRE" Watch "Web Browser with JRE" New topic
Author

Web Browser with JRE

Thilak Raj Surendra Babu
Greenhorn

Joined: Jul 06, 2007
Posts: 11
Hi Guys,
Is there any web brwoser which has inbult JRE,so that i could use the the JRE in the browser for launching applets,instead of using the java-plugin.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41052
    
  43
For all practical purposes: No.

What's wrong with using the Plugin?


Ping & DNS - my free Android networking tools app
Thilak Raj Surendra Babu
Greenhorn

Joined: Jul 06, 2007
Posts: 11
Hi,
I would like to have a web browser on a portable device like USB and have the JRE in that,allowing me to carry the browser along with JRE.So that leave me JRE independant of the host machine.Hope I am Clear...

Thanks & Reagrds
Thilak Raj S
Shoumin Li
Ranch Hand

Joined: Jul 06, 2007
Posts: 85
I think there is no any web brwoser which has inbuilt JRE
But you can installed a JRE to FIREFOX.
Then copy to USB device,I think it can work.


Java Blog
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41052
    
  43
Originally posted by Shoumin Li:
I think there is no any web brwoser which has inbuilt JRE
But you can installed a JRE to FIREFOX. Then copy to USB device,I think it can work.


No. The JRE is part of the operating system, not the browser. Copying the browser (which includes only part of the plugin, other parts are installed in the OS) onto a USB stick will not work.
Thilak Raj Surendra Babu
Greenhorn

Joined: Jul 06, 2007
Posts: 11
Thanks for the reply guyz..the normal applet tag is translated either to object(i.e) or embed tag(firefox).they have a refference to clsid-->which point to the java plugin installled on the system..why cant we override that functionality to point to a jre that we want....Pls correct me if i am wrong..
I would also like to know how the Browser communicates with JRE when it comes accross an applet tag...Pls help me.

Thanks
Thilak Raj S
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41052
    
  43
Thilak, you're missing the point. The JRE is part of the operating system, not the browser. You can indeed use "clsid" to point to one of any number of JREs, but they all need to be installed in the OS.
Thilak Raj Surendra Babu
Greenhorn

Joined: Jul 06, 2007
Posts: 11
Thanks Ulf,Can't we not use the JRE thats not installed on the operating system.Like directing the web browser to use JRE thats on the USB instead of one thats installled on the operating system.I beleieve the JRE and the plugin makes some registry entries and the browser uses these entries to start the correspoding JVM.Can we override that...pls correct me if iam wrong...
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41052
    
  43
I don't know how else to put this - there will be no JVM/JRE on the USB stick. A JRE is installed into the OS, so unless you have a full OS install on that USB stick -and are booting off of it- this is not possible.
Thilak Raj Surendra Babu
Greenhorn

Joined: Jul 06, 2007
Posts: 11
I don't know how else to put this - there will be no JVM/JRE on the USB stick. A JRE is installed into the OS, so unless you have a full OS install on that USB stick -and are booting off of it- this is not possible.

Ulf,
For JRE to run we need not have that to be installed on the OS.Like if i copy JRE onto a USB and take it to another machine without any instance of JRE,i am able to start an application using java - jar.There is no need for me to install JRE onto the OS that i am using.(JRE doesn't have the need to be installed on the OS)but the Plugin alone needs to installed on the OS for the browser to determine JRE that has to be used.this is done with the help of Registry settings on windows.

What i wanted to do is get to know how the brwoser uses the Plugin to start the corresponding JRE.What i would like to do is changing the web browser to handle applet tags like instead of looking through the registry settings for determining the JRE to be launched..i would like to re-direct it to the JRE on the USB or the one I desire.Hope you understand...

Thanks
Thilak Raj S
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41052
    
  43
You're right, I phrased that badly. It's not the JRE that gets installed into the OS, but the Plugin specifically. But since that's what you're trying to run, it amounts to the same result.
Thilak Raj Surendra Babu
Greenhorn

Joined: Jul 06, 2007
Posts: 11
Hi Ulf,
Basically browser takes JRE to be used from Registry.I would like to know if there open source browsers that do not look into the registry for getting the JRE to be used.Or is there a possiblity to change the that behaviour of the browser.or does that beahaviour show some signinficant importance in the way the browser should behave in the context of an applet.

Thanks
Thilak Raj S
Thilak Raj Surendra Babu
Greenhorn

Joined: Jul 06, 2007
Posts: 11
Originally posted by Thilak Raj Surendra Babu:
Hi Ulf,
Basically browser takes JRE to be used from Registry.I would like to know if there open source browsers that do not look into the registry for getting the JRE to be used.Or is there a possiblity to change the that behaviour of the browser.or does that beahaviour show some signinficant importance in the way the browser should behave in the context of an applet.

Thanks
Thilak Raj S


Hi,
After a year i found out this is possible with the help of API Hooks.We can hook the api calls to registry and fake the iexplorer to use the JRE on the USB than one tat is installed on tat machine.This works even when there is no JRE installed on tat machine.Also works in non-admin.

Thanks
Thilak Raj S
Palash Nandi
Ranch Hand

Joined: Jul 09, 2009
Posts: 34
Thilak Raj Surendra Babu wrote:
Hi,
After a year i found out this is possible with the help of API Hooks.We can hook the api calls to registry and fake the iexplorer to use the JRE on the USB than one tat is installed on tat machine.This works even when there is no JRE installed on tat machine.Also works in non-admin.

Thanks
Thilak Raj S


You really came back after a year to share your findings, Thats was very nice of you Thilak. But can you elaborate a bit more into how you hooked the api calls to registry. Since you have done it. Can you post a sample code ?


A TubeBulb May light slowely... But it lights the Brightest..
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

Palash Nandi wrote:Can you post a sample code ?


First, we are NotACodeMill.

Then, if you look at Thilak's posting history you'll see that he hasn't visited here since 05 June 2008.

Finally, any solution that uses API hooks is not a Java solution and the details are off topic for this forum.

I wouldn't hold your breath waiting for that code.


luck, db
There are no new questions, but there may be new answers.
Palash Nandi
Ranch Hand

Joined: Jul 09, 2009
Posts: 34
Darryl Burke wrote:I wouldn't hold your breath waiting for that code.


:P. okies.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Web Browser with JRE
 
Similar Threads
A question about loading jdbc drivers
what to do to get Brower compatible with Swing Components
jre when accessing java war application
Hour 17:Creating Interactive Web Programs - Java in 24 hours
Auto install JRE to run applet.