Article View: borland.public.jbuilder.java.language
Article #7174Re: import a class
From: John McGrath TeamB
Date: Mon, 09 Jul 2001 03:25
Date: Mon, 09 Jul 2001 03:25
30 lines
2081 bytes
2081 bytes
On Sun, 8 Jul 2001 22:50:09 -0400, Randy wrote:
> actually i was wanting to use class from one site on another;
> i thought that java was portable.
Well, you were right about that, but your problem has nothing at
all to do with portability. The byte codes in the class files
are the same, and the Java ClassLoader could certainly load a
class from another host, if it was willing to
In addition to being portable, Java also has built-in security
mechanisms. The security manager determines what code is allowed
to do, and the default security manager in place for applets is
very restrictive. If it were not, then someone could place an
applet in a web page that would delete files from your hard drive,
which would certainly be unwelcome.
There are ways to allow an applet to do pretty much anything that
an application can do. For more information, you should look into
signing your applet. If you have any questions on signing, I would
recommend that you post in the "applet-issues" newsgroup.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<MPG.15b2ee3b4ddffcfe98a33c@forums.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!128.230.129.106!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnewsReferences:
<3b460124$1_1@dnews> <3b4604fb_1@dnews> <3b4658e3_1@dnews> <3b470f0a_2@dnews> <3b491cd3$1_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,c40013919388a5b2 X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-07-08 20:31:22 PST From: John McGrath [TeamB] <ng-b@JPMcGrath.net> Newsgroups: borland.public.jbuilder.java.language Subject: Re: import a class Date: Sun, 8 Jul 2001 23:25:39 -0400 Message-ID: <MPG.15b2ee3b4ddffcfe98a33c@forums.borland.com> References: <3b460124$1_1@dnews> <3b4604fb_1@dnews> <3b4658e3_1@dnews> <3b470f0a_2@dnews> <3b491cd3$1_1@dnews> X-Newsreader: MicroPlanet Gravity v2.30 NNTP-Posting-Host: 209.92.40.60 X-Trace: dnews 994649138 209.92.40.60 (8 Jul 2001 20:25:38 -0700) Lines: 30 X-Authenticated-User: jpmcgrath Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!128.230.129.106!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews