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