/srv/irclogs.ubuntu.com/2005/06/27/#ubuntu-java.txt

=== 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
rtcmI'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
rtcmI'm running it with java-gcj-compat05:04
rtcmimporting some source code05:05
rtcmwhile it's compiling05:05
wasabi_what type of crash is it, a total VM crash?05:10
wasabi_Or an unhandled exception?05:11
rtcmvm crash05:11
wasabi_Might want to file a bug. ;005:11
rtcmi'm running it again05:11
rtcmbeing 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
flikkerhello07:54
wasabi_Hello.08:03
flikkerhaving an applet problem08:06
flikkerwhen i run it 08:06
flikkerit displays this08:06
flikkerjava.security.AccessControlException08:06
flikkerindeed my code is creating a file08:07
flikkerbut at the moment i am only testing my applet how do i go about this08:07
flikkerwasabi08:10
flikker?08:10
wasabi_sorry back08:15
wasabi_What VM are you using for this?08:16
flikkernp did you read08:16
flikker?08:16
flikkeri am on windows08:16
wasabi_Ah you are in #ubuntu-java because?08:16
flikkersorry08:16
flikkeri figure08: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
flikkerwell i did not think it was related to the os i was using08:17
wasabi_It's probalby not, but this channel is about Ubuntu Java development.08:17
flikkero is see08:17
wasabi_Ubuntu being a Linux distribution, trying to integrate Free JVMs08:17
wasabi_You are probably doing something the security manager dislikes.08:17
flikkeri know ubuntu not because i am using win that i dont use linux have used ubuntu by the way08:18
flikkeryes writing a sound file08:18
flikkerany idea08: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
flikkerwhere do i set this premissions08:19
wasabi_You don't.08:19
flikkerin the webbrowser or the vm08:19
wasabi_Whatever controls the VM.08:19
wasabi_And you cannot just set the permissions.08:19
flikkerhu?08:19
flikkerexample i was doing this in linux and ran this applet as root08:20
wasabi_http://ntrg.cs.tcd.ie/undergrad/4ba2.96/group2/applets.html08:20
flikkerwould i be able08:20
wasabi_no.08:20
wasabi_There are security considerations with running code from the internet.08:20
flikkerthen where or better what is causing me not to write a file on myone harddrive08: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
flikkernow there is something you should understand08:21
wasabi_http://forum.java.sun.com/thread.jspa?threadID=637043&tstart=008:21
flikkeri am trying to write serverside08:21
wasabi_Applet's are not server side.08:22
flikkerin that case08:22
wasabi_http://www.unix.org.ua/orelly/java-ent/jnut/ch05_04.htm08:22
flikkerwasabi now the worse case is that i did not write this code myself08:24
flikkeri am using it as an example to learn08:24
flikkerhttp://www.developer.com/java/other/article.php/210542108: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
flikkerunder which conditions08:27
wasabi_I don't understand.08:28
flikkerwell if i see a tut on the net telling me that i can do it08:28
wasabi_You don't.08:28
flikkerexplaining how08:28
wasabi_You see a tut saying you can do it FOR A LOCAL APPLICATION08:28
wasabi_Not for an Applet.08:28
flikkerfair enough08:28
flikkerwasabi did you say this is impossible with an applet writing to the system08: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
flikkerok under which conditions08: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
flikkerok 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
flikkerthanks for the explanation that is all for now08:33
wasabi_No problem. Try Ubuntu. ;)08:34
flikkerhave been that it is to croudy08: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!