grummbunger
Technical User
I have compiled a package, the bingo example package, it has a game, player, and shared as its parts. in its codebase i have placed an html file to lanch the player from. the player does launch with the java bingo.player.Player command, but I wish to launch it with my web browser useing the applet tag. I discovered the need to edit my policy files, to allow the client to read a file stored in my user.home directory, and have also adjusted the policy to allow similar reflection to the java.home directory. (was haveing access denied user.home read problem)
I have also set my browser to run all both signed and unsigned applets so that I know that it is not restricting my applet from running.
I launch my server and have my code in a bingo directory in the root of my serveraddress.
inside that bingo directory is the bingo dir containing the packages, and the htm code to accsess the bingo.player.Player applet.
the applet does not launch, and the console gives the following responce:
java.lang.ClassCastException
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
I am not sure but I am currenty thinking that it is generated by the fact that the player class is trying to access the shared classes and that the policy file is still needing more tweaking.
the code runs fine with cammand line java command, but not in appletviewer or browser.
would really be thankfull for some advice ?
I have also set my browser to run all both signed and unsigned applets so that I know that it is not restricting my applet from running.
I launch my server and have my code in a bingo directory in the root of my serveraddress.
inside that bingo directory is the bingo dir containing the packages, and the htm code to accsess the bingo.player.Player applet.
the applet does not launch, and the console gives the following responce:
java.lang.ClassCastException
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
I am not sure but I am currenty thinking that it is generated by the fact that the player class is trying to access the shared classes and that the policy file is still needing more tweaking.
the code runs fine with cammand line java command, but not in appletviewer or browser.
would really be thankfull for some advice ?