Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using java to create a web browser

Tags:

java

Is it possible to use Java to build a web browser like Internet Explorer that will open all the web pages and display all the contents?

like image 442
prasad Avatar asked Jun 17 '10 19:06

prasad


People also ask

Which edition of Java is used for developing web application?

J2EE(Java Platform, Enterprise Edition) J2EE uses HTML, CSS, JavaScript etc., so as to create web pages and web services. It's also one of the most widely accepted web development standard. There are also many languages like .

Can you make a Web browser in Java?

Yes, it's possible to use Java to build a web browser.

Can I develop my own browser?

While there are many Internet browsers such as Internet Explorer, Firefox, Google Chrome and Microsoft Edge that can be downloaded and installed on your computer for free, creating web browsers yourself gives you more control over how you want to browse the Internet.


1 Answers

Yes, it's possible, and here's what you would need to start looking at.

First, search for an HTML renderer in Java. An example would be JWebEngine. You can start by manually downloading HTML pages and verifying that you can view them.

Second, you need to handle the networking piece. Read a tutorial on sockets, or use an HTTP Client such as the Apache HTTPClient project.

Edit: Just to add one more thought, you should be honest with yourself about why you would work on this project. If it's to rebuild IE, FF, that is unrealistic. However, what you might get out of it is learning what the major issues are with browser development, and that may be worthwhile.

like image 152
James Kingsbery Avatar answered Oct 10 '22 14:10

James Kingsbery