First two examples of  "my first cup of Java"

I could compile and run the first example "HelloWorldApp" with the JDK 1.5.0 Version from the java-sun pages. And I could compile and run the second but only with the appletviewer. But my problem is, that I couldn't start the Hello.html file in my browser. I have Windows XP running on a board with a 1,30 MHz AMD Duron Processor. And I have a Microsoft browser with the Version 6.026. Anyone can help?

Check these "help" items from http://www.java.com
If they don't resolve the problem, there are quite a few more helps and FAQs at that Sun site, do some looking around., and use the site search.
http://java.com/en/download/help/enable_browser.jsp
http://java.com/en/download/help/javaconsole.jsp
http://java.com/en/download/help/enable_panel.jsp
http://java.com/en/download/help/testvm.jsp
http://java.com/en/download/help/jvm_applet_issue.jsp
You can also use the forum search here to match up your symptoms and settings with posts in other threads.
hth

Similar Messages

  • J2EE 5.0 questions esp. re: "First Cup of Java"

    Ok So I downloaded the latest "First Cup of Java".
    I have Win XP Home. (Not professional).
    I can't seem to find J2EE 5.0
    I see SDK 5.0, and I have Net Beans 5.0. I downloaded the J2EE SDK, not the whole package. (B/C i don't have xp pro).
    Can anyone help me re: this? I can't use the @ headers b/c supposedly i dont have EE 5.0.
    -a little confused.

    You don't need EE. That's the Enterprise Edition. It's for doing more advanced, complex things than you'll be ready for for a while.
    J2SE 5.0 SDK is what you want--should be spelled out in the "First Cup" stuff.
    When you say you "can't use the @ headers," can you be more specifc? Paste in the exact code you created and what you did to compile it, and exactly what error message you got.
    When you post code, please use[code] and [/code] tags as described in Formatting tips on the message entry page. It makes it much easier to read.
    Does First Cup use NetBeans? I thought it use the command line. Follow its instructions exactly. Don't even try to use NetBeans yet.

  • First Cup of Java problems

    Hi, i've been trying to learn Java2, I bought a book-Java2 a beginners guide, and that is how I found this site, they told me to download the JDK, I've ended up with j2sdk 1.4.0 it is located c:\j2sdk1.4.0 I've tried the first cup of java tutorial, and am having problems, when compiling-javac HelloWorldApp.java I get 'bad command or filename' so then I enter C:\j2sdk1.4.0\bin\javac HelloWorldApp.java and then I'm told that the program has performed an illegal operation and am kicked out. I tried to update the path variable, but don't seem to have any luck there either, some help or suggestions would be appreciated, I'm sure I can learn this stuff, at least I hope I can!!!!!
    :)Ang

    Does it say command not found?If it does, try changing directory to c:\j2sdk1.4.0\bin and agan typing javac and this time it should tell you the basic options for running javac.<<Doesn't say command not found, says 'Bad command or filename', then I tried c:\j2sdk1.4.0\bin and I get 'bad command or filename' again.......then I tried c:\j2sdk1.4.0\bin\javac and I get 'this program has performed an illegal operation' and am booted out...Is there some sort of setting that needs to be changed? I'm using windows 98. Thankyou for your help. Ang

  • Can't run DukesAgeResource examples (Your First Cup)

    Hello, I believe I have found a possible issue in the "Your First Cup: An Introduction to the JavaTM EE Platform", and wonder if it relates to the fact that I cannot manage to run the example. At page 21, step 12, is states "In the REST Resources Configuration dialog, uncheck Add Jersey Library and click OK.". However, after clicking Finish (Step 11) no such a dialog is displayed, instead, NetBeans shows the DukesAgeResource.java file right away. Once I have completed entering the example and try to run it, I get this error message on the browser
    HTTP Status 404 -
    type Status report
    message
    descriptionThe requested resource () is not available.
    GlassFish Server Open Source Edition 3.1.2.2
    I deleted my project and files and tried again half a dozen times, with the same result.
    I am starting out with Java EE, any clue about what I may be doing wrong? May be the issue is related to the discrepancy on the "Your First Cup" tutorial?
    Note that the ready-made example that comes packaged with NetBeans runs fine.
    Edited by: 966753 on Oct 21, 2012 6:25 AM

    Fanta wrote:
    Still, I believe I had followed all steps in the tutorial carefully.That's the sh1t with tutorials - they don't teach you anything, they just show you how to do stuff. So they can also show you how to do stuff badly and you'd assume it to be truth.
    Get a good book and begin by understanding it all, not by learning "what code to write".

  • How/where can i find "user" entity from first cup tutorial in the database

    within the first cup java ee tutorial a user entity is crated:
    @Entity
    public class FirstcupUser implements Serializable { ...in some other code the user is created and inserted?:
    @PersistenceContext
        private EntityManager em;
    FirstcupUser user = new FirstcupUser(date);
            em.persist(user);the question is how or where in the database(i don't know the database name, the table name should be user?) i can find the inserted users? within net beans in "services" i can see a db server with a "sample" database - this seems to be a preinstalled example db. but where can i find the db created by the web app i wrote?
    thx in advance

    Press Option key and select Go > Library in the menu bar. To show that folder, open Terminal and copy:
    chflags nohidden ~/Library

  • First Cup Problem

    Hi Guys,
    I'm moving to a J2EE team soon so thought I would give myself a bit of a headstart by taking the first cup tutorial. I downloaded the Netbeans 6.8 IDE with Glassfish 3 on my mac, which will use Safari as the browser.
    I've followed all the steps and got the final part, But when I deploy I get a blank page in my browser, it seems to understand the title bar as that displays correctly. But all of the content within the form is totally ignored.
    Below is a copy of my greeting.xhtml:-
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:fc="http://java.sun.com/jsf/composite/components">
    <head>
    <title>Firstcup Greeting Page</title>
    </head>
    <body>
    <h:form>
    <h2>
    <h:outputText value="#{bundle.Welcome}"/>
    </h2>
    <h:outputText value="#{bundle.DukeIs} "/>
    <h:outputText value="#{DukesBDay.age} #{bundle.YearsOldToday}"/>
    <p/>
    <h:outputText value="#{bundle.Instructions}"/>
    <p/>
    <h:outputText value="#{bundle.YourBD} "/>
    <fc:inputDate id="userBirthday" date="#{DukesBDay.yourBD}" />
    <h:outputText value=" #{bundle.Pattern}"/>
    <p/>
    <h:commandButton value="#{bundle.Submit}" action="#{DukesBDay.processBirthday}"/>
    <p/>
    <h:message for="userBirthday" style="color:red"/>
    </h:form>
    </body>
    </html>
    It seems to me that Safari is having trouble with the xhtml I am serving? Any ideas on how to combat this issue or anything I have done incorrectly? Although there are no errors on build, just the xhtml code doesn't display
    Thanks in advance,
    Mitch

    ...As for the suggestion to ditch NetBeans and use Ant, I mean really, why don't we just ditch the high level
    languages and go back to machine code and command lines.well if you're going to professionally work with Java EE, you may eventually have to reconsider that attitude. Thing is, sometimes there's simply no other choice but using command line tools. I mean, in commercial development not in toy projects from tutorials.
    Oh and sticking with IDE can certainly lower chances to get an answer at forums like these. Just think of it...
      Hello I am using Netlipse IDE version 6.6.6. I have Habracadabra setting selected in Mumbo-Jumbo config dialog...Do you expect reader to install your version of your IDE and learn about your settings - just to answer your question?
    Now, read another question (like yours) from another guy (like you)...
      ...using Ecbeans IDE version 7.7.7 with Humpty-Dumpty setting selected in Ooby-Dooby config dialog...Would you (yes, you) install his version of his IDE and learn about his settings - just to answer his question?

  • My first program in Java

    After I compile my first application using javac Welcome1.java
    when I try to run the pplication using java Welcome1
    I get this message
    Exception in thread "main" java.lang.NoClassDefFoundError: Welcome1
    Please if somebody can help me:
    This is my source code:
    // Fig. 2.1 Welcome1.java
    // A first program in Java.
         public class Welcome1 {
         // main method begins execution of Java application
         public static void main ( String args[] )
              System.out.println( "Welcome to Java Programming!" );
         } // end method main
    }     // end class Welcome1
    Thank you

    Try this
    go to c:\edit autoexec.bat
    type these lines
    set path=c:\j2sdk1.4.0\bin; // check the java folder name in c:\
    set classpath=c:\%classpath%;.;
    save and close DOS
    restart PC,
    now try the example
    Hope it helps
    Uma
    http://www.javagalaxy.com

  • How do i create two Examples in Parallel operation

    Cont Acq&Graph Voltage-Ext Clk.vi
    Measure Angular Position.vi
    How do i make these two example program in a Parallel execution mode?
    Joe
    Using Ver. 8.0

    I done this in the following way.
    Encoder output is connected to PFI0 and CTR0_SOURCE.
    AI is getting triggered by PFI0 and  Counter Input is configured for Counter Edge.
    Once this over this datas are logging into a file.
    Problem is... as per the flow once i finished the loop i.e pulse count *0.144( which is the angle for each pulse, because i am using 2500PPR Encoder) reaches 70, pulse count will be 486 and the same time if you check the file , we wont have 486 datas in it, we will missing some 50-100 data on that.
    this encoder movement is manual and speed varies always.
    this missing data in file will happen only if the speed of encoder movement increased.
    can we make this independent  of speed ???
    pls refer the attached file for program flow.
    Joe
    Using Ver. 8.0
    Attachments:
    vi.JPG ‏223 KB

  • Can Forte pour me a second cup of Java ?

    Iv'e had my first cup.
    I got the impression that Forte would simplify code writing so I installed it, skipped the iPlanet stuff.
    Q1. After unzipping the main Forte download, 3 files are still zipped in, C:\J2SDK_Forte\forte4j\docs should I unzip them to the same folder ?
    Q2. First time I ran forte it worked ok, now it takes 4mins to activate, doesn't respond, hangs up.
    Any clues ?
    Please don't just say unzip & install iPlanet.

    Forte does not need iPlanet. I have been using Forte without iPlanet for several months.
    However, there is an opening screen that comes up each time, until you turn options-> web services off. There are instructions on the screen that asks you "where is iplanet". Follow them. If you disable the opening screen, without telling Forte that you don't care about iplanet it tends to hang.
    The files in the docs directory are documentation of features that are not always used. Unzip them or not as you find useful.

  • Please ..give me some example APDU for writing data to java card

    morning everybody .. :)
    I need some example APDUs for writing data to java card. (CLA || INS || P1 || P2 etc)..
    please..thank for your attention .. god blessing u.

    Hi,
    did you check some articles about JavaCards:
    [Understanding Java Card 2.0|http://www.javaworld.com/cgi-bin/mailto/x_java.cgi?pagetosend=/export/home/httpd/javaworld/javaworld/jw-03-1998/jw-03-javadev.html&pagename=/javaworld/jw-03-1998/jw-03-javadev.html&pageurl=http://www.javaworld.com/javaworld/jw-03-1998/jw-03-javadev.html&site=jw_core]
    [How to write a Java Card applet: A developer's guide|http://www.javaworld.com/cgi-bin/mailto/x_java.cgi?pagetosend=/export/home/httpd/javaworld/javaworld/jw-07-1999/jw-07-javacard.html&pagename=/javaworld/jw-07-1999/jw-07-javacard.html&pageurl=http://www.javaworld.com/javaworld/jw-07-1999/jw-07-javacard.html&site=jw_core]
    Hope it helps,
    Tex

  • Is anyone know how to run the examples in 3d user interfaces with java 3d

    hi dear ,
    I am trying to run the examples in 3d user interfaces with java 3d.
    I hope i can load the library in jcreator. but the libarary for this book are classes files , it do not have jar file for it . the jcreator do not read these classes . i do not know why ? i am wonder if there any one run these code before can give me some idear .
    thanks so much .
    the code u can get from this link.
    http://www.manning.com/books/barrilleaux/source
    thank you for u to have a look for me .
    regards
    xiaocui

    <h2>{color:red}CROSS POSTED{color}</h2>
    [t-5289810]
    Cross posting is rude.
    db

  • My first step in Java, please help me.

    I've just installed J2SDK1.4.0_03 and I'm reading the first pages of the Java tutorial.
    I've created a work folder : C:\Java
    I'm working with an msdos session of windows 2000
    I've created my first example class, prthello.java with NotePad :
    class prthello{
    public static void main(String args[]) {
    System.out.println("Hello World!");
    I've successful compilated it (javac prthello.java) and generated the prthello.class
    I've tried to execute it (java prthello) but it doesn't work and i receive the following message :
    Exception in thread "main" java.lang.NoClassDefFoundError: prthello
    The path should be correct (C:\Programmi\j2sdk1.4.0_03\bin) ,
    any suggestions would be appreciate.
    Thanking in Advance
    Andrea Giussani
    Milano, Italy

    Thank you for your suggestions, but i have already checked.
    The path is ok, i've installed jsdk under folder "programmi" and the path is :
    C:\>set path
    Path=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\PROGRA~1\IBM\CLIENT~1;
    C:\PROGRA~1\IBM\CLIENT~1\Shared;C:\PROGRA~1\IBM\CLIENT~1\Emulator;C:\Programmi\F
    ile comuni\Autodesk Shared\;C:\Programmi\j2sdk1.4.0_03\bin
    PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
    prthello.java and prthello.class are in the same folder (C:\java) where i executed javac with success and java with the error above mentioned.
    Any other suggestions ? Should I reinstall the JSDK ?
    Thanking in advance,
    Andrea Giussani

  • My first real life java project is going horribly wrong plz help

    my family has a marina and i said i can make a program to help my dad keep track of the boats and rentals etc. but the problem im having trouble im relatively new i have only been doing java for 3 weeks and its hard. My dad gave me an outline for the project. this is what i have so far.
    The File menu contains two items in addition to the Exit item from the JCreator template: Open and Save. The main tab will have other tabs added later.
    Step 2: Design and implement the Boat class:
    The Boat class describes a boat owned by the marina. Each boat has a name, a daily rental price and is moored in a slip at the marina. The marina need to keep track of each boat's status: 0 - available, 1 - reserved and 2 - rented. Slips are numbered from 1 to 6 right now, but the owners are thinking of adding more slips as their business grows. In designing this class, consider how the class will be used within the project. Try to think of all possible instance variables and methods your class might need.
    Review Topics:
    Creating classes: Instance variable, Get and Set Methods
    Menus
    Tabbed Panes
    Step 3: Design and implement the Marina class
    The marina class is used to hold all the Boat objects. Since there is no imaginable limit to the number of boats the marina might one day own, the Marina class should use an ArrayList object to hold all the Boat objects. Also implement the Open and Save menu items.
    Review Topics:
    The ArrayList class
    Object Files ... writing, reading, the Serializable interface
    Using the FileDialog class.
    Step 4: Design and implement the Customer and CustomerList classes.
    Each Customer is a Person who wants to rent a Boat. For identification purposes, each Customer is assigned a Customer number. This String value is a 6-digit number generated sequentially. That is, the first customer will be 000001, the second 000002, and so on. The Customer class must keep track of the Customer's Boat choices (past and present).
    The CustomerList class is a dynamic list of Customer objects. Customers come and go, so this class must have functionality that allows for the addition of new customers, deletion of customers and the editing of customer information, including changing their Boat rental options. Create methods within the CustomerList class that will read data from and write data to a data file.
    Add a new tab to the GUI allowing the user to enter a customer's first and last names, add these Customer objects to the CustomerList and save the Customer information on data files.
    i would prefer if you keep the code as simple as possible cause im new and i wont understand if you get all fancy.
    http://www.java-forums.org/new-java/8917-having-trouble-java-project.html you can find the attachment of the project files there.

    raakesh wrote:
    my family has a marina and i said i can make a program to help my dad keep track of the boats and rentals etc. but the problem im having trouble im relatively new i have only been doing java for 3 weeks and its hard.This is a real bad idea. The reason is that it's an enormous difference between a toy program and a professional product. You could get a version up and running in less than a week but it will be nowhere near what your dad envisioned. To meet even moderate expectations you'll have to put in at least 3-6 months fulltime. This is why bespoke software is so expensive. And even so there's a 90% chance the program will be dropped because your dad feels the manual system worked better. The only thing a project like this is likely to accomplish is to drive a wedge between you and your dad.
    I know you're bullshitting to get schoolwork help but still I want to warn others for this kind of projects. They're doomed.

  • Deploying my first web dynpro java application through NWDS 7.3 giving error

    hi all,
    i am new to webdynpro java. i am basically a xi consultant, but due to some work need to work on webdynpro java as well.
    i went through the blog Web Dynpro Tutorial: Hello World
    i am using NWDS 7.3
    i created web dynpro project as per above blog. on the last step, it says to deploy it on SAP system.
    now i have access to PI7.1 system only, though in our landscape, we have ECC system, EP system, BI system etc.
    i guess the above webpage is referring to getting it deployed on EP system - but i have access to only PI7.1 system - in NWDS 7.3 in window - preferences - SAP AS Java - i have added PI7.1 system and it is showing there.
    now on right-clicking web dynpro application, and selecting deploy new archive and run - it is not deploying and the web-page gives error 404 - not found. The requested resource does not exist.
    can the web dynpro application be deployed on PI7.1 system?
    pls suggest how to resolve this error. thanks.

    i have downloaded NWDS7.1 through this link
    https://nwds.sap.com/swdc/downloads/updates/netweaver/nwds/ce/
    used the first option - Download latest NWDS_platform.zip release
    the zip file got downloaded.
    on trying to install through IDEsetup.exe - now i am getting error in installation - The installer cannot run in the 32-bit sub-system on a 64-bit architecture.
    how to solve this error - i tried installing jdk-6u7-windows-x64.exe and jdk-6u18-windows-x64.exe - but still the error remains same.
    So how to install NWDS7.1 on my system? please tell. thanks.

  • The first quthor of java.lang.Object

    The biggest mystery for me in Java still exists as to who really coded the mother of all classes java.lang.Object.
    Here�s what the source of it says in JavaDocs
    * Class <code>Object</code> is the root of the class hierarchy.
    * Every class has <code>Object</code> as a superclass. All objects,
    * including arrays, implement the methods of this class.
    * @author unascribed
    * @version 1.61, 01/23/03
    * @see java.lang.Class
    * @since JDK1.0
    public class Object {

    See the annotation @author above, it says �unascribed� which means unknown. Any one who can solve this mystery for me and come up with the real author of this jni implementation class called �Object�
    I mean, the first one to code Object class...Please help me

    cross-post

Maybe you are looking for

  • Audiobook bookmarks no longer work?

    My iPod classic (2014 model) won't remember my place in audiobooks.  Always did before on my old (2009) iPod.  What happened?

  • Adobe Photoshop CS5 has stopped working (Win 7, 64 bit)

    I am trying to run Photoshop CS5 on Windows 7 64bit. Everytime I open the program, I get an error saying "Adobe Photoshop CS5 has stopped working", immediately after the splash screen goes away and the main gui opens. The only option on the error is

  • Loss of sound (notifications, phone calls, etc) after 1.3.1

    What I did: I was listening to NFL radio cast hooked up through an iHome with a 3.5mm cable.  I disconnected the cable and then closed the application.  Sound for the Notifications then was controlled solely by the volume for stuff like NFL radio or

  • Iphone 4 airplay problems

    Airplay will not work on my iphone 4. I'm trying to connect my iphone 4 to a set of speakers with airplay, but the option will simply not show up. I have the most updated firmware for both my speakers and my iphone. Airplay IS working from my Macbook

  • Enhancement for Transaction IW31

    Hi All,   Is there a userexit or BADI or Enhancement point to update the Planned cost or the Estimated cost in transaction IW31. Please let me know a way to change the planned cost or the extimated cost. Thanks, Rajesh.