From a complete beginner

I have been given a JAR file and a HTML document explaining the classes . I have extracted the files from the JAR and it is created a directory structure with a class file in
I now want to write a simple java program which will execute a method of the class what are the steps I should take? I have only written a "Hello World " program in java so a complete beginner
Can someone explain if I should of extracted the files from JAR and what are the steps I should do next are
Thanks

You don't need to extract the JAR. You can simply add the JAR to your classpath.
Example:javac -classpath .;<any additional jar files or directories> YourClassName.java
java -cp .;<any other directories or jars> YourClassName
Javapedia: Classpath
Setting the class path (Windows)
How Classes are Found
Additional Resources:
The Java&#153; Tutorial - A practical guide for programmers
Essentials, Part 1, Lesson 1: Compiling & Running a Simple Program
New to Java Center
How To Think Like A Computer Scientist
Introduction to Computer Science using Java
The Java Developers Almanac 1.4
JavaRanch: a friendly place for Java greenhorns
jGuru
Bruce Eckel's Thinking in Java
Joshua Bloch's Effective Java
Bert Bates and Kathy Sierra's Head First Java

Similar Messages

  • Which book is best for learning Lightroom 5 for a complete beginner?

    I'm an Aperture user and as everyone has heard the news, a lot of us are considering switching over. I went through the Apple pro-training aperture, logic, and FCP books and loved the format of those. I've been reviewing my options for LR5 books on Amazon and I see a couple, Kelby, Evening, and The Adobe Classroom in a book. I kind of like the classroom in a book format as it resembles the Apple book's format. Which book is best for learning LR5, from a complete beginner's perspective?

    I would avoid Kelby like the plague. I didn't like his book, I felt his chapters on the Library module were effectively useless and off the mark.
    I would start with the free e-book Lightroom 5 - Free Quick Start Guide PDF eBook | The Lightroom Queen
    I would also watch some videos at Products | Lightroom | Adobe TV

  • Someone please help a complete beginner with Enterprise Manager!

    Question moved from
    Someone please help a complete beginner with Enterprise Manager!
    Please be gentle with me, I'm absolutely new to all this. We don't have a proper DBA and I've been tasked with the role. There is no-one else in the company with oracle experience and we don't have any support. Until now I've just used enterprise manager to manage the database, but now I have a problem..
    We are using Windows Server 2003 and Oracle 10g. I (stupidly) installed some network monitoring software on our server (PRTG network monitor). I almost immediately uninstalled it and all components/registry settings, but it seems to have thrown something out regards the OEM web interface.
    We used to access the OEM GUI through http://<hostname>:5500/em, but after installing/uninstalling the network monitor software the OEM webpage would only stay up for a few minutes, before saying 'Internet Explorer cannot display the webpage'. Restarting the DBconsole in services fixed the problem, but again, only for a few minutes.
    Spent all day yesterday looking at logfiles (they didn't make much sense to me), but seemed to be saying access was denied to the server ('actively denied it'). Lots of googling led me to believe I needed to reconfigure OEM by dropping and recreating it using:
    emctl stop dbconsole
    emca -deconfig dbcontrol db
    emca -repos recreate
    during this process I was asked for various passwords and a port number? I didn't even know what to use as the port number but guessed it was 5500 ?!? (probably wrong). As it didn't work I used the default port number that I found somewhere on the web.
    However now I am even deeper in the **** as this didn't work either, (some error about listnener?) and I have now lost the DBConsole in windows services. Obviously the OEM web console doesn't work at all now
    I would be eternally grateful for some patient, beginners help here..I can post whatever log files are necessary - I just need to know what I'm supposed to be doing and where to start..
    We used to log on to the OEM as 'SYSTEM', but nowhere in the process does it seem to ask me for the password for that (its asked me for SYS and SYSMAN)
    It could be that I'm going about this completely wrong, but with only a days experience in all this its pretty hard to know what I'm doing really!
    As you can tell I'm in way over my head..I just need OEM web interface to work!
    Thanks in advance

    ok, thanks to helpful comments from other people in my initial thread (posted in general database forum), after rebuilding the console/repository I now have EM up and running. But there are more problems..
    Firstly I have an error at the very top of the screen:
    java.lang.Exception: Number of responses does not match queries
    Also, the 'Host CPU' and 'Active Sessions' are blank and say 'No Data Is Currently Available' beneath them
    my emagent.trc file contains this error, repeating with different thread IDs every 30 seconds...
    (error = 10061)
    2012-04-30 17:19:28 Thread-4376 ERROR pingManager: nmepm_pingReposURL: Cannot connect to http://hostname:5500/em/upload/: retStatus=-1
    2012-04-30 17:19:59 Thread-1448 WARN http: snmehl_connect: connect failed to (hostname:5500): No connection could be made because the target machine actively refused it.
    Help!

  • Complete Beginner who needs advice

    I am a complete beginner with idvd. My question is can I use idvd to create a dvd for crafting, i.e. I design backing papers, decoupage, templates, envelopes etc etc and I would like to create a dvd that runs smoothly so that when it opens anyone can see the selection of items as listed above then when they click on an option more options appear. I would also like them to be able to jump back and forth and be able to print what they see on screen. The other thing I would like to be able to add is colour changes, for them to change colours and maybe sizes of things, a bit like what you can do in Illustrator. I have been trying to find some software to do this and was told that Autoplay/run will work but only on a PC. Does anybody know if creating this dvd on idvd would be possible. If it is not possible can anyone suggest suitable software.

    These items are possible within iDvd:
    My question is can I use idvd to create a dvd for crafting, i.e. I design backing papers, decoupage, templates, envelopes etc etc and I would like to create a dvd that runs smoothly so that when it opens anyone can see the selection of items as listed above then when they click on an option more options appear. I would also like them to be able to jump back and forth
    However you cannot print directly from the dvd (with the exception of a pdf located within the dvd-rom contents area) unless one uses SnapZPro for Mac or another third party app to screen capture and print from there. (apple + shift + 4 won't work here unfortunately to screen capture and then print).
    The following you cannot do within iDvd alone:
    The other thing I would like to be able to add is colour changes, for them to change colours and maybe sizes of things, a bit like what you can do in Illustrator.
    Not sure what to suggest to you here in terms of an app that might address this. Even DvdSP (iDvd's big brother) will not meet all these needs. Let me think about it and if anything comes to mind I will certainly post back.
    Disclaimer: Apple does not necessarily endorse any suggestions, solutions, or third-party software / products that may be mentioned in this topic. Apple encourages you to first seek a solution at Apple Support. The following links are provided as is, with no guarantee of the effectiveness or reliability of the information. Apple does not guarantee that these links will be maintained or functional at any given time. Use the information above at your own discretion.
    Message was edited by: SDMacuser

  • How can I stop safari from auto completing url's on my iphone 4 and ipad2?

    How can I stop safari from auto completing url's on my iphone 4 and ipad2?  On both devices I have cleared history, I have gone into settings-safari-and cleared history and cleared cookies & data, tried turning my devices on and off and I also have private browsing turned on. Both devices are operating on iOS 5.  When I type in a url I don't want anything to show and auto complete.  Any suggestions?

    This indicates corrupt files.
    A restore should resolve.

  • How prevent movie from loading completely before playing?

    Hi,
    how do I prevent an swf from loading completely before
    starting to play in the browser? When simulating a download in the
    Flash application, several preload stages work perfectly, but not
    in the browser. Preload stages don't appear, instead it takes ages
    for the 3.5 mb file to completely load before displaying the first
    frame of the movie.
    I have tried inversing the load order in export settings and
    different flash versions, but just can't get it to work.
    Can someone help? Thank you!

    hi kglad
    I thought it should be that way; the point is that I don't
    want to add code that loads the entire movie before starting to
    play the first frame, but only a certain number of frames (i.e. 11
    out of 35, for example). I'm trying to do this with this code in
    the first frame:
    ifFrameLoaded (11) {
    gotoAndPlay("start");
    in the simulation, it works perfectly, but when uploading the
    movie and viewing it in html, the entire thing loads, and the
    preloader doesn't appear.
    Many thanks for your help.

  • Why do you make it almost impossible to communicate with you? Why do new customers I have to pay half the price I am paying since years? How can I change from cloud complete to just photoshop?

    Why do you make it almost impossible to communicate with you?
    Why do new customers have to pay half the price I am paying since years?
    How can I change from cloud complete to just photoshop?
    [email protected]

    Phone support | Orders, returns exchanges
    http://helpx.adobe.com/x-productkb/global/phone-support-orders.html
    Chat support - For the link below click the Still Need Help? option in the blue area at the bottom and choose the chat option...
    Creative Cloud support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html ( http://adobe.ly/19llvMN )
    Creative Cloud pricing and membership plans | Adobe Creative Cloud
    Manage your membership and payments | Creative Cloud
    https://helpx.adobe.com/x-productkb/policy-pricing/membership-subscription-troubleshooting -creative-cloud.html

  • Recover a single table from a complete rman

    Hi
    I need to restore a single table from a complete rman backup, but it seems like this backup is divided into datafiles and this table is allocated together with others.
    I use a library for make backups.
    Does anybody know how can I get this unique table's information from my rman backup?

    Hi
    Which version of Oracle are you using?
    If you are using 9i you must restore the database with another name and dann export/import the needed tables.
    If you are using10g you can try with the SQL-command: FLASHBACK TABLE
    Bye, Aron

  • Dispacting navigation events from creation complete.

    Why does this event work if it's triggered from a button (Changing a viewstack event)
    <<BUTTON CODE>>
    <mx:Button id="linkToReg"
                                   label="Need to Register?"
                                  click="clickToRegistrationHandler(event)"
                                   visible="{modelLocator.isNetworkAvailable &amp;&amp; modelLocator.adminId >0}"
                                   includeInLayout="{modelLocator.isNetworkAvailable &amp;&amp; modelLocator.adminId >0}"
                                   />
    <<FUNCTION FOR BUTTON>>
    protected function clickToRegistrationHandler(event:MouseEvent):void
    dispatchEvent(new NavigationEvent(NavigationEvent.NEED_REGISTER));
    But when I try to trigger the dispatchEvent from a completionComplete funtion it doesn't work?
    <<CREATION COMPLETE TRIGGER>>
    <views:LoginViewBase
        xmlns:fx="http://ns.adobe.com/mxml/2009"
        xmlns:s="library://ns.adobe.com/flex/spark"
        xmlns:mx="library://ns.adobe.com/flex/mx"
        xmlns:views="com.merceradvisors.views.*"
        width="100%"
        height="100%"
        creationComplete="loginviewbase1_creationCompleteHandler(event)"
        >
    <<CREATION COMPLETE FUNTION>>
    protected function loginviewbase1_creationCompleteHandler(event:FlexEvent):void
                    var sharedObj:SharedObject=SharedObject.getLocal("Login_Mercer")
                    // here checking if the variable sored exists in shared object
                    if(sharedObj.data.email!=undefined && sharedObj.data.password!="")
                        email.text=sharedObj.data.email;// adding the text value of the
                        password.text=sharedObj.data.password;// adding the text value of the login in the shared object
                    trace("Triggered Successfully1");
                    dispatchEvent(new NavigationEvent(NavigationEvent.NEED_REGISTER));
                    trace("Triggered Successfully2");
    This works just fine when triggered in a button and the viewstack changes, but when its programaticly triggered from creation complete it doesnt work.  Once I get this working I want to check a condition. if this then>>trigger this event
    <<CREATION COMPLETE FUNTION WITH CONDITION>>
    protected function loginviewbase1_creationCompleteHandler(event:FlexEvent):void
                    var sharedObj:SharedObject=SharedObject.getLocal("Login_Mercer")
                    // here checking if the variable sored exists in shared object
                    if(sharedObj.data.email!=undefined && sharedObj.data.password!="")
                        email.text=sharedObj.data.email;// adding the text value of the
                        password.text=sharedObj.data.password;// adding the text value of the login in the shared object
                    if(modelLocator.adminId == 0 )
                        dispatchEvent(new NavigationEvent(NavigationEvent.REGISTER_NEW));
                    else
                        dispatchEvent(new NavigationEvent(NavigationEvent.LOGOUT));

    Anyone?

  • How do I remove Completed items from the Completed Reminders List? The list is growing too long.

    How do I delete Completed items from the Completed Reminders List? The list is growing too long.

    The little box, next to the reminder on the reminder page.  Touch it, and it puts a check mark there, i suppose to mean completed.  Leave the app.  When you go back, the items are gone.  ( at least on mine...)

  • How to create a project/solution from a completed dtsx file?

    I have been working with the MSDN tutorial (with sql server 2008 R2) at
    https://msdn.microsoft.com/en-us/library/ms169917(v=sql.105).aspx
    and now I'm trying to work with one of the completed lessons (lesson1.dtsx).  I was able to open Lesson1.dtsx from BI by selecting the Open File option.  This opened up Lesson 1 in the designer with the Flow task and LookUp objects.  But there
    is nothing in the solution explorer, and 'Start Debugging' is grayed out in BI/Debug.   Is there a way I can create a project / solution from this completed dtsx?  How to accomplish that?
    Like in C# if I open up a .csproj file in VS(2012) I can run the project, and on closing -- VS will ask to save the solution .sln and VS creates the .sln for you.  Can BI do something like that with a .dtsx file?
    Rich P

    My previous effort didn't work -- with DimDate table.  If I knew what I was doing I am thinking I should be able to adapt the 2008 AdventworksDW to the tutorial.
    Rich P
    Did you read my last comment to your previous post?
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/3820ee30-4909-4fbc-870f-175bb9f959c7/why-is-the-lookup-object-in-the-flow-task-of-my-ssis-package-going-red-and-not-working-sql?forum=sqlintegrationservices
    Actually, the tutorial has misled you. It says that DimTime should be used that should be removed and correct steps should have been added.
    Cheers,
    Vaibhav Chaudhari
    [MCTS],
    [MCP]

  • Recreating the light sensor from the complete sensor template

    Hi, new to this board and a total newbie to LabView. Tried recreating the light sensor from the complete sensor template for use with similar functioning homebrew sensor. Turned out to be quite difficult. Anybody around here thats already done that or some similar sensor block that you could share as a template to examine and modify? If the original light sensor block would not be locked I would have started from that.
    I also wonder if ther is any way to get digital line on pin 6 to behave as digital line on pin 5 does with the "generate light" function (would be great for making a color sensor with to different colored LED:s as illuminationMessage Edited by PTP on 05-10-2007 03:11 PM

    More or less trying to do a copy of the original light sensor block included with the Mindstorms software by starting out with the complete sensor template in the LabView Tooolkit (I have the student version 7.1) Planning on adopting it for my own analog sensor application later on (using the light out on pin 5 for another on/off application). Can´t remiport the version in the Mindstorms software so I have to start out from the template. My application of cause works with the Mindstorms light sensor block too byt it would be cool to make it from complete sensor template with the toolkit using my own scaling algoritms etc
    Michel Gaspari has a version made from the simple sensor template here:
    http://www.extremenxt.com/cdssensor.html
    But I would like to get the terminals for scaling and logic termial with a cut of value into the block too

  • Remove email address from address complete on iPhone 4S

    Hi,
    I need help deleting outdated email addresses from address complete on my iPhone 4s.
    I recently upgraded from 3G and apparently email addresses that were previously used but not valid anymore are showing up on my new iPhone 4s.
    I've looked in my contact and none of those email addresses exisit.
    Please help!

    Unfortunately, the only way to get rid of the email address complete list is to restore the phone in iTunes without using a backup.  There's no way to edit or delete the list otherewise.

  • How to stop safari from auto completing url?

    Re: Safari v. 5.1
    OS: 10.6.8
    How can I stop Safari from auto-completing url entries when I begin typing or entering a url in the http box i.e. can I turn this feature off?
    Thanks,
    Henrik

    Unfortunaly, that's a problem.
    See this thread:  https://discussions.apple.com/thread/2456976?start=0&tstart=0
    You can provide feedback to Apple here.

  • Waking up the Mac from a complete power OFF with WOL not possible, ***

    I was told by AU applecare stuff that ALL Mac cannot be woke up from a complete power OFF. I asked the team at applecare because my mini server won't do a WOL.
    Is this for REAL?
    Can't I do WOL on Macs?
    What a horror! How is this possible  in this day and age? Macs are intel macs now, and it is just a matter of the network card/chip has this build in. A $200 PC can do this ages ago.
    It is huge environmental disaster if we cannot wake the Macs from power off remotely via LAN/WAN, and putting them to sleep when not needed.
    Can someone help brighten up my day by pointing me to some official documentation on this or you real experiences on waking up a Mac with WOL
    from a complete power OFF?

    Maybe necroposting here, but HRMUser is right. Many (most?) modern PCs support WOL from a powered-off (shutdown) state. PCs that support WOL usually have a BIOS setting that allows you to enable/disable it. The network interface itself is powered enough that it will "see" magic WOL packets. I regularly use this feature for PC administration. It's annoying / silly that Macs don't support WOL from power off.

Maybe you are looking for