Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » batch compiler within applet
batch compiler within applet [message #239830] Wed, 17 January 2007 07:48 Go to next message
Eclipse UserFriend
Originally posted by: michael.bierkandt.ipoint-systems.de

Hi All.

I am trying to use the batch compiler within a signed applet. With JRE 1.4
this works fine, but not with Java 1.5.

In the class CompilationUnitScope, top level packages (such as java.lang)
can not be retrieved. (My assumption is, that this is some kind of
security issue raised by running my code as an applet.)

1) Is there a way to use the batch compiler within an applet?
2) Could somebody explain me the exact reason, why it works as an
standalone application but not within an applet?

Thanks for your help!
Mike
Re: batch compiler within applet [message #239842 is a reply to message #239830] Wed, 17 January 2007 13:08 Go to previous messageGo to next message
Eclipse UserFriend
Michael Bierkandt a écrit :
> 1) Is there a way to use the batch compiler within an applet?
> 2) Could somebody explain me the exact reason, why it works as an
> standalone application but not within an applet?
Could be because you try to access the file system. This is forbidden
for an applet.
--
Olivier
Re: batch compiler within applet [message #239866 is a reply to message #239842] Thu, 18 January 2007 02:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: michael.bierkandt.ipoint-systems.de

Olivier Thomann wrote:
> Could be because you try to access the file system. This is forbidden
> for an applet.

Thanks for the idea!

I added a test to my applet and created a file - that works fine. I think
because I sign my applet, it is allowed to write files as long as the user
trust the applet.

Thus I guess this is not the reason.

Mike
Re: batch compiler within applet [message #239882 is a reply to message #239866] Thu, 18 January 2007 13:11 Go to previous messageGo to next message
Eclipse UserFriend
Michael Bierkandt a écrit :
> I added a test to my applet and created a file - that works fine. I
> think because I sign my applet, it is allowed to write files as long as
> the user trust the applet.
> Thus I guess this is not the reason.
Can you give us a reproducable test case?
It would be easier to find out what is going on if we can reproduce the
failure.
--
Olivier
Re: batch compiler within applet [message #239890 is a reply to message #239882] Fri, 19 January 2007 02:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: michael.bierkandt.ipoint-systems.de

Olivier Thomann wrote:
> Can you give us a reproducable test case?
> It would be easier to find out what is going on if we can reproduce the
> failure.
> --
> Olivier

Thanks again for your help.

I will set up a test case and then let you know.
(I want to apologize in advance, because it might take till Monday)

Mike
Re: batch compiler within applet [message #239977 is a reply to message #239890] Mon, 22 January 2007 03:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: michael.bierkandt.ipoint-systems.de

Unfortunately I could not compile a test case yet and have to focus on
another task for a while.

So far I found out, that a normal call to
"org.eclipse.jdt.internal.compiler.batch.Main.compile" works fine within
an applet, thus it seems that our direct usage of
org.eclipse.jdt.internal.compiler causes the error.

Thanks again for all the help!

Mike
Re: batch compiler within applet [message #240509 is a reply to message #239977] Wed, 07 February 2007 09:45 Go to previous message
Eclipse UserFriend
Originally posted by: michael.bierkandt.ipoint-systems.de

It turned out, that this was not a problem of the batch compiler.

One of the JasperReports classes that I used, caused the error.

Thanks again,

Mike

> Hi All.

> I am trying to use the batch compiler within a signed applet. With JRE 1.4
> this works fine, but not with Java 1.5.

> In the class CompilationUnitScope, top level packages (such as java.lang)
can
> not be retrieved. (My assumption is, that this is some kind of security issue
> raised by running my code as an applet.)

> 1) Is there a way to use the batch compiler within an applet?
> 2) Could somebody explain me the exact reason, why it works as an standalone
> application but not within an applet?
>
> Thanks for your help!
> Mike
Previous Topic:read only files
Next Topic:How to activate emacs keybindings in dialogs
Goto Forum:
  


Current Time: Thu Jul 17 19:32:18 EDT 2025

Powered by FUDForum. Page generated in 0.06178 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top