Jump to content

Recommended Posts

Posted

Hi,

 

One of our teachers is trying to get a clock working for a web design project. I have installed java and enabled everything. All java software e.g games and so on work fine in the browser. However, when he tried to run a web page locally suddenly java shows an error and doesnt work. I have attatched a screenshot for help.

 

Ps. He used APPLET and OBJECT to test the widget and still doesnt work.

 

Thanks

 

Capture.PNG

Posted

Unless they've changed it recently applets can't access local files on client, only from host etc.

 

Else you need to do local signing and put file access in it etc.

 

But as I said, may have changed been a while since i used java :)

 

Steve

Posted
Everything is coded properly but the java disables the applet because of some permissions.. I logged on as a local machine admin and it still does not work...
Posted (edited)

Is this CIDA? (spotted from the screenshot it is now!)

 

I don't think we've got that far this year, last year though it worked fine for us with Java 6 installed, someone else on here had problems with Java 7 installed though - what version of Java are you using and could you test installing Java 6 on a machine to see if that resolves it? Will see if I can find the thread...

 

Edit: Here's the other thread, different error but I'm guessing the same/similar fault: http://www.edugeek.net/forums/web-development/128646-java-applet-error-code.html

 

A bit more googline seems to suggest you might need to look at .java.policy configuration to grant additional permissions for Java to access the files system - not looked much further then that at the moment however.

Edited by Cache
Posted
Is there any reason the clock couldn't be created with HTML, CSS and/or JavaScript? e.g.

 

No one should be using Java applets in this day and age.

 

It's specified in the CIDA Course Specification which is a pain:

 

Web authoring software automatically creates the HTML code on which each page is based. However, sometimes it is easier to edit the HTML code directly. You will learn how to make simple changes to the code, for example to change the colour of a heading or position of an image.

 

You will learn to understand and use hexadecimal colour codes/RGB values.

 

You need to learn how to insert and position simple given applets (programs written in Java) into an HTML page:

  • hit counters
  • clocks
  • calendars

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...