473,667 Members | 2,721 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2401
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.goo gle.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

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.pip ex.com> schreef in bericht
news:3f******** *************** @news.dial.pipe x.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.goo gle.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


Jul 17 '05 #3
fo************* @globetrotter.n et (Francis) wrote in message news:<c2******* *************** ****@posting.go ogle.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
9516
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 in which the applet is embedded (like Java 1.3) using Java 1.4.2??? http://java.sun.com/products/jdk/1.2/docs/api/java/applet/Applet.html#getDocumentBase() http://java.sun.com/j2se/1.3/docs/api/java/applet/Applet.html#getDocumentBase()
0
9870
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 ********************************** package Celcom.Client;
1
3019
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 to an applet use to view the file/image.
1
2938
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
5658
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 ChatDispatch.java
2
1867
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 una funzione LoadStringFromDLL(HINSTANCE hInstance, int ID) che riceve l'hinstance e l'id e DOVREBBE usarli per caricare la risorsa del progetto in esecuzione e la relativa stringa nella string table. Se io infatti creo "a mano" l'hinstance...
2
1470
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 not see this class file how to change the path of the class example i have an HTML page inside i have <APPLET CODE='MyClass.class' WIDTH='400' HEIGHT='400'> instead i need to write in Code = path of myClass on my machine Advance Thanks,...
4
7815
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 future investment values. When you click Loan Calculator button, a frame appears in a separate new window for computong loan payments. Here's my coding: // Lab3.java: import java.awt.*; import java.awt.event.*; import javax.swing.*; ...
1
2379
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 in the right direction. Ok the problem. I am creating a program that ask the user to input a height value, the program will then do a calculation and create a golden ratio width. The type of both the height and the width are double. This is...
0
8366
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8650
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7391
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5677
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4202
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4372
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2779
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2017
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1779
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.