=== fr3dd [~fr3dd@cpe-024-168-231-049.sc.res.rr.com] has joined #ubuntu-java === rtcm [~jman@217.129.142.72] has joined #ubuntu-java === nouser [~nouser@200.23.53.1] has joined #ubuntu-java === doko [~doko___@dsl-084-059-069-224.arcor-ip.net] has joined #ubuntu-java === wasabi_ [~wasabi@207.55.180.100] has joined #ubuntu-java [05:04] I've managed to put the packaged eclipse in breezy to run but I'm getting some crashes... it's to be expected right? [05:04] Well, it shouldn't be. What crashes? [05:04] I'm running it with java-gcj-compat [05:05] importing some source code [05:05] while it's compiling [05:10] what type of crash is it, a total VM crash? [05:11] Or an unhandled exception? [05:11] vm crash [05:11] Might want to file a bug. ;0 [05:11] i'm running it again [05:13] being universe the correct place is malone right? [05:13] Eh. No clue. ;) === flikker [~flikker@cpc1-swin4-4-0-cust242.brhm.cable.ntl.com] has joined #ubuntu-java [07:54] hello [08:03] Hello. [08:06] having an applet problem [08:06] when i run it [08:06] it displays this [08:06] java.security.AccessControlException [08:07] indeed my code is creating a file [08:07] but at the moment i am only testing my applet how do i go about this [08:10] wasabi [08:10] ? [08:15] sorry back [08:16] What VM are you using for this? [08:16] np did you read [08:16] ? [08:16] i am on windows [08:16] Ah you are in #ubuntu-java because? [08:16] sorry [08:16] i figure [08:16] I'm just not sure how it relates. ;) [08:16] I don't mind helping.. you're probably doing something the SM refuses. [08:17] well i did not think it was related to the os i was using [08:17] It's probalby not, but this channel is about Ubuntu Java development. [08:17] o is see [08:17] Ubuntu being a Linux distribution, trying to integrate Free JVMs [08:17] You are probably doing something the security manager dislikes. [08:18] i know ubuntu not because i am using win that i dont use linux have used ubuntu by the way [08:18] yes writing a sound file [08:18] any idea [08:18] An applet cannot usually read or write local files. [08:18] Without being signed and given full access. [08:18] Applets run in a sandbox. [08:19] where do i set this premissions [08:19] You don't. [08:19] in the webbrowser or the vm [08:19] Whatever controls the VM. [08:19] And you cannot just set the permissions. [08:19] hu? [08:20] example i was doing this in linux and ran this applet as root [08:20] http://ntrg.cs.tcd.ie/undergrad/4ba2.96/group2/applets.html [08:20] would i be able [08:20] no. [08:20] There are security considerations with running code from the internet. [08:20] then where or better what is causing me not to write a file on myone harddrive [08:21] The VM is causing that. [08:21] It is designed to. [08:21] You are not supposed to do that. [08:21] now there is something you should understand [08:21] http://forum.java.sun.com/thread.jspa?threadID=637043&tstart=0 [08:21] i am trying to write serverside [08:22] Applet's are not server side. [08:22] in that case [08:22] http://www.unix.org.ua/orelly/java-ent/jnut/ch05_04.htm [08:24] wasabi now the worse case is that i did not write this code myself [08:24] i am using it as an example to learn [08:24] http://www.developer.com/java/other/article.php/2105421 [08:25] You'd be better not writing your audio to a file. [08:25] An Applet is not supposed to be able to access the local system. It's really much better to be transiant. [08:25] It can be done, but it introduces a whole host of issues. [08:27] under which conditions [08:28] I don't understand. [08:28] well if i see a tut on the net telling me that i can do it [08:28] You don't. [08:28] explaining how [08:28] You see a tut saying you can do it FOR A LOCAL APPLICATION [08:28] Not for an Applet. [08:28] fair enough [08:29] wasabi did you say this is impossible with an applet writing to the system [08:29] No. [08:29] I said it opens a whole host of issues. [08:29] An applet can be granted full permission. [08:30] ok under which conditions [08:30] To do so the applet must be signed by a certificate recognized as trusted by the local system. [08:30] http://java.sun.com/security/signExample/ [08:30] ok i have seen that, in this case you need to creat a certificate in the vm right? [08:31] You need to create a certificate. You need to sign your applet's .jar files with that certificate, and then install the public key of the certificate to every client machine. [08:33] thanks for the explanation that is all for now [08:34] No problem. Try Ubuntu. ;) [08:52] have been that it is to croudy === jbailey [~jbailey@CPE00501836c657-CM014260028338.cpe.net.cable.rogers.com] has joined #ubuntu-java === rtcm [~jman@217.129.142.72] has joined #ubuntu-java