# Exported sketch is completely blocked from running

**URL:** https://discourse.processing.org/t/exported-sketch-is-completely-blocked-from-running/13204
**Category:** Processing
**Created:** [August 6, 2019, 12:13am UTC](https://discourse.processing.org/t/exported-sketch-is-completely-blocked-from-running/13204 "2019-08-06T00:13:25Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![n055](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/n055/32/5466_2.png) [@n055](https://discourse.processing.org/u/n055)
#### Post date: [August 6, 2019, 12:13am UTC](https://discourse.processing.org/t/exported-sketch-is-completely-blocked-from-running/13204/1 "2019-08-06T00:13:26Z")

</div>

Hey y’all  
I’ve got an app that I’m writing with the intention of sending it to other people to use.  
When I export the program to run from a .exe (with JRE etc), when I send it to people for testing, and when I test it on another one of my computers, I initially get a warning saying windows defender has blocked it from running. However, once I allow it, the app completely doesn’t run. I’m talking no background processes, no hidden windows, nothing ☹

 ![IMG_20190805_184335](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/4/4013996ae0e3dba58068f94bbe762a5df9f144c5.jpeg)

Needless to say, this is a major roadblock in development. And while I consider myself adequately tech-savvy, I cannot for the life of me figure out how to fix this.

Just so it’s clear:  
The correct Java version is installed  
I’ve disabled antivirus  
It is running on the correct OS  
Running app as admin

code is here if you’d like to take a look: [https://github.com/nossonCotlar/Plaque](https://github.com/nossonCotlar/Plaque)

Any direction or suggestions are greatly appreciated

---

<div class="post-metadata">

### Author: ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)
#### Post date: [August 6, 2019, 1:49am UTC](https://discourse.processing.org/t/exported-sketch-is-completely-blocked-from-running/13204/2 "2019-08-06T01:49:57Z")

</div>

> [@n055](#):
>
> Just so it’s clear:

far from that.

- correct JAVA installed?  
i run processing ( what comes with JAVA )  
on WIN10 without any add installed JAVA  
so as you mention that i worry.  
what you do have to do is to enable export incl. JAVA  
and that you can also check by looking into the sub-dir  
/YOUR\_APP/application.windows64/JAVA/  
( so as i not see that in your picture i think you exported wrong JAVA option missing )

- disabled antivirus might be a good test,  
but error looks more like windows defender  
so did you check on that?

- assume you use WIN 10,  
but i am very new to that and far from calling it “correct OS”

possibly you mean you exported to windows  
and try to start the windows 64bit ( sub-directory ) app?

- run as admin  
on Linux it would mean like you used “sudo” to start a app  
( allowing all privileges ) what did you do/enable?  
or you just want to say that you are admin but did not get a other window what asks  
if you want allow to run that app?

- you give a link to your code, thanks, but first i do a  
test with a known sketch

- 
  - open examples/basic/images/loadDisplayImage

- 
  - save as ( under my working dir )

- 
  - export (options:) Windows JAVA

- 
  - select 64bit app and double click  
and my WIN 10 just run it. ( no questions asked )

 ![win10_export_processing1](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/7/7086e77e1c6d9c4b56fb954b9e20917e9d6d1dcd.png)  
 ![win10_export_processing2](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/3/3683901a1b69619fd38db8fb96abfa71d7c4da56.jpeg)

* * *

but prior to testing with your code, a other question?  
not only your wording is "unclear? also you not check what we can see in your picture.  
but for me it does not look like the export directory!  
did you copy the “wrong/JAVA missing” export to a ?USB? drive?  
and try to start from there? ( running apps from USB is disabled? )

ok, just tested:  
copy the 64.bit dir to a USB2 stick and run the app ( again no questions asked / strange )

 ![win10_export_processing3](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/6/67afb3c139e5b52f55a7c301de69fb43c6a05e82.jpeg)

* * *

so you ignore all you have tried and

- run processing 3.5.3
- select and " save as " a working example
- export using windows and JAVA option
- run the app

only that way we are sure that your environment is working

---

<div class="post-metadata">

### Author: ![n055](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/n055/32/5466_2.png) [@n055](https://discourse.processing.org/u/n055)
#### Post date: [August 6, 2019, 2:05am UTC](https://discourse.processing.org/t/exported-sketch-is-completely-blocked-from-running/13204/3 "2019-08-06T02:05:31Z")

</div>

> [@kll](#):
>
> far from that.

I apologize, what I meant was that I would address some possible things people might suggest, and get into details if needed. I guess that’s happening now 🙂

> [@kll](#):
>
> correct JAVA installed?  
> i run processing ( what comes with JAVA )  
> on WIN10 without any add installed JAVA  
> so as you mention that i worry.  
> what you do have to do is to enable export incl. JAVA  
> and that you can also check by looking into the sub-dir  
> /YOUR\_APP/application.windows64/JAVA/  
> ( so as i not see that in your picture i think you exported wrong JAVA option missing )

I have had the correct java version installed. I guess it was unclear from my post, but the exported program DOES run properly on my main computer, and on the computer of my friend, who I’ve sent the program to. It does not work, however, on a secondary computer of mine, and on my partner’s computer.

> [@kll](#):
>
> disabled antivirus might be a good test,  
> but error looks more like windows defender  
> so did you check on that?

yes, I had disabled Windows Defender and same result.

> [@kll](#):
>
> assume you use WIN 10,  
> but i am very new to that and far from calling it “correct OS”

We’re splitting hair at this point, but this is correct, both the computer used for exporting the program, and the computers running it, are all Windows 10 64 bit. This option was selected at the time of exportation as well.

> [@kll](#):
>
> run as admin  
> on Linux it would mean like you used “sudo” to start a app  
> ( allowing all privileges ) what did you do/enable?  
> or you just want to say that you are admin but did not get a other window what asks  
> if you want allow to run that app?

Since it’s a windows program, it means I right clicked on the program and selected “run as administrator”

> [@kll](#):
>
> not only your wording is "unclear? also you not check what we can see in your picture.  
> but for me it does not look like the export directory!

I’ve simply moved all the program files to another file. This works fine and always has. The name of the parent directory does not affect the program’s functionality.

I appreciate your time and help on this man, and while your wording sounds somewhat accusing, I know your’e trying to help so thank you \<3

---

<div class="post-metadata">

### Author: ![n055](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/n055/32/5466_2.png) [@n055](https://discourse.processing.org/u/n055)
#### Post date: [August 6, 2019, 2:07am UTC](https://discourse.processing.org/t/exported-sketch-is-completely-blocked-from-running/13204/4 "2019-08-06T02:07:00Z")

</div>

Something to note, my program makes calls to websites that are not secured(http instead of https). Could this be causing issues? Again, the issues are NOT consistent between computers, which is making this a real pain in the rear.

---

<div class="post-metadata">

### Author: ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)
#### Post date: [August 6, 2019, 2:18am UTC](https://discourse.processing.org/t/exported-sketch-is-completely-blocked-from-running/13204/5 "2019-08-06T02:18:16Z")

</div>

> [@n055](#):
>
> it means I right clicked on the program and selected “run as administrator”

ups, ok, now i understand, and why you do that?  
as here it was not needed and i would never recommend that,  
even my best friend write that code.

* * *

> [@n055](#):
>
> We’re splitting hair at this point

> [@n055](#):
>
> while your wording sounds somewhat accusing

sorry, might sound like that, but it is just missing some  
“exactness” in your error description.

* * *

> [@n055](#):
>
> Again, the issues are NOT consistent between computer

hm, so you need to find out what is the difference in that computers.

anyhow looks like you not want to go with my tip  
to use the JAVA export option  
and test it there? ( i know the thing is then 190MB big )  
i think it is the default way just to run it on any system  
( so it does not matter IF or WHAT VERSION of JAVA is installed on the PC  
as i mention already here i just use processing IDE )

* * *

> [@n055](#):
>
> my program makes calls to websites that are not secured(http instead of https). Could this be causing issues?

so , do you require me to try to test it with your code here?

---

<div class="post-metadata">

### Author: ![n055](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/n055/32/5466_2.png) [@n055](https://discourse.processing.org/u/n055)
#### Post date: [August 6, 2019, 2:24am UTC](https://discourse.processing.org/t/exported-sketch-is-completely-blocked-from-running/13204/6 "2019-08-06T02:24:26Z")

</div>

> [@kll](#):
>
> and why you do that?  
> as here it was not needed

Just trying everything that might make a difference, I’m not quite sure what I was expecting lol

> [@kll](#):
>
> sorry, might sound like that, but it is just missing some  
> “exactness” in your error description.

All good man I understand \<3

> [@kll](#):
>
> anyhow looks like you not want to go with my tip  
> to use the JAVA export option

I will try that next 🙂

> [@kll](#):
>
> so , do you require me to try to test it with your code here?

You don’t need to, it’ll probably be a pain lol, but if you have some time to waste it could help me. Up to you brother.

---

<div class="post-metadata">

### Author: ![n055](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/n055/32/5466_2.png) [@n055](https://discourse.processing.org/u/n055)
#### Post date: [August 6, 2019, 2:48am UTC](https://discourse.processing.org/t/exported-sketch-is-completely-blocked-from-running/13204/7 "2019-08-06T02:48:33Z")

</div>

Just tried with embedding Java, and it seems to be working now 😄 sorry for wasting your time lol, your suggestion worked like a charm 👌 thanks!

---

<div class="post-metadata">

### Author: ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)
#### Post date: [August 6, 2019, 2:53am UTC](https://discourse.processing.org/t/exported-sketch-is-completely-blocked-from-running/13204/8 "2019-08-06T02:53:13Z")

</div>

ok, some feedback  
-1- i download the ZIP  
unzip to my processing work dir

-2- i needed to rename the path from  
/Plague-master/  
to  
/Plaque/

-3- i needed to install a lib

```auto
[HTTP Requests for Processing](https://github.com/runemadsen/HTTP-Requests-for-Processing) 0.1.4
[Rune Madsen](http://www.runemadsen.com), [Daniel Shiffman](http://shiffman.net)

HTTP Requests for Processing is a small library that takes the pain out of doing HTTP requests in Processing.

```

-4- it runs under WIN10 / processing 3.5.3  
but show a error

```auto
/resources/parsha/Devarim/3.txt
The file "/resources/parsha/Devarim/3.txt" is missing or inaccessible, make sure the URL is valid or that the file has been added to your sketch and is readable.

```

> on github you usually have a  
> main read-me where you give that kind of information  
> how to use your code…

-5- are that private family photos you use there?  
! not recommended

-6- when i export and start the exported 64 app  
i get a grey FULL screen, no pictures…  
how to stop that? ok via task manager possible to stop the JAVA app. phuu…  
( i stop the test here and delete all )

i can not recommend full screen apps, if a user want choose full-screen a window he can do later.  
so yes there seems to be a problem code related? sorry, no idea

---

<div class="post-metadata">

### Author: ![n055](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/n055/32/5466_2.png) [@n055](https://discourse.processing.org/u/n055)
#### Post date: [August 6, 2019, 4:39am UTC](https://discourse.processing.org/t/exported-sketch-is-completely-blocked-from-running/13204/9 "2019-08-06T04:39:58Z")

</div>

> [@kll](#):
>
> -2- i needed to rename the path from  
> /Plague-master/  
> to  
> /Plaque/

Right, the github branch name messed with processing IDE because it’s looking for the name of the main pde file.

> [@kll](#):
>
> -3- i needed to install a lib

That’s expected, I use http requests, not sure how to add the library to the source code itself but I’m sure it’s possible.

> [@kll](#):
>
> -4- it runs under WIN10 / processing 3.5.3  
> but show a error

This isn’t a bug, its just that the program references files that I havent finished putting into the program yet. I’ll add those as I go (they change every day)

> [@kll](#):
>
> -5- are that private family photos you use there?  
> ! not recommended

yeah I know lol, I should change that for privacy but for now I’m not too concerned. I’ll take them out in future commits

> [@kll](#):
>
> -6- when i export and start the exported 64 app  
> i get a grey FULL screen, no pictures…  
> how to stop that? ok via task manager possible to stop the JAVA app. phuu…  
> ( i stop the test here and delete all )

This is because when Processing exports the program, it doesnt include some necessary files and folder. To get it to work, you need to copy and paste the folder /resources/, as well as the files config.json and auth.json into the exported folder.  
You can exit any Processing applet by pressing “Esc” on your keyboard 🙂 no need to go into task manager

---

<div class="post-metadata">

### Author: ![n055](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/n055/32/5466_2.png) [@n055](https://discourse.processing.org/u/n055)
#### Post date: [August 6, 2019, 4:43am UTC](https://discourse.processing.org/t/exported-sketch-is-completely-blocked-from-running/13204/10 "2019-08-06T04:43:14Z")

</div>

> [@kll](#):
>
> on github you usually have a  
> main read-me where you give that kind of information  
> how to use your code…

In the completed program (exported for users) I include a get started guide 🙂

> **[ShulScreen - Get Started Guide](https://docs.google.com/document/d/1zZ7AIAUGRq5BKKAbaTzegbDjego-UUvnOYK8dLrOTCU/edit?usp=sharing)**
>
> This Doc is private
