CPCWiki forum

General Category => Games => Topic started by: Devilmarkus on 19:08, 14 February 14

Title: Important info about the latest Java update and my CPC games website
Post by: Devilmarkus on 19:08, 14 February 14
The latest Java update is special.
By default it blocks now any applet, until you change some settings in your system control panel.

(http://cpc.devilmarkus.de/images/newspost_images/java_en1.png)

To enable applets like JavaCPC Applet, please change these settings:

Open the Java Control panel.

Jump to "Security" settings.

Change the slider from "High" to "Medium".

(http://cpc.devilmarkus.de/images/newspost_images/java_en2.png)

Now click "Edit Site List".

(http://cpc.devilmarkus.de/images/newspost_images/java_en3.png)

Here click "Add" and enter "http://cpc.devilmarkus.de" (http://cpc.devilmarkus.de"); (Without the quotes)
Then just click "Ok" in all dialogues.

That's it!

Enjoy my CPC games ;)
Title: Re: Important info about the latest Java update and my CPC games website
Post by: Gryzor on 19:53, 14 February 14
F*****ck and I was wondering why the hell I couldn't use the applets on some sites! Thanks!!!
Title: Re: Important info about the latest Java update and my CPC games website
Post by: redbox on 22:42, 14 February 14
Is this the solution to Java being the massive security black hole it's become recently?

I'd rather they just made it safe :(
Title: Re: Important info about the latest Java update and my CPC games website
Post by: Devilmarkus on 22:47, 14 February 14
But why just Java?
Javascript, Flash, Silverlight, all these components have security risks...
Title: Re: Important info about the latest Java update and my CPC games website
Post by: mr_lou on 09:34, 15 February 14
Quote from: redbox on 22:42, 14 February 14
Is this the solution to Java being the massive security black hole it's become recently?

I'd rather they just made it safe :(

Um.... that's what they did.
Safe = annoying to use. It's always been like that for any platform.

It is Java 7 update 51 that includes this security. But it is "only" unsigned and self-signed stuff that gets blocked.
If you sign your stuff with a certificate from e.g. Thawte or Verisign, then it'll run.

The problem of course is that these certificates cost about $299.... a year!
Obviously no sparetime hobby developer will pay this. (JavaME developers has always had this problem).

And so, Java has now become the last choice for many sparetime developers aiming for the web.
Sad.

As I've said before, Javascript will rule the world.
It's a matter of time. Sit back and watch.
Title: Re: Important info about the latest Java update and my CPC games website
Post by: mr_lou on 09:51, 15 February 14
Quote from: Devilmarkus on 22:47, 14 February 14
But why just Java?
Javascript, Flash, Silverlight, all these components have security risks...

Silverlight was stillborn.
Flash is dead.
Javascript remains.

Take a look at Android. Google chose to not make life miserable for developers. No need to sign your app with an expensive certificate. Instead, the user must actively accept that the app accesses a bunch of things at install time.
Very nice for everyone - except no one reads or understands what it is each app wants access to. So just like any EULA, users just accepts whatever.
Next thing you know, articles pops up about virus on Android, and Android being unsafe, blah blah blah blah.

Personally I find the security model with JavaME better. Here, the user accepts nothing at install time. Instead, everytime the (unsigned) app wants to access a certain something, then the user must accept. Makes it much more easy to understand.

But the whole "must buy expensive certificate to be able to do whatever you want" just doesn't make any sense to me.
Scammers makes plenty of money on their criminal actions. They have plenty of money to buy such an expensive certificate. Providing a fake identity for the certificate is no problem for those people.

So the safest model, as I see it, is the unsigned JavaME stuff. Annoying, but safe.

The security model introduced in Java 7 update 51 is crap. It'll partly kill Java, and partly just have everyone else add a bunch of URLs to the exception.sites list - resulting in Java still being "unsafe" - and that'll kill Java even more.

Android is alive and well, because it's easy accessible.


How should the whole security model be in your opinion? Do you have the solution?  :)   (asking anyone here)
Title: Re: Important info about the latest Java update and my CPC games website
Post by: Carnivius on 16:33, 15 February 14
Thanks Devilmarkus.  I was wondering what the hell was going on and why I couldn't play the games anymore.   A ridiculous situation from the Java peoples that makes it difficult for non-techy people like me to access harmless site features such as your online CPC emulation.
Title: Re: Important info about the latest Java update and my CPC games website
Post by: MaV on 18:20, 20 February 14
Quote from: mr_lou on 09:51, 15 February 14
Silverlight was stillborn.
Flash is dead.
Javascript remains.
Microsoft and Adobe both offer proprietary software, one was first (Flash), the other one is late and has no chance. Adobe learns the hard way (as all companies do) that security is costly. In the end it will lose because it will not commit itself to fixing all the bugs (or rewrite the software ... or indeed open it to the community).

JavaScript is used in many browsers and updated continuously. All of the browser developers have interest in keeping it safe. (here's the winner).


QuoteBut the whole "must buy expensive certificate to be able to do whatever you want" just doesn't make any sense to me.
Scammers makes plenty of money on their criminal actions. They have plenty of money to buy such an expensive certificate. Providing a fake identity for the certificate is no problem for those people.
Google are the most userfriendly with Android. Problem: The list of libraries to which you have to grant access is very general, and you ultimately have to trust the app not to spy on your personal data. Since you expressly have to allow it, Google is no longer responsible.

The JavaME model has its flaw exactly in that you have to accept access. The typical user will soon be annoyed by granting access to things he doesn't completely understand and just clicks to accept, and a few will always deny access and then blame the program for not working properly.

Ultimately having a trusted third party still is the best solution. The question is whom you can trust?

As to the certificates: Think like a corporation here, and it will start to make sense. 300$ is peanuts for a company to guarantee access, and the responsibility then lies with the certificate authority. The company that uses Java can excuse themselves and point fingers at Oracle, saying they fucked up.
The certificate authority OTOH trusts only companies or persons that can be made liable for damages done due to problems with their software. So in the end, the app developer or software company *will* be held liable (and has to pay for it).


QuoteSo the safest model, as I see it, is the unsigned JavaME stuff. Annoying, but safe.
But you still don't know what the app does with whatever it has gained access to.

QuoteThe security model introduced in Java 7 update 51 is crap. It'll partly kill Java, and partly just have everyone else add a bunch of URLs to the exception.sites list - resulting in Java still being "unsafe" - and that'll kill Java even more.
Java won't go away, just because Oracle decided to piss off a few hobby developers who have problems now with applet certificates. It is much too wide spread in the corporate world and there's no competitor language for business application anywhere close in acceptance that will succeed it. And once anything is established in the corporate world, it is there to last. I know companies that still use COBOL and PL/1 and systems programmed in OS/360 assembly in the 70s (i.e. banks, assurance companies, government et al.).

From that point of view, Oracle did the best they could do, because they are abominable in fixing bugs in Java. The time it takes them to fix some of their serious bugs is counted in months.


BTW, it's no secret to some here, but for the protocol: I hate Java.
Title: Re: Important info about the latest Java update and my CPC games website
Post by: Carnivius on 18:26, 20 February 14
Quote from: MaV on 18:20, 20 February 14

JavaScript is used in many browsers and updated continuously. All of the browser developers have interest in keeping it safe. (here's the winner).


Though many people purposely disable it in their browsers for various reasons. I'm not one of them so don't ask me why. :P
Title: Re: Important info about the latest Java update and my CPC games website
Post by: MaV on 21:41, 20 February 14
True. Because it still can pose problems, and you can switch it off as a conscious decision. Then again, I was talking about the corporate world where the standard is to allow it (otherwise a lot of web applications would not run.)
Title: Re: Important info about the latest Java update and my CPC games website
Post by: cpc4eva on 04:21, 21 February 14
i did all those recommended changes to the security settings and the java cpc loads fine but still cannot use joystick when i tick the map joystick box ???
Title: Re: Important info about the latest Java update and my CPC games website
Post by: Devilmarkus on 10:29, 21 February 14
The "Map joystick" box just changes the joystick input to Q,A,O,P and SPACE.

You cannot use a real joystick in the web-applet.

Sorry.
Title: Re: Important info about the latest Java update and my CPC games website
Post by: Executioner on 06:23, 27 February 14
Quote from: MaV on 18:20, 20 February 14
As to the certificates: Think like a corporation here, and it will start to make sense. 300$ is peanuts for a company to guarantee access, and the responsibility then lies with the certificate authority. The company that uses Java can excuse themselves and point fingers at Oracle, saying they fucked up.
The certificate authority OTOH trusts only companies or persons that can be made liable for damages done due to problems with their software. So in the end, the app developer or software company *will* be held liable (and has to pay for it).

I've had to pay for a Java code signing certificate for my business, and believe me, it's not the money that's the issue, it's the way the certificate authority in question validates that a company or person is real in Australia (apparently having a phone number listed with the Yellow Pages means you're for real, yet an ASIC ACN means fuck all)... But then, I did use some backyarders called Comodo who are based in Manchester and barely understand English, but a hell of a lot cheaper than Verisign.

QuoteBut you still don't know what the app does with whatever it has gained access to.

I'm not sure most people care, they're more interested in whether they trust the company who wrote it.

QuoteJava won't go away, just because Oracle decided to piss off a few hobby developers who have problems now with applet certificates. It is much too wide spread in the corporate world and there's no competitor language for business application anywhere close in acceptance that will succeed it. And once anything is established in the corporate world, it is there to last. I know companies that still use COBOL and PL/1 and systems programmed in OS/360 assembly in the 70s (i.e. banks, assurance companies, government et al.).

It's most likely the anal retentive corporate world, especially the banks that insisted they put it there so their employees can't download malicious Java applets and webstart apps.

QuoteBTW, it's no secret to some here, but for the protocol: I hate Java.

I love Z80 assembly language :) but I also really like Java, except for some of the C-style bits.
Title: Re: Important info about the latest Java update and my CPC games website
Post by: mr_lou on 07:45, 27 February 14
Quote from: MaV on 18:20, 20 February 14Java won't go away, just because Oracle decided to piss off a few hobby developers who have problems now with applet certificates.

I didn't say it would go away. I said it would partly kill Java.
In time though, it will result it Java being gone.
Because, this security model will make Java less popular. Fewer developers will go with Java when choosing their platform. Simple logic.
When fewer developers choose Java, it will be a question of time before it gets replaced.
The platform is officially dead when only very few still use it. J2ME has been considered dead for years now - despite that a whole 45% of active phones (stats from the WhatsApp sale) are running it.

Quote from: Executioner on 06:23, 27 February 14
I've had to pay for a Java code signing certificate for my business, and believe me, it's not the money that's the issue, it's the way the certificate authority in question validates that a company or person is real in Australia (apparently having a phone number listed with the Yellow Pages means you're for real, yet an ASIC ACN means fuck all)... But then, I did use some backyarders called Comodo who are based in Manchester and barely understand English, but a hell of a lot cheaper than Verisign.

The money is an issue for newbie indie developers.
I don't know what kind of "security check" Thawte or Verisign does - but I'm sure someone who makes a living from scamming people can fool them.
The JavaME developers has no choice. They have to go with either Verisign or Thawte if they want their stuff to run everywhere.

Nokia woke up too late sadly. Finally they decided to offer signing of apps for developers. Brilliant, but partly way way too late, and partly not that helpful anyway because they had too many requirements themselves.

Oracle should offer somewhat the same thing. Make a "Java Applet Store", and offer to sign applets for developers. That won't happen of course.


As I've said before: Javascript will rule the world. Client-side, server-side. Even compiling into native executables. Just wait.
Title: Re: Important info about the latest Java update and my CPC games website
Post by: Sykobee (Briggsy) on 12:26, 27 February 14
I don't think I would be wrong in stating that 95% of Java development, possibly 99%, is never seen by a consumer, it's all back end stuff.


And that's why Java will never die.  It may never be a hip language/platform ever again, it may die for applets and end-user games, but it's been mostly dead there for a long time (Minecraft aside) anyway.


It's annoying when you know Java well, and want to do something in a browser or standalone executable, and you now need a code-signing certificate.  But Javascript in the browser now has good performance.  You may be best off refactoring the Java codebase to something that can make use of a Java to asm.js compiler (once these mature).
Title: Re: Important info about the latest Java update and my CPC games website
Post by: mr_lou on 19:04, 27 February 14
Quote from: Sykobee (Briggsy) on 12:26, 27 February 14
I don't think I would be wrong in stating that 95% of Java development, possibly 99%, is never seen by a consumer, it's all back end stuff.

Well, consumers see a lot of BD-J (Blu-Ray Java) every time they watch a Blu-Ray movie.
I'm looking forward to experimenting with that myself. Check out this demo: Funky Fresh - BLURAY BD-J Demo - YouTube (https://www.youtube.com/watch?v=M_E9VaXywG0)

Hey Marcus, how about porting your CPC emulator to Blu-Ray?  :)
Title: Re: Important info about the latest Java update and my CPC games website
Post by: Executioner on 21:32, 27 February 14
Quote from: mr_lou on 07:45, 27 February 14
As I've said before: Javascript will rule the world. Client-side, server-side. Even compiling into native executables. Just wait.

It's unlikely that a lot of bigger corporations would allow their developers to replace a strongly typed, very structured language with Javascript. Personally, I like Javascript but wouldn't dream of writing an entire application using it.
Title: Re: Important info about the latest Java update and my CPC games website
Post by: Phi2x on 22:31, 27 February 14
.
Title: Re: Important info about the latest Java update and my CPC games website
Post by: Executioner on 23:16, 27 February 14
Quote from: phi2x on 22:31, 27 February 14
And if what you want is strong typing, there's also some clever stuff from Microsoft here: Welcome to TypeScript (http://www.typescriptlang.org/)

Seriously? Clever and Microsoft in the same sentence?
Title: Re: Important info about the latest Java update and my CPC games website
Post by: Phi2x on 23:27, 27 February 14
.
Title: Re: Important info about the latest Java update and my CPC games website
Post by: andycadley on 10:13, 02 March 14
Quote from: mr_lou on 07:45, 27 February 14
Oracle should offer somewhat the same thing. Make a "Java Applet Store", and offer to sign applets for developers. That won't happen of course.
Unlikely. All the browser makers have roadmaps that include the end of support for binary plugins, which will mean the end of applet support. Oracle themselves would rather Java became a server side only technology too. Flash is the only plugin that really has much traction left and that's why the likes of Google and Microsoft have just baked it in to their latest browsers, so it no longer has to count as a plugin.
Title: Re: Important info about the latest Java update and my CPC games website
Post by: mr_lou on 11:02, 02 March 14
Quote from: andycadley on 10:13, 02 March 14All the browser makers have roadmaps that include the end of support for binary plugins, which will mean the end of applet support.

Wouldn't surprise me.
But I hope it'll stay the same way Flash has.

Quote from: andycadley on 10:13, 02 March 14Oracle themselves would rather Java became a server side only technology too.

I doubt they'll drop their Java Embedded devices.
Title: Re: Important info about the latest Java update and my CPC games website
Post by: Puresox on 19:06, 02 March 14
I cannot get this alteration to work ? I have Win8 , I get to the Java security, move the slider to medium, then when I select edit site list .Where it asks to add sites, the box comes up to type in any site it has a Red Exclamation  mark to the left of it , I am unable to paste in a site , I can type in a site but as soon as I press enter it  does nothing? Any advice on what else I may need to do?
Title: Re: Important info about the latest Java update and my CPC games website
Post by: Puresox on 19:16, 02 March 14
Don't worry , it seems it is not necessary to go through the Add process .
Title: Re: Important info about the latest Java update and my CPC games website
Post by: Executioner on 23:06, 02 March 14
When security is set to medium you don't need exclusions. These are only used on the higher settings.
Title: Re: Important info about the latest Java update and my CPC games website
Post by: Xyphoe on 04:10, 05 March 14
Oh blimey. Thank you for that Markus, you just by chance with me skim reading the forum solved a problem I was having - couldn't get a virtual console to launch from an iDRAC that uses Java for this getting Java Application Errors with not much indication in the additional details that this was a 'trust and security thing'. If only I came and saw this 2 hours earlier I wouldn't have wasted all that time getting bloody ipmi sorted.

Anyways...

People are saying they need to pay hundreds of dollars for an SSL certificate - is there any reason for purchasing such expensive certs when you can get cheaper ones out there? Does it need to be at a certain bit level of encryption? eg my company sells SSLs for £40 a year

(Also I recommend Globalsign for SSLs over Comodo, Thwarte, etc)
Title: Re: Important info about the latest Java update and my CPC games website
Post by: Devilmarkus on 10:11, 05 March 14
The applets on http://cpc.devilmarkus.de (http://cpc.devilmarkus.de) are digitally signed now.
Thanks to Executioner :)
So they should work without problems... ;)
Title: Re: Important info about the latest Java update and my CPC games website
Post by: Gryzor on 12:13, 05 March 14
Executioner is giving autographs?


(bad pun...)
Title: Re: Important info about the latest Java update and my CPC games website
Post by: Devilmarkus on 12:46, 05 March 14
Quote from: Gryzor on 12:13, 05 March 14
Executioner is giving autographs?


(bad pun...)

Yeah, didn't you know that? ;)
When you are cute and cool, he will send you also a handsigned copy of WinApe (Zipped of course)

Well, being serious now:
To make applets work without many troubles regarding security warnings, etc... you need a certificate.
Xyphoe already mentioned it.
Such a cert. is way too expensive for me as private coder...
But JavaCPC Applet and JavaGX4000 (the 2 emulators I use on my website) are certified by BitWise Systems now ;)
Powered by SMFPacks Menu Editor Mod