473,397 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

le path d'un applet

Bonjour,

j'aimerais savoir si l'un d'entre vous pourrais me dire comment je
peut faire pour avoir le path (l'adresse logique sur internet) du
fichier .class d'un applet java pendant son exécution.

merci
Jul 17 '05 #1
3 2378
Bonjour - et votre pardon. Je ne parle pas bien le francais. Mais, c'est
le "codebase" que vous le voulez, non?

Peter

"Francis" <fo*************@globetrotter.net> wrote in message
news:c2**************************@posting.google.c om...
Bonjour,

j'aimerais savoir si l'un d'entre vous pourrais me dire comment je
peut faire pour avoir le path (l'adresse logique sur internet) du
fichier .class d'un applet java pendant son exécution.

merci

Jul 17 '05 #2
Take a look at the J2SE API for Applet.
It has a method getCodeBase(). That's the one you want.
Most of the time it's the same as getDocumentBase(), however in the APPLET
tag you can set the CODEBASE to a relative directory to the html file
containing the applet.

--
Thank you for any and all help,
Geoffrey
"Peter Bradley" <ap****@dsl.pipex.com> schreef in bericht
news:3f***********************@news.dial.pipex.com ...
Bonjour - et votre pardon. Je ne parle pas bien le francais. Mais, c'est
le "codebase" que vous le voulez, non?

Peter

"Francis" <fo*************@globetrotter.net> wrote in message
news:c2**************************@posting.google.c om...
Bonjour,

j'aimerais savoir si l'un d'entre vous pourrais me dire comment je
peut faire pour avoir le path (l'adresse logique sur internet) du
fichier .class d'un applet java pendant son exécution.

merci


Jul 17 '05 #3
fo*************@globetrotter.net (Francis) wrote in message news:<c2**************************@posting.google. com>...
Bonjour,

j'aimerais savoir si l'un d'entre vous pourrais me dire comment je
peut faire pour avoir le path (l'adresse logique sur internet) du
fichier .class d'un applet java pendant son exécution.

merci


If you ask in English, you might get more response. You can tranlsate
your language to English at

http://translate.google.com/translate_t
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: nathanlaan | last post by:
This is the stupidest thing I have ever seen. Java 1.2, 1.3, and 1.4.1, and 1.4.2 all define the Applet.getDocumentBase() method differently! How am I supposed to get the directory of the document...
0
by: James Hong | last post by:
Help please, I try to sending an email from my html page using the java applet. but it give error on most of the PC only very few work, what is the error i make the java applet show as below ...
1
by: Todd | last post by:
Is it possible to retrieve and pass the entire path to a file. ie. you search for a file on your hard drive using a form (<input type="file">) you then submit the form which passes the file path...
1
by: Charlie Kim | last post by:
Here is gnome applet source of mine. -------------------------------------------------- #!/usr/bin/env python import pydic import gtk import gnome.applet
0
by: ankur | last post by:
WHEN I RUN THIS WEB APPLICATION ON Tomcat5.5.9 SERVER MY HttpChatApplet sccessfully Loaded from ChatDispatch but running on some another PC HttpChatApplet not loaded my Coad ...
2
by: reviglione | last post by:
Ciao a tutti, io ho una serie di progetti, ogni progetto ha le proprie risorse (dialog,menu,string table). Devo poter caricare le risorse di un progetto piuttosto che di un altro dinamicamente. Ho...
2
by: rengaraj | last post by:
i want to ask should i put the class file for this Applet in the same folder of the HTML or JSP page or it is possible to put it in any place and write the path when i did that the Applet could...
4
by: tudyfruity18 | last post by:
I'm suppose to write an applet that contains two buttons Investment calculator and Loan Calculator. When the Investment Calculator button is clicked, a frame appears in a new window for calculating...
1
by: sheephead86 | last post by:
Hi, I'm pretty new to java, and I have a small problem involving drawing a rectangle on a java applet.Firstly this is not a plea for someone to help me with this peice of work, I just need pointing...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.