Problem on debug Applet

hi all,
i am developing an user debugger which is used to debug Applet.
problem is, the Applet debugged must be in same directory as the debugger, simply says, the command must be:
appletviewer MyApplet
or
java sun.applet.AppletViewer MyApplet
i need following command work:
appletviewer file:/c:\folder\MyApplet
because normally debugger is not in the same directory as Applet debugged.
how to solve the problem?
i guess i have to develop my own AppletViewer, but how to do?
thx

i fix it.

Similar Messages

  • Problem to debug applet, please help...

    i use windows.
    there are 3 files under "c:\current" directory, they are
    file 1. mem_appletviewer.bat - with content:
    "e:\install\java\jdk1.3.1_05\bin\appletviewer" -J-Xdebug -J-Xrunjdwp:transport=dt_shmem,address=conn001122,server=y,suspend=y test.htm
    file 2. mem_jdb.bat - with content:
    "e:\install\java\jdk1.3.1_05\bin\jdb" -attach conn001122
    file 3. test.htm - with applet tag:
    <applet
    code="Let0.class"
    codebase="G:\Victor\Vc5060\Develop\JCity\files\RecentFile"
    width=400 height=250 ></applet>
    (Let0.class is a simplest class extends Applet)
    please note, codebase is not "c:\current" directory
    problems happend when i debug: (run mem_appletviewer.bat first then mem_jdb.bat)
    a) if move Let0.class to "c:\current" directory, debug is fine but test.htm can not load Let0.class itself because of codebase tag.
    b) if move Let0.class to codebase directory (G:\Victor\Vc5060\Develop\JCity\files\RecentFile), test.htm can load the class but appletviewer can not load the class (can not find Let0.class).
    ===========================================================
    in my application, i need to put Let0.class in codebase directory.
    Question:
    1) how to set -classpath for appletviewer (as debug application class in java.exe )? is it possible?
    2) codebase TAG in test.htm doesn't work for appletviewer, what is problem? how to fix it?
    totally:
    how to debug Let0.class if it is in codebase directory (not in "c:\current")?
    thx

    i fix it.

  • Debug applets

    I am using Sun Java Studio Enterprise Version 8 and I'm wandering if anybody knows the best way to debug a mixed applet/Servlet environment. I am able to debug the servlets running on tomcat without any problems but the applets are not setup to debug. Any ideas on the best way to setup this environment? I appreciate the help.

    From the ide field guide:
    http://usersguide.netbeans.org/files/documents/40/70/Chapter6-WebApps-Tomcat.pdf
    NetBeans IDE does not have a specific project type for applets, so the development cycle for applets is a little different than for other types of projects. You can not designate an applet as a main project, which means that several project-specific commands (such as Run Project) do not apply to applets. However, you can still create, test, and deploy applets fairly easily. The general outline of applet development is as follows:
    1. Create a Java Library project to hold the applet.
    2. Create an applet from one of the templates in the New File wizard and fill in code for the applet.
    3. Test the applet in the JDK's applet viewer by right-clicking the applet's node in the Projects window and choosing Run File.
    4. Create a JAR file for the applet by right-clicking the applet's project node and choosing Build Project.
    5. If you want to add the applet to a Web application, add the applet's project (or just the applet's JAR file) through the Web project's Libraries node.
    ...To run an applet, right-click the applet's node in the Projects window and choose Run File. To start debugging an applet:
    1. Set a breakpoint in the code by selecting the line where you first want execution to pause and press Ctrl-F8.
    2. Right-click the applet's node in the Projects window and choose Debug File.
    Therefore the suggested approach seems to be debug the applet separately.
    Also of possible interest:
    http://www.netbeans.org/servlets/ReadMsg?list=nbusers&msgNo=53777
    Simply open the applet class in the editor and choose "Debug File"
    (normally it is Ctrl-Shift-F5 or menu "Run > Run File > Debug
    foo.java"). The applet viewer comes up and breakpoints that I have set
    in the IDE are perfectly hit.
    http://www.netbeans.org/kb/41/tutorial-applets.html#runanddebug

  • Facing Problem while Debugging a custom report using LDB

    Hi Gurus,
    I have requirement to modify a custom report program related to FI. This program used Logical database ZDF ( Copied original DDF) for data fetching.
    when i am trying to see the data in debugging mode, its not allowing to check in start-of-selection event. only in the initialization & end-of-selection i could able to debug.
    when i put breakpoint in initialization, it is allowing to see the flow till a Get Event occurs in the code, once a Get event occur the debugger is coming out and displaying the report.
    If anybody faced this kind of problem when debugging a report using LDB, please share how you resolved it. If there are any other ways to debug a program of this kind please help me.
    Thanks,
    Nanda

    Hi Amith,
    I checked that way also, i put break point in database program of the copied LDB, but its not allowing to check the flow in that program also.
    Please suggest any other ways.
    Thanks,
    Nanda

  • Problem on loading applet netscape4.73 in macos9 very urgent pls help me

    Hello,
    Problems on loading applet in Netscape4.73(jre1.1.5) AppleMac OS-9.
    when i try to load applet of size ~ 200kb in Netscape 4.73 AppleMac os9, then browser abruptly closing with the AppleMac os error message :- the Applicarion " Netscape Communicator " has unexpectedly quit because an error of type 2 occured. And then asking for system restart.
    Since i am new to the AppleMac environment i cant adjust the settings please help me to overcome the problem. Its Very urgent and i am in great hurry pls.
    thanks in advance.
    Rao. V.N.

    Hi Rao,
    I'm not a mac-os specialist (even I had some business with mac !!), and it is very difficult speaking in blind, but I have severals questions that may help you.
    - Did you try you applet in other AppleMac plateform ?
    - Does your applet work fine in other browser/plateform ?
    - Does a small applet work fine on this plateform with this browser ?
    - Does you applet contains instructions like System.exit, System.* or try to access (read or write) to local files ?
    Otherelse it is possible you have problem with your jre config, try to configure your plugin with command like : -Xmx64m -Xms16m
    (These commands tell the plugin to use at least 16 Mo memory and 64 Mo for the maximum see : http://java.sun.com/docs/hotspot/gc/)
    Hope that will help you

  • Problem while loading applet in opera- very urgent please

    hi,
    I am having problem while loading applet in opera browser. Showing "Applet loading " continuously. I am trying to use URLConnection to read information from applet's own host. I cant find the exact problem what is happening, Since there is no error message in browser Javaconsole.
    If anybody have idea on this please help me. I am in great hurry.
    Thanks in advance.
    Rao. V

    hi this is rao,
    I inserted a lot of System.out statements throughout applet life cycle. But they are not displaying in java console. I think the problem is in Opera-java settings. Since i am new to the opera environment i cant get right solution.
    Please help me if anybody having clear idea on this aspect.
    thanks in advance

  • Debug applet embedded in jsp using tomcat and eclipse

    I am trying to debug applet embeded in jsp. I have deployed my application on tomcat.
    The steps I followed
    1. Added JVM rumtime parameters in Java plugin control panel
    -Djava.compiler=NONE -Xnoagent -Xdebug -Xrunjdwp:transport=dt_socket,address=localhost:8000,suspend=n
    2. Added JPDA_ADDRESS = localhost:8000 and JPDA_TRANSPORT=dt_socket to catlina.bat
    3. I start my server from commandline prompt "catalina.bat JPDA start"
    4.I have made a new configuration for remote debug in eclipse debug>new> connection type (socket attach) >port 8000
    5. when I open my application url in browser browser closes and command prompt displays "*Debugger failed to attach , timeout before handshake*"
    Any help on this ?
    Thanks in advance

    Personally, I have no knowledge about Applet but have you checked this link?
    [http://blogs.sun.com/thejavatutorials/entry/deployment_toolkit_101|http://blogs.sun.com/thejavatutorials/entry/deployment_toolkit_101]

  • Problem with debug servlet Eclipse 3 tomcat 5

    I have configured Eclipse 3 with Tomcat 5.0.28 and tomcatPulginV3
    but, I have problem to debug my servlet
    I have error message
    help me it is urgent
    Failed to connect to remote VM. Connection refused.
    java.net.ConnectException: Connection refused: connect
    java.net.PlainSocketImpl.socketConnect(Native Method)
    java.net.PlainSocketImpl.doConnect(Unknown Source)
    java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    java.net.PlainSocketImpl.connect(Unknown Source)
    java.net.Socket.connect(Unknown Source)
    java.net.Socket.connect(Unknown Source)
    java.net.Socket.<init>(Unknown Source)
    java.net.Socket.<init>(Unknown Source)
    org.eclipse.jdi.internal.connect.SocketTransportImpl.attach(SocketTransportImpl.java:47)
    org.eclipse.jdi.internal.connect.SocketAttachingConnectorImpl.attach(SocketAttachingConnectorImpl.java:103)
    org.eclipse.jdt.internal.launching.SocketAttachConnector.connect(SocketAttachConnector.java:131)
    org.eclipse.jdt.internal.launching.JavaRemoteApplicationLaunchConfigurationDelegate.launch(JavaRemoteApplicationLaunchConfigurationDelegate.java:75)
    org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:569)
    org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:788)
    org.eclipse.debug.internal.ui.DebugUIPlugin$6.run(DebugUIPlugin.java:955)
    org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)Thanks

    Check your packages which you are importing....

  • Problem with debug XT75

    Hello
    I have problem with debug program for XT75. I work in XP , install java j2sdk1.4.2_09 (from CD) , eclipse (with EclipseMEplugin_123) ,SMTK and connect terminal TC65 with XT75 module.
    When I want to debug my simple Midlet HelloWorld under celipse I get error:
    =========================================================================
         Starting XT75 emulator for debugging application. Please wait ...
         =========================================================================
         COM port used for "emulator session": COM1
         Used baud rate for the module "115200 baud"..
         >>> Emulator is set to no download of Jar and Jad file! <<<
         Initialize module for debugging ...
         The module is now initialized for debugging!
         >>> Establishing TCP/IP connection "IP connection for remote debugging"... <<<
         Please wait ...
         Done.
         >>> Starting Debug Agent ... <<<
         The debug agent is not started!
    File WM_Debug_config.ini in WTK for XT75 is:
    # This ini file is used to configure emulator.exe
    # Hints:
    # Store this ini file into the directory where the emulator.exe is located!
    [Module type]
    # Define the used module type
    ModuleType=XT75
    [AT command]
    # These AT commands are used for initialising the module for debugging!
    # Hints:
    # The IP address range 10.x.x.x is not supported for configuration of debugging!
    AT-Cmd1=S:ATE1
    AT-Cmd2=R:OK
    AT-Cmd3=S:at+cpin?
    AT-Cmd4=R:+CPIN: READY
    AT-Cmd5=R:OK
    AT-Cmd6=S:at^scfg=userware/debuginterface,"192.168.0.21","192.168.0.22","0"
    AT-CMd7=R:^SCFG: "Userware/DebugInterface","192.168.0.21","192.168.0.22","0"
    AT-Cmd8=R:OK
    AT-Cmd9=S:at^scfg=userware/mode,"debug","a:/","2000"
    AT-Cmd10=R:^SCFG: "Userware/Mode","debug","a:/","2000"
    AT-Cmd11=R:OK
    AT-Cmd12=S:at^scfg=userware/stdout,UDP,2000
    AT-Cmd13=R:^SCFG: "Userware/Stdout","UDP","2000"
    AT-Cmd14=R:OK
    [System.out port]
    # used UDP port number range: 1024 ... 65535
    # comment out the following line for switching off Java "System.out" displaying in the IDE window
    #UDPport=12345
    [DebugAgent delay timer]
    # settings for Debug Agent delay timer in ms
    #DATimer=2000
    I send At command to terminal AT^SCFG? and get answer:
    ^SCFG: "AutoExec","0","0","0","0",""
    ^SCFG: "AutoExec","0","1","0","0","","000:00:00","000:00:00"
    ^SCFG: "AutoExec","0","1","1","0","","000:00:00","000:00:00"
    ^SCFG: "AutoExec","0","1","2","0","","000:00:00","000:00:00"
    ^SCFG: "GPRS/ATS0/withAttach","on"
    ^SCFG: "GPRS/AutoAttach","disabled"
    ^SCFG: "GPRS/PersistentContexts","0"
    ^SCFG: "GPRS/RingOnIncomingData","off"
    ^SCFG: "MEopMode/Airplane","off"
    ^SCFG: "MEopMode/Airplane/OnStart","off"
    ^SCFG: "MEShutdown/OnIgnition","off"
    ^SCFG: "PowerSaver/Mode9/Timeout","20"
    ^SCFG: "Radio/Band","3","15"
    ^SCFG: "Radio/OutputPowerReduction","3"
    ^SCFG: "Serial/USB/DDD","0","0","0409","0681","0034","Siemens AG Wireless Modules","XT75",""
    ^SCFG: "Tcp/BufSize","5200"
    ^SCFG: "Tcp/IRT","3"
    ^SCFG: "Tcp/MR","10"
    ^SCFG: "Tcp/OT","6000"
    ^SCFG: "Tcp/SAck","1"
    ^SCFG: "Tcp/TTcp","0"
    ^SCFG: "Tcp/WithURCs","on"
    ^SCFG: "Trace/Syslog/OTAP","0"
    ^SCFG: "Userware/Autostart","0"
    ^SCFG: "Userware/Autostart/AppName",""
    ^SCFG: "Userware/Autostart/Delay","0"
    ^SCFG: "Userware/DebugInterface","192.168.0.21","192.168.0.22","0"
    ^SCFG: "Userware/Passwd"
    ^SCFG: "Userware/Mode","debug","a:/Project02.jar","2000"
    ^SCFG: "Userware/Stdout","UDP","2000"
    ^SCFG: "URC/CallStatus/CIEV","restricted"
    ^SCFG: "URC/CallStatus/SLCC","verbose"
    ^SCFG: "URC/Datamode/Ringline","off"
    ^SCFG: "URC/Ringline","local"
    ^SCFG: "URC/Ringline/ActiveTime","2"
    OK
    Please help me.
    Thanks.

    Hello,
    I would like to know if you could debug?
    That's the same problem what I have.
    At the moment I have the DSB75 and the XT75 module I don't know what else I can to to run the program under debug.
    OS: Win XP
    eclipse-SDK-3.3.1.1
    eclipseme.feature_1.7.7
    Regards,
    NOVI

  • Hi,  Trying to log in with my user id and password at iocbc but was not able to access. Problem message shown : Applet not initialised or may not be supported. Please refresh the page or check the browser setting  Anyone can advise? or i need to download?

    Hi,
    i have the same problem?
    Trying to log in with my user id and password at iocbc but was not able to access.
    Problem message shown : Applet not initialised or may not be supported. Please refresh the page or check the browser setting
    Anyone can advise?

    You need to install Java for your Mac OS version, and/or make sure it's enabled in the Java Preferences application and your browser's preferences.

  • How to debug applets

    I'm a new at this.
    Can anyone suggest of a way to debug applets. I'd love
    to trace through statements in the code. How can I do it?
    Thanks in advance.

    Look into documentation provided by your IDE, it should provide example on how to dynamically debug an applet. Typically you would provide the html file (that loads the applet) name as a configuration parameter
    HTH

  • Problem with URL - Applet

    hi, i have a little problem running my applet. it's supposed to get a file from the WWW and display its contents as a string inside a JTextArea. the file on the web is a simple .txt containing little text, say one sentence, its irrelevant here. the file is read in inside a different class that the applet calls. however, there seems to be a problem with that - maybe it has something to do with Applet restrictions. anyway. here goes:
    the applet (i removed all irrelevant applet construction objects like buttons etc) -
    public class Applet1 extends JApplet {
    private JTextArea sisestaJutt;
    private String juttVeebist;
    public void init() {
    URLReader veebist = new URLReader();
    try {
    juttVeebist.equals( veebist.reader());
    catch(Exception e) {
    Container sisu = new Container();
    sisestaJutt = new JTextArea(juttVeebist);
    sisu = getContentPane();
    sisu.setLayout( new BorderLayout() );
    sisestaJutt.setBorder(brdr);
    sisu.add(sisestaJutt, BorderLayout.CENTER);
    the called class (& method) -
    public class URLReader {
    public static String reader()
    throws Exception {
    URL jjstreet = new URL("http://www.anydomain.com/file.txt");
    BufferedReader input = new BufferedReader(
    new InputStreamReader(
    jjstreet.openStream()));
    String inputLine = input.readLine();
    input.close();
    return inputLine;

    thank you everyone for information, it's getting clearer to me already. sounds like signing would do the trick.
    however, i first tried this thing on a localhost - thats the server-program and applet at the same place, even writing in the same dir... but the text ment to be inside the textarea is still from a URL, so i guess applet has trouble getting input from the www then...
    anyway, JFrame is working very good + it has the comfortable command line feel in it =)
    ty all.

  • Security problem when signed applet dynamically load plugins

    Hi!
    I have one problem : "security problem when signed applet dynamically load plugins"
    This is the scenario:
    the main program [app.jar]
    . contain applet and shared library (interface & implement of common class)
    . it is signed and run normally on browser
    . it can draw image loaded from other URL [ex] http://bp1.blogger.com/image.jpg
    . the image loader is in the shared library
    . dynamically load amazon.jar through URLClassLoader and reflection
    the plugin [amazon.jar]
    . search amazon product [ex] Harry Potter book
    . draw image on applet
    . use image loader from shared library, BUT CANNOT LOAD IMAGE
    The question: "Why it cannot load image, because the image loader is in the shared library which has been signed and working?" I tried to sign the amazon.jar too, but it did not work.
    Your reply would be very helpful. Thank you.
    Sovann

    hello. i have create a signed applet for A.jar. A.jar include two package B and C. the main applet class is within B.
    B need some classes in C to run the applet. but i got the error that class in package c are not found.
    what shall i do?

  • Problem about debugging system

    Hi, all:
    I meet a problem when debug my program from se38, It says 'Error during interprocess communication; Debugger will be closed .  Message Number TPDA151'.
    How can I resolve this problem?
    Thanks in advance.

    Hi,
    There must be SM21 logs , to figure out .
    You can validate below oss notes.
    Note 981211 - HTTP debugging with the new debugger is terminated.
    Regards
    Nagaraju

  • Problems with pacman applet, and advice on a gaming portfolio

    Hi
    I recently made a pacman applet, im having a few problems with it though, the first time the applet is run on a browser, the ghosts(represented by squares) often dont appear or if they do, they are stuck in walls, this never happens when i run offline on my computer. Is this because the very first time the applet is run, it doesnt load properly, but the second time some of the files are in the cache so it loads fully?
    Also everytime i refresh the browser the applet dissapears and is replaced with a blank space and a cross in the top left hand corner, does anyone know the reason for this?
    The applet can be found below, if you do decide to play it, please bear in mind what i have said, so it might not load correctly the first time, if this is the case please refresh, or close the broswer and reopen the link! Also you will need to click the applet for it to gain focus before you can move pacman - use the arrow keys the control pacman.
    http://www.renaissance-designs.co.uk/Satwant/java/pacman/
    Id also be very gratful for some advice - id like a change in career, ive always wanted to get into gaming, ive had some previous knowledge in java i made a programme that could generate its own poetry in java for my dissatation, but i still never had a huge amount of confidence, and so went into websites.
    BUT now i have decided to take the leap back into programming and give it a go, which is why ive made this game.
    I thought id make a portfolio and try and apply for a few gaming jobs. This applet took me two weeks to make and it was in my spare time, i am fully aware its not perfect, and it doesnt look great, but i would like to know what people think of it, also how many more games do you think i should make, before i apply for gaming jobs? Does anyone have any advice on what would make a good portfolio for a java gaming job?
    Thanks alot, i look forward to what you think of the game, and your advice!
    SSKenth

    sskenth wrote:
    Thanks for getting back to me with that information, i didnt know you could see that information with just a simple right click!
    But im afraid that doesnt really help me solve the problem, im not sure what all of that information means! :SI have very little experience with applets, but I can tell you what I would do to debug this (forgive me if you already know this stuff).
    Look at the stack trace you get in the Java Console that I posted earlier. Each line contains a method that was called from the method on the previous line. So, java.lang.Thread.run() called sun.applet.AppletPanel.run(), which called Room.init(), etc. Look at the topmost line whose method is something you wrote, not something in the standard Java libraries. In your case it looks like PaintSurface.java (specifically, line 22). Look at what line 22 of PaintSurface.java is doing, it's calling Thread.start(). If you check out the Javadoc for Thread.start(), it says IllegalThreadStateException gets thrown if you call start() on a thread that has already started. So that's your problem. Without looking at your code, I'd assume you want to stop your thread in your applet's destroy() override, and instead of reusing it, create a new one each time init() is called.
    Ill try and look into, thanks again though, it gives me somthing to work with :D
    Btw when you first ran the applet, did all the ghosts(3) load up correctly?Unfortunately, no. The first time I ran it, there was only 1 ghost (or maybe all 3 overlapping each other?) at the top of the screen, and they never moved. Refreshing once made the game play as I think you want it to. Refreshing a third time gave the dreaded red X.
    ...oh and just out of curiosity,,, did u have fun playing the game :DSure did.

Maybe you are looking for

  • If Statement in Where Clause

    Hi, Can anybody direct me to the easiest way to do this in sql? select from table where if :condition = 1 then fieldA = 'Yes' else if :condition = 2 the fieldB = 'Yes'; I tried to use the CASE statement, but I don't think I have the syntax correct. I

  • All incoming going into Spam folder

    Since upgrading to Leopard - back up to external first, then clean install of Leopard, then re import files from backup. All incoming mail is going into the Spam folder .. everything on exceptions. Have looked for a simple explanation and searched bu

  • Lumia 920 Disturbed after Black update

    Once Lumia black came, i update my mobile. After that i am facing these issues proximity sensor stop working. Screen Rotation has stopped. Camera app become crash whenever i try to use camera. i tried to hardReset. And then download nokia suit from n

  • Full width glitch on Chrome

    Hi, I am trying to make a portfolio website but I ame xperiencing many glitches across different browsers. I specifically am trying to have a full width page for my site but even though I make sure that my elements click on each end of the canvas, it

  • Oracle 11g R1 ADF faces app on Websphere 8

    So I installed websphere 8 on a linux machine. It worked fine. I am now trying to install the ADF Libraries 11.1.1.2 onto websphere. I downloaded just the framework from the oracle website. There is no Jdeveloper on the server. Anyways Websphere 8 is