# Export of an Java Sketch fails!

**URL:** <https://discourse.processing.org/t/export-of-an-java-sketch-fails/221>\
**Category:** Coding Questions\
**Created:** [May 21, 2018, 6:46pm UTC](https://discourse.processing.org/t/export-of-an-java-sketch-fails/221 "2018-05-21T18:46:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Kevin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kevin/32/2297_2.png) [@Kevin](https://discourse.processing.org/u/Kevin)\
**Post date:** [May 21, 2018, 6:50pm UTC](https://discourse.processing.org/t/export-of-an-java-sketch-fails/221/2 "2018-05-21T18:50:04Z")

</div>

See the discussion here:

> [@Displaying code on website](https://discourse.processing.org/t/displaying-code-on-website/208):
>
> Hi, Newbie question… Once you have some code you are happy with is it possible to add it to an HTML page? One site I use is coded in HTML and PHP?

Basically, you can’t embed a Java application in a website. You either have to use Processing.js or P5.js. This also means you can’t use Java-specific libraries.

You could export your sketch as an application and then allow users to download the application, but you can’t embed it directly in a webpage without using Processing.js or P5.js.

---

_[View the full topic](https://discourse.processing.org/t/export-of-an-java-sketch-fails/221)._
