I am in the process of the creating my first applet . I have run into a problem though. I can run the applet through eclipse and the applet viewer pops up, says applet loaded, and my program starts(this was initially an application i have been transferring to applet). When it loads from eclipse, it connects, selects, inserts, and deletes to the database perfectly. However, and this could definitely be from me doing something incredibly basic wrong, when i run it through a html file i made with a reference to appletName.class, the browser window pops up, and nothing else.
I did however right click on the java icon and pulled up this error from the log:
Exception: java.security.AccessControlException: access denied (java.util.PropertyPermission file.encoding read)
Now obviously that isnt the whole error log, but it seemed like it was the most important. It appears to me, that it has something to do with my MySql database connecting. I did look up some information online, and many suggest to update my .policy file. Now, i don't know if this is a good idea or not, but i really have no clue what it means in the first place.
Any help with this would be really helpful, and i would truly appreciate it.
Also, i have hopes of running this off a a server for the place i work at, in order to allow everyone to have access through the browser by typing in something like- ip:port:file.
Thanks again, if anyone is willing to help and would like some more information ( i didnt really know what was all- too important, and all-not, as im not familiar with applets) i will do so asap.
No, i just typed in the error message..and i got results. Well, i got peoples suggestions, but i couldnt find what it really meant. that above link is very informative, but i hadnt realized this process was so complicated
Ok, so i am still having some trouble with this and was hoping for a bit more direction(sorry).
Now, when i run my applet through google chrome, i get a bar at the top that says it needs my permission to run, i allow it, but nothing happens. I opened up the console again to see the same error message, ill post the whole thing now:
If anyone has any suggestions i would greatly appreciate it. I am not sure if my certificates are working right. I followed the links above, but there were some situations where it got a little hairy, and i wasnt sure of what the tutorial wanted me to do. I also was looking up how to have a policy file allow for all permissions but i don't want to play with something i am unsure of.
Sorry to keep adding to this thread.. but im still having one heck of a time with this.
So, ill start from the beginning:
4) Doesnt work
Browsers on other machines dont even prompt for certificate authentication...they just error out in the console again(same error as before)
So, im really not so sure what is wrong with this anymore. From what ive read online, if i self-sign my applet... dont i have to import that certificate onto everyones machine who will be running this?
Is there a good way to do what i want to do other than with an applet(maybe throwing it on an application server?)
Again, i apologize i am pretty new to applets... but i would love to see this work.
Any suggestions(or pointers at what i am probably doing wrong) would be great! thank you!