Java not allowing anything from any website.

  For some reason whenever I try to use an applet from anywhere Java blocks it. I have googled ( <- is this a verb now?) and put sites in exception lists and it works in some cases, but not in certain sites that I want. For example: When uploading my game to gamejolt.com and running it I get an error stating that it cannot run because the application is using resources from multiple domains. To combat this, I end up having to put each individual link into the exception list. It is really getting tedious to do this, and  I was wondering if there was a way to just turn off Java security settings entirely.   :cranky: ???

ALSO, IS THIS THE RIGHT SECTION TO PUT THIS QUESTION IN?

Unfortunetly java client side applets have been completely neutered in later versions of Java 7 and Java 8. The short answer is no you cannot :frowning:

Funny, I came up against this exact problem last night. Try as I might I couldn’t get any applets to work despite fiddling with security settings and exception lists and all sorts. I should suppose this is likely to be the experience for most people these days, and that’s probably a good thing. RIP.

Cas :slight_smile:

Right; sadly, applets are dead. If you can, try deploying as html5/javascript instead: libGDX exports to them directly.

If you want to stick with Java, then you should probably either deploy as a runnable jar or a packaged executable.

You can try to purchase a certificate and sign your jar, but even that has its own usability problems.

Think about it this way: if you’re having this much trouble getting it to work, just think about how much trouble potential players will have!

RIP Applets: 1995-2013
“They were what gave Java it’s initial programmers”

I agree with KevinWorkman except about runnable JARs as they can be opened by the default archiver instead of running the game, I advise you to look at what I wrote here if you still want to use Java but not with applets.

You can also use something like JWrapper to create platform-specific packaged executables: http://www.jwrapper.com/

which isn’t fully free of charge and proprietary :s

I would rather use NSIS and Launch4J.

Eh, it’s free enough, as long as you don’t mind a little splash screen. I personally prefer to deploy as jars, but I like JWrapper.

I’ve never heard of NSIS, but I thought Launch4J only exported Windows executables? JWrapper exports executables for Windows, Mac, and Linux.

I’m not a JWrapper fanboy or anything, so use whatever you want, just figured I’d give OP some other options to investigate.

JWrapper isn’t viable on the long term as you don’t have access to its source code. It’s just a black box.

LibGDX PackR (open source, hosted on Github) has a native launcher for Windows, Mac and GNU Linux. My own solution (initially based on PackR) allows to create native application bundles for GNU Linux and Mac (Windows later) with Ant, without any platform dependent library ;D I don’t see the interest of JWrapper over PackR. I’m very proud of my stuff because it is very pleasant for the end user, (s)he just has to download the bundle and double-click once on it.

I prefer open-source options as well (which is why I wrote JarMatey), but I don’t think it’s fair to say that JWrapper is doomed simply because it’s not open-source.

And the appeal to it is mostly its ease of use. It has a decent GUI that walks you through the process. Sure, I could use packr from the command-line, but it’s a little hard to get novices to do the same, which is where things like JWrapper come in handy.