Applet viewer question

Well here is my first question of what promises to be many. Nice to meet you all. Here goes:
While doing the first applet in "Your first cup of Java", I run the applet by typing:
appletviewer Hello.html
The applet runs in the applet viewer and looks just like the picure says it should. But I also get this warning in the command prompt:
Warning: Can't read AppletViewer properties file: C:\WINNT\Profiles\PURCHASER\.h
otjava\properties Using defaults.
Anybody know what the problem is there?
Thanks.

I wouldn't worry about it, I get the same errors using the computers at Uni. It's never stopped me anyway. I'm not sure what causes it, something to do with WinNT/2000 and profiles/users.
Cheers,
Radish21

Similar Messages

  • Applet viewer / mozills / netscape6 hang from time to time

    hi list!
    we are using a 3 tier setup
    (db <--> forms server <--> client with appletviewer)
    the database server runs on solaris, the forms server and the clients are running debian stable (woody) (clients use j2sdk1.3)
    the forms server is version 9.2. from time to time the applet viewer (or mozilla or netscape; doesnt matter) just hang. from time to time here means like 4 times in the last 2 weeks. the progress indicator in the right lower corner moves from side to side but nothing happens, the gui doesnt get updated anymore and i have to kill the task and any uncommited info is lost :((( . in the server logs i can find this:
    [Thu Nov 14 11:55:18 2002 CET]::Client Status [ConnId=0, PID=647]
    >> Network connection to client failed: timeout on connection
    Possible causes include a network failure or client termination
    well, i know that its not a hardware prob since with a 8i client installed everything works perfectly.
    i have also tried to use j2sdk1.4 from sun.com but the appletviewer from this version behaves very strangely and keyboard input is often being misinterpreted.
    what is considered the most stable client setup for linux clients?
    am i overseeing something?
    do i have to make any special configuration on the clients?
    best regards, armin

    Hi, think you need on your DVD/CD :
    QuickTime and MPEG-4 movie files that end in ".mov", ".m4v", or ".mp4" and are playable in QuickTime Player.
    Please read:
    iTunes: Frequently asked questions about viewing and syncing videos
    i hope it helps
    regards

  • Swing applet looks different in browser than in applet viewer

    I'm developing an applet using Net Beans 5.0. When I run the applet in the applet viewer I get a totally different look and feel than when I run the applet in a web broser. The background colors are different, the buttons are a totally different style and color, and some buttons that show up essentially transparent in the applet viewer are totally opaque in the browser.
    The applet viewer is the one that looks like the interface that I designed in the Net Beans GUI builder, so can anyone tell me how I make it look the same in a Web Browser?

    It looks like you're right, so how do I ensure that
    my applet will look the same on different versions of
    JVM? There's got to be a way, right??yes. you should look into javas pluggable look and feel system.
    the cross-platform (java) look and feel changed dramatically between versions 1.3, 1.4, and 1.5.
    however, if you use another look and feel, such as motif, or perhaps your system's look and feel (windows, mac, etc), the program should look pretty much the same (perhaps a little different, but not like the differences in the Java look and feel).
    if you want to be COMPLETELY sure that they will always look the same, select a third party look and feel that comes packaged in a jar file that you are free to distribute with your applet.
    Some good third party look and feels are JGoodies Plastic, and Incors Alloy. And there are others.
    if you use one of those, it should look pretty well the same on all platforms, and in all JVM's.
    - Adam

  • Applet works in applet viewer but not in website.

    I am an experienced programmer, but new to java (second week). I have made working client/server chatroom in java that works when I use the applet viewer, but when trying to run the applet in an html file, I get this error.
    java.security.AccessControlException: access denied (java.net.SocketPermission 192.168.1.3:5136 connect,resolve)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkConnect(Unknown Source)
         at sun.plugin2.applet.Applet2SecurityManager.checkConnect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at client.Client.init(Client.java:34)
         at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Exception: java.security.AccessControlException: access denied (java.net.SocketPermission 192.168.1.3:5136 connect,resolvI am unsure how to fix this. My first guess is that it is a security issue. Do I need some certificate or something?

    I am trying to connect an applet to a server application run on my computer. The server application is run in the eclipse ide, but I doubt that makes a difference.
    When connecting to the server from the client run through the eclipse ide with the app viewer, everything works fine. When making an html file for the app and running it also on that computer it fails.
    I tried using localhost instead of my internal ip address, and it gave the same errors. I will try signing next, but there must be a way to get this to work without that.

  • Applet view Status bar

    Hi.
    How i can suppress the applet view status bar when deploying form6i on Web.
    Thanks.
    null

    Hi,
    i copied ur code and tested it on my system(win 98 se with IE 5.5) it works fine.
    I guess u might be using an older version of a browser thats why u r not able to view anything.it would be better if u mention the browser in which u tested ur code...
    maybe ur browser doesnot have the latest plugin for java installed.
    Regards,
    Partha

  • Form 6i in browser not in applet viewer urgent plz

    dear fellows i have problem running form 6i on web when i click the run form web icon from form builder it opens applet viewer not browser
    and when i clik startup-program file-form 6i-run form from the web firstl i get errrcannot find the file c:'orant\tolls\web60\html\runform.htm (or one of its
    componants). Make sure the path and filename are correct and that all required libraries are available.
    if i press ok and pursu to the form and fill ins the name/passwore@service
    and press run
    then i get
    Oracle Forms Web CGI: Error detected
    Your request cannot be serviced at this time due to the following error:
    ERROR: Error getting least loaded host from Load Balancer Server.
    plz help me to run form in the browser
    i m using form 6i browser nescape
    w2k standalone.
    null

    Hi,
    Got it from metalink.oracle.com. (however..I'm afraid... you must be a partner to get in). Do not know another url, so sorry. Maybe someone else.
    Martin
    null

  • How to use JAVA APPLET VIEWER in JSP?

    i want to use applet viewer in my jsp, but i've no idea how to do this. Now, i'd like to finish the two jobs below with applet viewer:
      1. Open a CR Report with applet viewer in a jsp
      2. Programmlly pass parameters into the report
    thx all

    I'm not sure why you are getting the console message, but here is how you might use the tag. This will simply print out the list of immediate groups (not parent groups) to which user "weblogic" is a member.
    &lt;%@ taglib uri="http://www.bea.com/servers/p13n/tags/userGroupManagement" prefix="ugm" %&gt;
    &lt;%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %&gt;
    &lt;ugm:getGroupNamesForUser username="weblogic" id="groupNames"/&gt;
    &lt;c:forEach items="${groupNames}" var="groupName"&gt;
    bq. &lt;c:out value="${groupName}"/&gt;
    &lt;/c:forEach&gt;

  • AccessControlException when run in IE or Safari, but not Applet Viewer

    My applet requires the use of a txt file as input. The txt file need only be read, and is always in the same directory as the class files and the web page the applet's running in. For a while now, there have been no problems with reading the txt file; however, recently, I've been getting a "java.security.AccessControlException: access denied (java.io.FilePermission *insert filename here* read)" error. Furthermore, this error only comes up when I run the applet in Internet Explorer or Safari; when I run it in the applet viewer, it works perfectly. On top of this, when I went to the tutorial suspecting that the problem had something to do with thread management, I noticed that all three of the applets on page http://java.sun.com/docs/books/tutorial/essential/threads/index.html of the tutorial generated errors, which may or may not indicate that the problem lies in my browsers; frankly, I'm not sure. Any help that you people can give me would be greatly appreciated!

    Applets can not read from the filesystem unless you set up policy or sign the applet (or both)
    http://forum.java.sun.com/thread.jsp?forum=63&thread=524815
    second post
    If you applet needs to read a file that is in the same location as the html file and applet why not use the
    URL object?

  • Access denied on applet in broswer - fine in applet viewer

    I have written an applet that access a php file and sends a post message. I have tested the applet with the applet viewer and it succeeds each time. When I put the applet on a web page I get the following error:
    access denied (java.net.SocketPermission libraries.cjt-design.com:80 connect,resolve)
    Any help is appreciated.
    The code is as follows:
                   try {
                        message = code + "&" + toMessage + "&" + fromMessage + "&" + subjectMessage + "&" + bodyMessage;
                        URL url;
                        HttpURLConnection urlConn;
                        PrintWriter out;
                        url = new URL(target);
                        urlConn = (HttpURLConnection) url.openConnection();
                        urlConn.setRequestMethod("POST");
                        urlConn.setRequestProperty("Referer", "http://libraries.cjt-design.com/index.html");
                        urlConn.setDoOutput(true);
                        urlConn.setDoInput(true);
                        urlConn.setUseCaches(false);     
         out = new PrintWriter(urlConn.getOutputStream());
         out.print(message);
         out.close();
              InputStream is = urlConn.getInputStream();
              // any response?
              InputStreamReader isr = new InputStreamReader(is);
              BufferedReader br = new BufferedReader(isr);
                             String s = "";
                             String response = "";
              while ( (s = br.readLine()) != null)
                                  response += s;
              is.close();
                        statusLabel.setText(response);
                        statusLabel.invalidate();
                   } catch (Exception e) {
                        String error = e.getMessage();
                        jEditorPane1.setText(error);
                        error = "Server Exception Occurred - Please try again later.";
                        statusLabel.setText(error);
                        statusLabel.invalidate();
                   }

    1. Why does it work from the applet viewer and not
    the webpage.Appletviewer is in effect a Java application so it runs using the Java application security manager which by default gives an application almost unlimited access to the machine it runs on.
    Running an Applet from a Web page runs the Applet constrained by the Applet security manager. By default, the Applet security manager assumes that anything that is downloaded from the web is untrusted so severely limits what an Applet can do. A signed Applet is assumed to be trusted if the certificate chain points back to one of the certificate roots such as Verisign.
    You can use self signing for test purposes and then a client will be asked whether or not he trusts the Applet.
    2. How do I make the jar file signed?http://java.sun.com/docs/books/tutorial/jar/sign/signing.html
    http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/jarsigner.html
    http://java.sun.com/developer/onlineTraining/Security/Fundamentals/magercises/Signtool/help.html

  • Applet Viewer

    Greetings,
    I just started studying java at my vocational school and i'm studying from a book that was published by The Oracle Online Academy. But anyways, my issue is that inside the book they have a little screen shot of what I should be seeing. They are using an Applet Viewing program instead of the standard Command line utility. I'm looking for the program that is used to view programs. Maybe even a GUI for compiling and viewing. Please reply if you know where I can find either of these utilities.
    Mike Bailey

    I think a little clarification is in order.
    There are two kinds of java programs - applets and applications.
    Applets are viewed through a html page using either the browser or the "appletviewer" utility
    that comes with the jdk.
    You cannot run applications with the appletviewer. That's why it is called Appletviewer.
    Java applications on the other hand are run through the command line and may or may not
    contain a gui - it depends on your program. The whole idea of having a gui to run java applications
    defeats its purpose so there aren't any. Java applications - are always run from the command-line
    using the "java someprogram" command.
    The last thing which you asked for - a gui for compiling and viewing, however, is available. There
    are numerous such tools and they are called IDE's (integrated development environments). They
    allow you to compile and even run your programs...they look as if they run an application within
    a gui but it actually gets run through the command line.
    Check out http://www.gExperts.com for a IDE called Gel. Its small and powerful.
    In retrospect, you need both the appletviewer (equivalent of a browser as far as applets are
    concerned) and a command-line which is capable of running applications.
    If you are so interested in running a gui version - why don't you write your own...you'll see they
    are relatively easy...just go to..
    http://java.sun.com/docs/books/tutorial/
    This is one of the best resources to help you learn the language from beginner upto advanced level.
    regards.

  • Works in applet viewer but not in internet explorer

    I origionaly posted this on devshed. I got 55 views but no replies. It seems to be a common problem to which no one knows the answer. Surprise me :O)I'm sure this is a really common but there seems to be surprisinly litttle on the web about it.
    I developed a game applet a while ago in applet viewer and am now thinking about putting it on my web site. However I have found that it doesn't work in internet explorer. I can browse other sites using Java fine. There is clearly just something about my applet that ie doesn't like.
    Does anyone have any suggestions? What sort of things upset ie?
    All help very much apreciated, you are very nice people
    Flo.

    There must be some thing that tells you it isn't working. You should tell us so we don't have to guess. Does the browser hang? Do you get an error? Did you try opening the Java Console to see if there were any messages? I am guessing that your code is using something that the security level of an Applet does not allow (but appletviewer does allow).

  • Applet works on applet viewer but not in html, why not?

    I'm using Eclipse as a development system and the Eclipse applet viewer shows my applets with no problem. They work the way I expect them to work and all is well.
    When I try to run them in Internet Explorer, I first get a security warning. OK, I trust myself, so I tell Internet Explorer to run the applet. All I get is the text "Hello Dolly", but the applet doesn't run.
    I tried refreshing it, running it again, allowing popups and opening the file, but it just won't run. What could be wrong with something so trivial?
    Any suggestions would be appreciated.
    <html>
    <head>
    <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
    <meta name="ProgId" content="FrontPage.Editor.Document">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Hello to Everyone</title>
    </head>
    <body>
    <applet CODE="Hello.class" width=300 height=100>Hello Dolly
    </applet>
    </body>
    </html>

    Sorry, I didn't think there was anything special in the applet.
    This just happens to be what I'm checking at the moment.
    It has changed depending upon where in the tutorial I find myself.
    Thanks for you help.
    It has to be something really stupid that I'm missing, but since I'm still new at this game, I can miss something obvious to everyone else.
    package hello;
    import java.applet.Applet;
    import java.awt.Color;
    import java.awt.Font;
    import java.awt.Graphics;
    import java.util.Date;
    public class Hello extends Applet implements Runnable {
         private static final long serialVersionUID = 1L;
         Color colors[] = new Color[50];
         Date date1 = null;
         Thread run1 = null;
         Font f1 = new Font("Ariel", Font.PLAIN, 14);
         public void run() {
              int i = 0;
              Thread currThread = Thread.currentThread();
              while (currThread == run1) {
                   setForeground(colors);
                   repaint();
                   i++;
                   if( i>= colors.length) i = 0;
                   try { Thread.sleep(50); }
                   catch (InterruptedException e) {}
         public void init() {
              int i;
              float c = 0.0f;
              for(i=0; i<colors.length; i++) {
                   colors[i] = Color.getHSBColor(c, 1.0f, 1.0f);
                   c += 0.2f;
         public void start() {
              if (run1 == null) {
                   run1 = new Thread(this);
                   run1.start();
         public void stop() {
              run1 = null;
         public void paint(Graphics g){
              date1 = new Date();
              g.setFont(f1);
              g.drawString(date1.toString(), 10, 50);

  • Applet Viewer Vs Internet Explorer

    I have a applet that displays popupmenus on a button click it works great when viewed through the applet viewer but under Internet explorer everything appears right but when you click on a button &#65279;h&#65279;Nothingapp
    happens.

    No threads! Thats not the issue here!!!
    class a extends Applet implements ActionListener
       Button b;
       public void init()
          b=new Button("the button");
          add(b);
          b.addActionListener(this);
          System.out.println("init ok");
       public void actionPerformed(ActionEvent e)
          System.out.println("actionPerformed start");
          PopupMenu p;
          p=new PopupMenu("Jalla");
          p.add(new MenuItem("first"));
          p.add(new MenuItem("second"));
          add(p);
          b.setBackground(new Color((int)(Math.random()*0xffffff)));
          b.repaint();
          p.show(b, 10, 10);
          System.out.println("actionPerformed end");
    }This is what you are describing... Check against my code to find what you have forgotten. Also: use the java console in IE a lot (View->Java Console) You have to switch it on under (Tools->Internet Options->Advanced->Microsoft VM)
    Regards,
    Ragnvald Barth
    Software engineer

  • PIctures in applet viewer

    If someone could help me out, I'm trying to place a picture in a program I made in the applet viewer. Thx.

    Or just to start ...
    // <applet code='ACoolerAppletSimple' width='400' height='300'></applet>
                                import java.applet.*;
                                import java.awt.*;
                                import java.net.*;
                                public class ACoolerAppletSimple extends Applet {
                                  private Image bigGIF;
                                  public void init() {
                                    String gif = this.getCodeBase().toString() + "T1.gif";
                                    try {
                                      bigGIF = this.getImage(new URL(gif));
                                    catch (MalformedURLException e) { }
                                  public void paint(Graphics g) {
                                      g.drawImage(bigGIF, 0, 0, this);
                                }

  • JMF works in Applet View, but in web browser, cannot find device

    I'm developing an Applet which can capture image from a web camera.
    It's working very well in the applet view, but it says "No devices" error message through web browser.
    How can I make it work? How can I find device on the web browser?
    I changed permission using "java JMFRegistry", and tried signed Jar.
    Anyone can help me?
    or some of samples would be appreciated...

    Applet view means Applet viewer..

Maybe you are looking for

  • External HD file size limits for movies

    I recently bought (but have not yet connected) a Western Digital My Book Pro ext.HD for storage and started a thread - 'Best external hard drive...?' in the iMac forum to discuss this. Though the responses were useful I would be pleased to have views

  • How to display a rectangular ROI in a new image?

    Hi,    I want to display a rectangular ROI in a new image. I want the rest of the image to be cropped. I selected the ROI by using the  'IMAQ Select Rectangle' vi And  changed the rectangle output generated into an ROI using 'IMAQ Convert Rectangle t

  • DEBUGGING_IMPOSSIBLE

    There is a main transaction (let's call it AA). I have a transaction that can be called from within this transaction (BB). When a button is pushed within BB, it calls another transaction (CC) that can also be called from AA. BB sends a BDCDATA table

  • Loading images with different horizontal sizes

    I would like to load images with different horizontal resolutions (vertical resolution to be the same) dymanically into an empty movie clip. I would like them to load with the right hand side of the image lined up with the right hand side of my site.

  • How to install personal certificate on N95?

    Hi, Does anyone know how to install a personal certificate on the N95? I need to connect to my office WLAN using Radius authentication. I have tried to bluetooth the .cer file to the phone and it does not recognize the file or install it. I am famili