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.

Similar Messages

  • 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

  • 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

  • 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?

  • 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

  • What is I don't remember the questions when I first download a song on my device? What should I do?

    What if I don't remember my questions when I first buy a song on my device? What should I do?

    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    (98650)

  • 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".

  • 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.

  • 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

  • HT201303 I never set up any security questions for my Apple ID and I was asked on the app store to sign in and answer my security questions. I never made security questions in the first case. I can't purchase anything without them. What should I do?

    I never set up any security questions for my apple ID and I was asked on the app store to sign in and answer my security questions, I never made any in the first place and it came up with questions that I didn't know. I've already been in support and tried to reset them, but I have to answer the security questions in order to change them. Is there any way to find out what they are?

    From a Kappy  post
    The Best Alternatives for Security Questions and Rescue Mail
    1.  Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
    2.  Call Apple Support in your country: Customer Service: Contact Apple support.
    3.  Rescue email address and how to reset Apple ID security questions.
    An alternative to using the security questions is to use 2-step verification:
    Two-step verification FAQ Get answers to frequently asked questions about two-step verification for Apple ID.

  • Questions re buying first iPad and getting started fast--suggestions?

    I'm leaving for a trip out of the country in 3 days and have just learned that I'll have free reliable wi-fi where I'll be staying.  I don't want to take my laptop, so I'm considering buying my first iPad.
    I'm a middle-aged writer and strictly low-tech.  If I get it, I'll use it for downloading books to read on the plane, movies, email, and looking at newspapers once a day.  (I'll leave learning how to use the camera until later!)  Questions:
    How fast would it take to get up to speed on these basics?  I don't want to spend $$$ on something I won't use because I wasn't able to figure out how to do what I want before going to the airport on Friday. I'm afraid that if I go to my local Apple store, they'll just tell me "it's easy, you'll have no trouble"--when it's never as easy as that! 
    What should I get in addition to the iPad itself?  I assume I'll need a case to protect it and a headset for streaming movies if I want.
    Thanks so much for any good suggestions!

    What are all the differences between the iPad 3rd Gen and the iPad 2? Is the iPad 2 worth the cost savings?
    http://everymac.com/systems/apple/ipad/ipad-faq/differences-between-ipad-3rd-gen -2012-ipad-2-2011.html
    What are all the differences between the iPad 3rd Gen models? Which should I buy?
    http://everymac.com/systems/apple/ipad/ipad-faq/differences-between-ipad-3rd-gen -early-2012-models.html
    Should I Buy a New iPad? Or an iPad 2?
    http://www.maclife.com/article/blogs/should_i_buy_new_ipad_or_ipad_2
    iPad 3 vs iPad 2 vs iPad 1- Feature comparisons with iOS 5
    http://ipadhelp.com/ipad-help/ipad-3-vs-ipad-2/
    iPad Q&A
    http://www.everymac.com/systems/apple/ipad/ipad-faq/differences-between-ipad-3rd -gen-early-2012-models.html
    A Few Questions (and Answers) About the New iPad
    http://pogue.blogs.nytimes.com/2012/03/15/a-few-questions-and-answers-about-the-   new-ipad/?ref=personaltechemail&nl=technology&emc=edit_ct_20120315
    New iPad: A Polishing of the Old
    http://www.nytimes.com/2012/03/15/technology/personaltech/the-new-ipad-is-much-t he-same-only-better.html?nl=technology&emc=edit_ct_20120315
    iPad 1, 2 and New Specifications
    http://www.everymac.com/systems/apple/ipad/index-ipad-specs.html
    How much content will fit on my iPod or iPhone?
    http://support.apple.com/kb/HT1867
    If you think you may get an iPad 2:
    Refurbished iPad Prices
    http://store.apple.com/us/browse/home/specialdeals/ipad
    New 16GB iPad 2 Prices
    http://store.apple.com/us/browse/home/shop_ipad/family/ipad/select_ipad2
    You can download a complete iPad User Guide here: http://manuals.info.apple.com/en/ipad_user_guide.pdf
    Also, Good Instructions http://www.tcgeeks.com/how-to-use-ipad-2/
    Apple - iPad - Guided Tours
    http://www.apple.com/ipad/videos/
    Watch the videos see all the amazing iPad apps in action. Learn how to use FaceTime, Mail, Safari, Videos, Maps, iBooks, App Store, and more.
    How to - Articles & User Guides & Tutorials
    http://www.iphone-mac.com/index.php/Index/howto/id/4/type/select
    iPad How-Tos  http://ipod.about.com/lr/ipad_how-tos/903396/1/
    You can download this guide to your iPad.
    iPad User Guide for iOS 5
    http://itunes.apple.com/us/book/ipad-user-guide-for-ios-5/id470308101?mt=11
     Cheers, Tom

  • J2ee Connector basic questions

              Hi all,
              I have a few basic questions about j2ee technology and legacy systems.
              In the past year I have used Bea Jolt to "talk" with Tuxedo legacy code,now I
              read about weblogic j2ee Connector and I have the following question: they are
              2 technology in competition, or they can be collaborative ? I mean If I want to
              "talk" to legacy system I can choose between:
              1) "portable" solution (so I keep j2ee Connector)
              2) Vendor tecnology (Bea Jolt or Tuxedo connector)
              Please correct me if I'm wrong...I'm a bit confused on this topic....
              Thanks
              Francesco
              

    Hello folks, please share your experience working with the lotus notes connector.
    Thanks, M

  • Questions for my first pc with the msi neo2 fr motherboard

    my setup :
    intel e6750
    2048 corsair pc6400
    zalman 9700 led
    hdd 250 go seagate sata2
    msi8800gt
    i'm building my first pc with this mobo and i  have some questions  because i d'ont want to make mistakes
    what is the difference between the purple and the blue sata  connectors? witch is the correct one for my hdd? my os will be xp sp2 and i d'ont really understand if sata drivers will be needed for the installation of xp
    concerning the memory : everything must be plugged on the green slot or one on the green and one on the orange slot?
    thanks for you help

    What drummer_tom is pointing to is the Dual Channel config for RAMs.
    Slot 1 + 3 or Slot 2 + 4 or all 4 slots installed, will give you Dual Channel performance and capacity. A win-win situation.
    As for the Blue and Purple Sata connectors, the 4 purple SATA connectors are controlled by Intel ICH9R chipset and the 1 blue SATA connector is controlled by Marvell controller. Only the Intel controlled SATA ports are able to RAID.

  • Question from a first time iphone user

    I am picking up my very first iphone tomorrow. My question is this: I have tons of mp3's that were not purchased through itunes. Is there a way to put these mp3s on my iphone so I dont have to rebuy them from the itunes store?
    Thanks.

    Import them into iTunes and you can sync them onto your phone directly from there. No need to purchase again. I have done this with loads of CDs.

  • Migration from 2003 to 2008R2 - Questions from a first-timer

    How is everybody doing. 
    I'm managing for the very first time a WSUS server.
    Right now there's a WS2003x64 SP2 STD handling this role. The issue is that this server has gotten out of control: MMC crashes all the time due to different causes. For example: when I try to delete more or less 20 PCs it crashes, when I try to run the cleanup
    utility it also happens, when this occurs all the actions that were started don't happen and WSUS stays the same.
    This made me recommend the option of starting a new server (I've said to use a 2008R2 which I believe will have SP1 installed, don't know if it makes a difference here). Here's my thinking, I'd like to get any recommendation regarding these steps:
    1- Install OS and role (with IIS, WID and Report Viewer 2008): do the role automatically install all neccesary tools for report creation and PCs reporting to the WSUS? After that update WSUS to SP2.
    The server will use a different IP than the actual.
    2- Create all the neccesary Computer Groups: will use a couple of groups for testing and then split all servers and user computers in
    Critical (for servers), Download & Choose Install
    (for servers), Automatic Install (for servers) and Workstations
    (automatic install), Critical Workstations (DL & choose) and use client-side targeting to fill them.
    3- Apply GPOs on the OUs hosting each type of computers: here I have a question; can I have the same computer apply to two different WSUS? On my mind the computer status should be the same on both so it shouldn't be a problem.
    4- Choose the products and type of updates to syncronize.
    5- Start synchronization with Windows Update to retrieve available updates.
    And that should be it. Will this work? I guess I'm missing info here regarding implementation, let me know and I'll tell you what my plan is.
    Thanks.

    When I start synchronizing the server: which updates for approval will show? All the available ones on Windows Update catalog or only the ones that are missing on the computers/servers on our environment?
    The Windows Update Agent will flag any update that is Not Installed and could be installed as "Needed". That does not, however, mean that the update should be installed, or that it would be installed even if you approved it.
    Rule #1: Do not approve updates that are superseded. That will solve 90% of the issues right off the top.
    Rule #2: Do not approve updates that are not listed as "Needed". (You can approve them later if you want them available for future systems.)
    Rule #3: Consider approving updates in small to medium quantity batches. I suggest focusing on only Security Updates to start with. As the WSUS server downloads the updates, the clients will start to see these updates as available for installation. If you
    approve a large number of updates, the download may take several days. Invariably this results in a client installing small batches of updates over several days, which has a unique tendency to totally annoy the person trying to use the computer to do real
    work.
    Regarding WSUS functionality: When I approve an update and it installs automatically due to GPO setting the 4th option. Now I have to uninstall it because it crashes an application being used in the company.
    This can be a real problem -- which is why the most important part of patch management is TEST TEST TEST. Identify a PILOT group of highly-trusted and aware users for doing your initial deployment. If they don't encounter any issues in 48-72 hours, then
    it's appropriate to unleash the updates on the rest of the organization.
    When Automatic Updates searches again for new patches, will WSUS push and install the same update again?
    Well, that depends. If you identify an update that is defective, the very first thing you should do is decline the update. This will prevent most future installations of the update. Clients that have already downloaded the update will still try to install
    it until they discover it has been declined. If the update is declined, and you then uninstall the update, the client will not attempt to install the update again because it does not have an approval. If you don't remove the approval and remove the update,
    the client will most definitely attempt to (re)install that update at the next opportunity.
    When does it stop pushing updates? Can I configure that?
    When you remove the approval for installation via the WSUS console.
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

Maybe you are looking for

  • Interfaces in ABAP

    Can any one tell me how to handle interfaces in ABAP. i would like to know what r all methodology  or technology we can use like RFC,IDOC,BAPI,ALE,BDC. Thanks in advance

  • Question about returning old hubs etc. to BT

    Sorry if this isn't quite the right place to post this message, but I'm not sure where else to do so. I have a number of old BT hubs and hub phones that I want to dispose of. I'm aware that I can request kit return bags from BT but given the quite si

  • Crystal reports 2008 and excel

    Hi I am designing a quick report which uses excel as the data source. In order to get the correct data I want to link to the excel data file but from a known line (ROW) onwards in the file. This is because the first lines in the excel file are not re

  • Vector Shapes Made With Previous Settings

    In Illustrator, for years there has been a feature where each new shape I create automatically takes on the stroke/fill settings of the last shape I created. This makes sense because it saves time, and the assumption is that if I've drawn a bunch of

  • HT1937 How to unlock iPhone which I received from the Apple Store?

    I used to live in Europe (Switzerland) which is where I initially purchased an iPhone under two year contract via Sunrise.  When I moved back to the US, I was unable to unlock this phone and the Apple Store where I lived swapped out my phone and repl