How to Embed Java Programs on Your Blog

Do you have a Java tutorials blog?

Do you want to let your users read and run the programs from your site?

Then you can embed Codiva project with 3 easy steps.

  1. Create the code you want to embed in Codiva. Make sure it compiles and runs correctly.
  2. Click ‘Share’ button to make this program readable to public.
  3. Copy the HTML code printed, and insert the HTML on your page.

The embedded post will look like this.

For example, this project will look like this when embedded.

class HelloWorld {
  public static void main(String[] args) {
    System.out.println("Hello Codiva");


Increase your engagement metrics

Once you embed the runnable code in your blog, your users will be able to run the programs from your website itself.

This will improve your site engagement metrics.