Appletviewer question by newbie

I cannot get the appletviewer to run the applets:
I get the following message from the viewer: "Start: applet not initialized".
I've used canned code examples, but they won't run.
Anyone have any suggestions?
Thanks!

I got the fix by reading thru this forum...
I needed to give the path for the appletviewer.
Strange, it would start but not run. It must have extensions in the bin directory that it needed, but could not access.

Similar Messages

  • Applet use with HTML// also appletviewer question

    I am new to the language. I am trying to start an applet in a folder that I created on my hard drive(C:). I have included the following code in my HTML in my folder.
    <applet code="NotHelloWorldApplet.class"
    width= "300" height= "300">
    </applet>
    I have already compiled the program; I have the net beans 1_4_2 compiler, and it has compiled without errors.
    The code is :
    import java.awt.*;
    import javax.swing.*;
    public class NotHelloWorldApplet extends JApplet
    public void init()
    Container contentPane = getContentPane();
    JLabel label = new JLabel("Not a Hello, World applet",
    SwingConstants.CENTER);
    contentPane.add(label);
    I have also downloaded Plug-In; if that means anything. When I open the HTML folder a grey box appears; then at the bottom of the window it says that it cannot find the file; even though the file exists(I have looked with the file finder and it is in my file directory). Is it in the wrong directory? How does the file folder in windows know how to run and execute a java program with the preceding HTML code. This is the method explained in a current text book that I am using. It tells me to
    1. to compile the source code into class files.
    I used the compiler and I successfully created a .class file, (obviously the title of the program is .java program, but the class file does exist.
    Then 2. add the above code in the HTML program(which I did).
    I would like to get applets running but do not know how to correct this problem. Is there more HTML code that I need to run a java program in the folder's code.
    Also, the textbook I am using tells me to preview the applet with appletviewer. I loaded the appletviewer into the editing screen and it is a bunch of hieroglyphics. One of two possible problems are that it is not included with the Net_Beans_1.4.2(it was from another download) or the download was contaminated. Anyway, the question I have is; is appletviewer an application that is viable with Net_Beans_1.4.2 and if it is from where and how do I run or execute it to preview my applets before I run them inside an HTML document.
    Derk_the_Zeeman
    [email protected]

    Sounds to me like you're having trouble with NetBeans, not applets or appletviewer. You should consult their docs on how to access their version of appletviewer.
    It also sounds to me like you're using the book CoreJava by Horstmann/Cornell.
    Notice that they package TextPad with their book. This is for a good reason. It is very easy to be suckered into thinking you know what is going on when you have an IDE that does stuff for you. I know. I programmed in VB for a while, and I thought I knew how to do Windows programming. But I didn't. VB was doing all the work for me while I was drawing boxes on the screen and patting myself on the back. It took several major blows to the ego before I found out that all I really knew how to do was how to draw a bunch of silly boxes.
    New programmers should start out with a text editor. They get a better feel of what is going on.
    I don't know how NetBeans works -- even now I prefer TextPad over any IDE I've tried. But appletviewer works in the same way the java and javac command works, except that the argument it takes is the name of the html file which contains those applet tags (<APPLET>).
    I have some thoughts on your problem:
    1) you have an html file somewhere, but you don't know where. It is somehow created in a "window". the tag
    applet code="NotHelloWorldApplet.class"
    means "look in this directory for the class NotHelloWorldApplet.class" So if the html file you have created is not in this directory, how will appletviewer (or NetBean equivalent) know where it is? (hence, "class not found")
    2) Is this correct? You have downloaded the plug-in for your browsers, but you didn't try using your browsers to see the applet?
    If so, try this: go to IE or Netscape (or whatever you favorite browser is) and try in IE File-->Open and hit the browse button, or in Netscape File--> Open File
    Next, try to find the file "NotHelloWorldApplet.html" or whatever it is you called the "window". Open the html file.
    If it doesn't work, check to see if the html file is in the same directory as the class file (repeat procedure, but now look at files of type "All")
    3) You can make an html file with notepad. You don't need anything special. Just type in the html code that Horstmann/Cornell include into notepad and save as an html.
    Does this help?
    :) jen

  • Sizing question (beware newbie)

    Hi all,
    Here’s a question from a true newbie, I hope it is not
    to ignorant to answer though.
    It might be the case that this question has been addressed
    somewhere in this forum already but that I don’t recognize
    the problem due to terminology, to which I’m still to new.
    The other problem is that don’t have the site online so
    it’s not possible to show it live.
    I’ve tried to make an index page (html) with an image
    in the middle like a bar. On this bar a few buttons are placed.
    When I preview this page in a browser it looks right at first but
    when I use the ctrl button and scroll-wheel, (normally altering the
    text size) it completely changes the size of the size except for
    that bar image. The buttons appear somewhere else on the page. (not
    a pretty picture)
    Is there a way to prevent the use of ctrl combined with the
    mouse scroll-wheel?
    It was told me that using fonts measured as pixels this
    wouldn’t be possible but that didn’t prevent this to
    occur.
    Thanks for any help.
    Kind regards,
    Lexz.

    http://apptools.com/examples/pagelayout101.php
    Then move on to these -
    http://www.projectseven.com/tutorials/css/qdmacfly/index.htm
    http://www.macromedia.com/devnet/mx/dreamweaver/css.html
    http://www.macromedia.com/devnet/dreamweaver/articles/tableless_layout_dw8.html
    http://www.macromedia.com/devnet/dreamweaver/articles/css_concepts.html
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "lexdepax" <[email protected]> wrote in
    message
    news:fn53i6$fet$[email protected]..
    > Ok, that's a clear answer Bregent. Thanks for that.
    > Now as a complete newbie the queston that comes to mind
    is:
    >
    > Is that something one can do visually ( I mean in Dream
    Weaver) or is that
    > always managed from the code itself, which seems to me a
    difficult job.
    > It was so temting to be able to visally place my stuf
    anywhere I wanted
    > it.
    >
    > What would you suggest as the right approach for a
    starter?
    >
    > Thanks again.
    >
    > Regards,
    >
    > Lexz
    >

  • *Silly* SQL Question - SQL Newbie

    Hello,
    Thanks for taking the time reading this.
    Im a SQL Newbie
    Question?
    I Have a PHONE_TABLE, which consist of
    a BUREAU Column and a STATUS Column.
    Within the STATUS column exist 'active' and 'inactive'
    I would like to know if it's possible to create a report that groups a Bureau and counts the # of active /inactive phones
    that displays
    \BUREAU/- - -\Active/ - - - -\Inactive/
    - - - - HR - - - - - 3 - - - - - - - --4 - - - - - - - -
    - - - - IT - - - - - 1 -- - - - -- - - 5 - - - - - - - - -
    - - MGMT - -- -- 3 - - - - -- - - 6 - - - - -- -
    Thanks for the help guys

    Try this:
    select bureau, sum(decode(status,'Active',1,0) ) active , sum (decode(status,'Inactive',1,0) )  inactive
    from PHONE_TABLE
    group by bureauHope this helps!
    Sam
    Please reward good answers by marking them correct or helpful!

  • BPS questions from newbie

    Hi SEM gurus,
    I am a newbie to SEM. I was put into a SEM project that my company is implementing. I have gone through internal training but still I have some questions.
    1. How does 'fields to be changed'/'fields for conditions' relate to single/multiple selections?
    2. What is meant by 'internal creation of planning packages'?
    3. Is FOX related to transformation library?
    4. Is Data Slice in same as that in BW?
    5. Where can I find more information to better understand BPS? I am more BW than BPS. My colleagues passed me some course manuals but I need more foundation materials. Any useful links?
    Hope you gurus could throw me some hints.
    rdgs,
    Bryan Lee

    Hi Bryan,
    > 1. How does 'fields to be changed'/'fields for
    > conditions' relate to single/multiple selections?
    Fields to be changed typically have only single or range values for source values and single values for target values.
    Fields for conditions usually support multiple selections.
    > 2. What is meant by 'internal creation of planning
    > packages'?
    When you execute a planning function, the data of the planning package is processed in subsets. Those subsets are created by BPS. The users does not see them. If you are in BPS0 you can use "Execute with Trace" and each line in the trace corresponds to one internal package.
    > 3. Is FOX related to transformation library?
    There's no relation. FOX have it's own set of functions.
    > 4. Is Data Slice in same as that in BW?
    There are no data slices in BW.
    > 5. Where can I find more information to better
    > understand BPS? I am more BW than BPS. My colleagues
    > passed me some course manuals but I need more
    > foundation materials. Any useful links?
    There are a few books out. Search Amazon or SAP Press for "BPS".
    Regards
    Marc
    SAP NetWeaver RIG

  • FTP question for newbie -- How to access external volume?

    I have set up an old Mac (running Tiger) as a server on my LAN; attached to this Mac are several Firewire disks. I want to use FTP (with retrospect Express) to automatically back up from another computer to these disks.
    I can successfuly mount these Firewire disks using AFP on the other computer. But when I use FTP, I seem only to access the user account I use to log in. How do I get FTP to go those Firewire disks to transfer the backup files?
    Please forgive me if this is a naive question... Thanks in advance for any advice!

    To configure the FTP server in Tiger requires creating and editing certain files using the terminal application. So if you have no prior UNIX or command line experience you may find this tricky and you would need to read the man file for ftpd.
    So I would suggest you try out PureFTP manager which is a front end application for an alternative FTP server.
    I have used this Application and found it quite straightforward to use.

  • Questions (warning: Newbie!)

    Hey folks, hope all of you all can overlook the fact that I am indeed a noob. Here recently I've gotten fed up with my PC (viruses, security issues, slowdowns, etc.) so I've decided that I'm going to make the move to Mac. I've decided that I'm going to get a MacBook because I need a notebook and the Pro is out of my price range. I've got a few questions (some stupid) that I would greatly appreciate if any of you could answer.
    1.)How is the battery life on MacBooks? I'll be in Europe for five weeks over the summer, and don't want to be constantly charging.
    2.)I've heard that Macs tend to run non-native software very slowly, true?
    3.)I have a copy of MS Office 2003 (for PC) will it be possible for me to install this on my Mac or will I have to purchase the office for Mac edition?
    4.)Are documents created in Office for Mac able to be read on a PC as well (and vice-versa)?
    5.)Is a Mac able to connect to a wireless network that uses a PC for a gateway?
    6.)(And finally!) Is there a slot on the Macbook itself for the included remote? I couldn't find one in the gallery.
    Thanks to any and all of you kind folks!

    1. Battery for me lasts an average of about 4 hours.
    2. Non-native software runs slowly only if you don't have enough ram. I recommend at least 1GB. I run Power PC programs all the time about as fast as native.
    3. Well, not easily. There is a program out called CrossOver Mac that will run the software, but you have to pay for it, and the software runs much more slowly than the Mac version. I would recommend buying the Mac version, especially when they come out with the universal version Office for Mac 2008.
    4. All office documents are cross compatable. The only exception, and this is temporary, are the XML documents created in Office 2007 for PC's.
    5. Yes. You'll find that this is quite often the case with Macs. They can use everything PC, but PC's are mostly non-compatable with Mac file formats etc.
    6. No, no slot. Get some duct tape.

  • Oracle/VB question - same newbie different question.

    Hi,
    I've just learned the magic that is getting VB to call stored procedures in Oracle - but now I have a question.
    I have a procedure that runs through a table, this is the loop part :
    loop
    fetch staff_c into surname_str, first_str, salary_str;
    exit when staff_c%notfound;
    dbms_output.put_line('data ' || surname_str || ', ' || first_str || ' - ' || salary_str);
    end loop;
    close staff_c;
    so my question is simply this, I'm using the following VB code to access a stored procedure which is passing a param in, and a param out -
    Dim cmd As ADODB.Command
    Dim conn As ADODB.Connection
    Dim param As ADODB.Parameter
    Set conn = New ADODB.Connection
    conn.Open "dsn=PaulsRescueDB", "x", "y"
    Set cmd = New ADODB.Command
    cmd.ActiveConnection = conn
    cmd.CommandType = adCmdStoredProc
    cmd.CommandText = "lang_count"
    Set param = cmd.CreateParameter("@p_in", adVarChar, adParamInput, 10, "english")
    cmd.Parameters.Append param
    cmd.Execute
    MsgBox cmd.Parameters(1).Value
    conn.Close
    what do I need to do in order to be able to treat the result of the stored procedure as a recordset - or am I mis-understanding something?
    Thanks in advance,
    Ed.

    Just in case anyone else out there was interested here's a brief summary of the solution.
    First lets look at the stored procedure as this is where the first and most important point is to be seen:
    create or replace package types
    as
    type cursorType is ref cursor;
    end;
    so we're creating a cursor type variable called cursortype, this is then used in the following code:
    create or replace procedure getemps( p_in in varchar, p_cursor in out ref cursor
    as
    begin
    open p_cursor for select surname, firstname
    from staff
    where initcap(p_in) = surname;
    end;
    It should be noted that a cursor is effectively an area of memory specific to your session that stores a result set, the cursor is treated as a variable/object.
    In the case of the above code the cursor contains the result of the select statement.
    You will also notice that the code opens the cursor with the contents of the select (this is because whenever you create an object it is null - unless you give it an initial value).
    The variable P_In is a varchar (when defining a procedure you do not specify the size of an int or varchar) and p_cursor is the returned data.
    I do not know why p_cursor is both in and out, out alone would have been the obvious choice.
    So we now have a stored procedure that takes a parameter to pass to a select statement, does a search and then returns a resultset (cursor).
    Now to answer the original question, how do you use this in VB?
    The code below illustrates (ADO):
    Dim cmd As ADODB.Command
    Dim conn As ADODB.Connection
    Dim param As ADODB.Parameter
    Dim rs As ADODB.Recordset
    Set conn = New ADODB.Connection
    conn.Open "dsn=PaulsRescueDB", "x", "y"
    Set cmd = New ADODB.Command
    cmd.ActiveConnection = conn
    cmd.CommandType = adCmdStoredProc
    cmd.CommandText = "getemps"
    Set param = cmd.CreateParameter("@p_in", adVarChar, adParamInput, 10, "foghorn")
    cmd.Parameters.Append param
    Set rs = cmd.Execute
    While Not rs.EOF
    Debug.Print (rs.Fields(1).Value & " " & rs.Fields(0).Value)
    rs.MoveNext
    Wend
    conn.Close
    As you can see I am manually creating an ADODB object, specifying that the commandtype is a stored procedure and then appending a parameter to the command text.
    You will also notice that although the cursor is the second parameter in the stored procedure I do not specify it directly but rather assign the ADO recordset object as the result of the ADO command execution.
    Once I've done this I merely use the recordset as a normal recordset object.
    CREDITS:
    The stored procedure is based on the one supplied by Jens Link in the previous post.
    The VB is a hijacked piece of ASP code modfied for VB.
    If this helps anyone else out there besides me then I'm happy to have been able to give something back to the community that has helped me.
    Ed.

  • Question from newbie J2ME - USB - Joystick...

    Hi,
    Forgive my possibly naive question since I am new to J2ME.
    Is it possible to connect an external device to a cell-phone's USB device and have a Java J2ME program communicate with the external device by sending/recieving USB commands/data?
    For example, can I connect a joystick that works using USB to a cell phone and play a J2ME game using a joystick?
    Thanks!

    the code you provided does not set the command listener for Disclaimer screen.
    If the listener is not set anywhere else, that might be the reason for NPE indeed.
    BTW, given design of the class, I'd add a line right after addCommand looking like:
    setCommandListener(this);

  • Two questions from newbie (just got my Zen Micr

    Hi, just got my Zen Micro after reading up on lots of players. Two quick questions if i may:-
    . Why the difference in keyboard icons? I notice on some that the 'back' button actually has the word 'back' written on it whereas others only have the arrow.
    2. After i've charged the player (for 5 hours minimum on first charge?) should i immediately update with the two firmware downloads before adding songs?
    Thanks in advance
    Jaff

    jaf089:
    . The face plate has changed, presumably for international markets where people don't speak English.
    2. The player will be charged in a maximum of 4 hours. The way to tell its charged is once the charging icon and glow stop, wait another 30 minutes for the final slow charge, then it will be ready.
    You don't need to update with two different firmware updates, you can go straight to an update without one beforehand.
    The .0.03 update fixes a battery charging bug, if you don't have this already, but allows the player to stay accessible with MediaSource.
    The v2 updates give the player MTP access (driverless access with Windows XP and Windows Media Player 0). Be warned though, some people have had stability problems with both the connection and software after this upgrade.

  • Few simple questions from newbie

    I'm new to Java, but i've worked a lot with action script... it didn't help a lot :) Here are my few beginner questions:
    What does: public, static, abstract, void... and other things mean in front of the class name?
    How can i call variables from another classes: if i have one class that does one thing and stores the result in a variable, how can i use that variable from a different class?
    How can i call the input window to enter the value for variable? I've tried with importing "io.inputstream" library, and used the "extend" thing, but i still cant call the input window?

    I came to Java from ActionScript too, and I must say having ActionScript as your first programming language does NOT make it easy to learn other languages. I was incredibly lost when starting with Java.
    What does: public, static, abstract, void... and
    other things mean in front of the class name?You'll find all that in the Java Tutorial
    How can i call variables from another classes: if i
    have one class that does one thing and stores the
    result in a variable, how can i use that variable
    from a different class?To use the variable from another class, you need to make a call to the class. Let's say you're in ClassB; you would make a call to a ClassA variable by doing something such as:
    ClassA.myVar.myMethod();
    How can i call the input window to enter the value
    for variable? I've tried with importing
    "io.inputstream" library, and used the "extend"
    thing, but i still cant call the input window?I recommend reading the tutorial before you try anything like that.

  • A really stupid question from newbie...

    hello all,
    i am very new to java and i am trying to build a j2ee application...
    rite now....i need to let my app communicate w/ an outside program thru' XML..
    i had just learnt many thing about java w/ xml and i decided to use the XMLEncoder... it seems quite simple to use...BUT i have no idea on how to send/receive these XML files...i had thought of using socket connection, but i just found out that an EJB wouldn't allow socket networking... i bet this must be quite a stupid question coz i found nowhere teaching me this...=P
    if u know about this, pls point me to some relevant docs / sites....i am anxious to learn about it...
    thx so much,
    karloogunna~

    hello maesj, rune, and others,
    thx alot for your advice...
    and here's the environment i am working in:
    OS: w2k
    JDK: 1.4.1.01
    j2ee: 1.3.1
    jboss: 3.0.2
    i am using flash as my UI, so i need communication
    between the j2ee app and flash.
    the data transfer involves a number of arrays of
    objects (each object w/ a list of attributes...) so, i
    think using XML as data-exchange is quite suitable (am
    i wrong on this??)I don't know the first thing about Flash, but using XML as a means for exchanging data seams like a good idea, for the scenario you described.
    >
    and i am reading about the message-driven beans, i see
    that they got a function onMessage() from where i can
    get the XML strings (?), but i don't know how i can
    feed these strings into this JMS from flash...do i
    need to write a small java program on the client
    side?I haven't that much experience with Message Driven Beans. What I do know is that they employ the Java Messaging Service (JMS). If you write a small client appplication with JMS support... you might be close.
    >
    also, i am not sure if i can send out XML strings
    through the message-driven beans, i am reading on the
    JMS...it got the MessageProducer, MessageConsumer,
    MessageListener, and MessageSelector....should i be
    using this? or can i use this together with the
    message-driven beans??
    In a Messaging system you will need message producers, and message consumers. To enable two-way communication, you can setup both the EJB and the client to handle both. When a message arrives at the consumer (or subscriber if you like), the JMS Service invokes the onMessage method. So you should implement your logic in the onMessage method, for example inspect the XML content, and act upon its content.
    i am very sorry for my disorganized questions...(i
    used to do low-level programming =P)
    and really thank you for your advice!!!!
    No problem, the amount of information to read can be quite overwhelming. Using JMS is just a suggestion, and might be considered overkill for your application. If you're using an IDE, like Sun ONE, creating a message driven bean is easy, and can be tried out, without too much hours passing.
    Kind Regards,
    Rune Bj�rnstad.

  • Fast User Switching Question from newbie

    Hi
    This is probably a simple question, so I apologize in advance...
    I was looking around in system preferences and was customizing a few settings. Prior to my changing "something" I had my user name in the title bar (upper right) and I could switch to my other account via a pull down menu. My user name is no longer in the title bar and it seems that the only way I can switch accounts now is by using the Shift-Cmd-Q option now.
    How do I get the user name back in the title bar so I can switch accounts like I used to do?
    Thanks
    RIch

    Found it by searching, apparently a fairly common prob. It works now.

  • Pretty simple but annoying question for newbie

    when opening form is there a way to automatically display the
    record rather than having to hit F8.
    also....
    is there a way to navigate through records using PL/SQL rather
    than using the buttons on the tool bar at the top or form
    runtime.
    thanks in advance

    This is probably in the wrong forum. ;)
    Anyway, here's my suggestions for your two queries:
    Q1) Add a WHEN-NEW-FORM-INSTANCE trigger containing the
    following statement:
    EXECUTE_QUERY ;
    Q2) Use the up and down arrow keys - they navigate between the
    previous and next records respectively.
    HTH

  • Selection/layer question for newbie

    New user attempting to select image from one photo for layering to another.  Can select using tools without trouble but unable to understand how to use only the selected portion from one photo to overlay on background layer.  Would appreciate help from experienced users.  Thanks

    Let us say that you have pictures A & B
    Open both pictures.
    Make a selection with one of the tools on A. You should see "marching ants" around the selection
    Go to Edit>copy. This will put the selection on the clipboard
    Open picture B, go to Edit>paste. Now you should have the selection on its own layer on B
    Access the move tool, position the selection, and you can resize it with the corner handles as well

Maybe you are looking for

  • Cinema display MagSafe

    I have just connected a new 27" Cinema Display to my MacBook Pro. All is working very well. However I have a question. When I remove my MagSafe connector, coming from my Cinema Display, while the computer is running, it immediately goes to sleep. Is

  • GE70 2PE Apache Pro - Bluetooth not fully functional

    Hi. I just bought the laptop mentioned in the subject line and I have not been able to get Bluetooth to work fully. Everything shows up normally and correctly in the Device Manager and the System Tray, but connecting to my iPhone sometimes works and

  • Printer for GR

    HI, I see that printer is assigned in several places for GR output- OMJ3, MN21 and in the user defaults. Could you please let me know from where is the printer determined. Which one takes priority? Thanks Aparna

  • Best way to implement a simple read of multiple stings from a db

    Hello guys, I am trying to read a collection of countries (Strings) into a collection inside a Movie object. The countries reside in a separate DB table with a FK referencing the Movie. My questions: 1) What is the best way to implement this? Do I ne

  • Prove Seeded Application Account Passwords are Changed for Audit

    We have been asked by our external auditors for the following information: "Provide proof that the passwords for all seeded application users have been changed from the default password. (ie SYSADMIN, WIZARD, GUEST, AUTOINSTALL)" I ran the query sele