Just Starting out with java packages

Hello,
I'm a beginner and I'm starting out with java packages.
I wrote two simple .java files, one test program and one containing a simple class.
Both files are compiling without errors but When I run the program I get an error NoClassDeffoundError.
I use the import <package> statement And I think I'm using the CLASSPATH variable correctly.
SET CLASSPATH=d:\nopol
path for the .java containing the test class is:
d:\nopol\utilities \myapp.
In the test file I use "import utilities.myapp.*.
I would be very happy if anyone could help me
Thanks beforehand
Nopol.

The test file should be in d:\nopol, if it's not a part of your package utilities.myapp. Everything should be compiled from d:\nopol, the test class with "javac ClassName.java" and the class in the package with "javac utilities/myapp/ClassName.java".
Your classpath seems fine for now, though. But yes, do add the period there, otherwise you could run into problems later.

Similar Messages

  • Starting out with Java client for Web Services

    Hi,
    I'm new to Web Services (but not Java in general). Just looking for some pointers to get me started in the right direction.
    My pressing need is to develop a Java client for a set of Web Services described through a WSDL.
    I've found the "Chapter 12: Building Web Services With JAX-RPC" section of the Web Services Tutorial. Could someone just confirm that this is the right tutorial for me to read for my puropse.
    Also I was wondering about available tools for this purpose.
    I was expecting that there would be a tool that could read a WSDL and generate client side stubs for it automatically. (Like how you can take a Remote interface and rmic it in RMI). Is there such a thing? Is it possible?
    Preferably an open source (free) tool. I use the Netbeans IDE so if anyone knows of anything that integrates with that, all the better. I had a look at their site but couldn't see anything.
    Thanks in advance for any tips anyone can provide.

    Hi,
    I'm new to Web Services (but not Java in general).
    Just looking for some pointers to get me started in
    the right direction.
    My pressing need is to develop a Java client for a set
    of Web Services described through a WSDL.
    I've found the "Chapter 12: Building Web Services
    With JAX-RPC" section of the Web Services Tutorial.
    Could someone just confirm that this is the right
    tutorial for me to read for my puropse.Yes, that's right. It manages to say very little in very many pages.
    Also I was wondering about available tools for this
    purpose.
    I was expecting that there would be a tool that could
    read a WSDL and generate client side stubs for it
    automatically. (Like how you can take a Remote
    interface and rmic it in RMI). Is there such a thing?
    Is it possible?This is exactly what the wscompile tool (distributed with the JWS SDK 1.3) does as one of its options. See http://java.sun.com/webservices/docs/1.1/tutorial/doc/JAXRPC6.html for more info.

  • Just starting out with calculations between fields

    I'd like to to include some text fields where numbers are entered, then a button is pressed, and the mathematical results of the fields are displayed.
    In Adobe Acrobat Pro 9 I opened Forms ... Start Form Wizard, and placed all the elements - three Numeric fields and a button. I want to add Javascript to the button to calculate the fields, but I can't see any way to add the script to the button. Can someone tell me what the steps are to add a script to the button? Should I be using something other than Form Wizard?
    These results (multiplication and division) should simply display in the Numeric field. They won't be saved anywhere. I have the Javascript already working on mobile devices and want to create a PDF version for those without smartphones.
    Thanks!

    The first thing you need to know is that Acrobat uses a completely different object model than a browser. For more information, see the Acrobat JavaScript documentation at: http://www.adobe.com/devnet/acrobat/javascript.html
    The result field can be set up with a custom Calculate script that automatically calculates the result, so the button is not necessary. Try the following as the custom Calculate script for the result field:
    (function () {
        // Get the field values, as numbers
        var v1 = +getField("spurGear").value;
        var v2 = +getField("pinionGear").value;
        // Set this field's value
        event.value = (v2 !== 0) ? v1 / v2 : "";
    If you really want to use the button, the code would be:
    // MouseUp script for button
    (function () {
        // Get the field values, as numbers
        var v1 = +getField("spurGear").value;
        var v2 = +getField("pinionGear").value;
        // Set this result field's value
        getField("result").value = (v2 !== 0) ? v1 / v2 : "";
    You can place these as document-level functions and call them, in which case the first one would be:
    function calcGearRatio() {
        // Get the field values, as numbers
        var v1 = +getField("spurGear").value;
        var v2 = +getField("pinionGear").value;
        // Set this field's value
        event.value = (v2 !== 0) ? v1 / v2 : "";
    and it would be called like this in the calculate event:
    calcGearRatio();

  • Ip nat pool no-overload prefix 22 (just starting out with the cisco training and wanted to know )

    Above is the command ip nat pool no  overload prefix 22
    Does anyone know what the prefix 22 does and why it is added.  I also and new at learning and currently studying and wanted to know any recommendations for taking the CCNA or CCNP and what online routers (emulators) can i play on to learn commands and prepare for exams

    Hi,
    It is just describing the prefix length for the network or Subnet Mask in general terms.
    Check this:-
    http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipaddr/command/ipaddr-cr-book/ipaddr-i3.html#wp6064781280
    Thanks and Regards,
    Vibhor Amrodia

  • Just starting out with extensions, is this possible?

    I have started researching the Adobe Creative Suite Extension Builder and I find that there is an overwhelming amount of information on this tool. I have an idea for extension that I want to build but I want to start by asking the community a question.
    Assuming this extension is for Flash Pro, Photoshop, or Illustrator, is it possible to obtain data from a layer that includes the positions (x,y) and dimensions (width,height) for each object in a layer?
    Gladly appreciate any help or advice you can give, thanks!

    Hey MSSDedalus,
    I looked through some of the class documentation and it seems that what I'm looking for is somewhat possible (at least using the Illustrator APIs, look at the PageItem class if interested). Would you happen to know where the documentation is for the Flash Pro CS6 API? I'm only able to find the JavaScript API for Flash Pro.
    Thanks!

  • Need an iphone for dev work - just starting out

    Hello
    I'm just starting out with iphone development. I already have another mobile service that I use for personal use so don't have the need for iphone personally. I just want to buy it for development work and will be using my WiFi network as the internet bone.
    I dont want to get into a contract with at&t for 2 yrs. Does that mean I will need to buy an iphone for the regular price? Or can I get one cheaper than usual just for dev work?
    All responses appreciated.

    thanks again Tamara.
    I googled a bit and found this post-
    http://alexking.org/blog/2007/07/02/iphone-without-service
    I wonder if this is indeed true.
    In any case, I'm strongly leaning towards the ipod touch. Does not having a GPS mean, location based apps won't work? So if I want to download an app that relies on my current location for e.g. to tell me whether my friends are closeby, such an app won't work? Hmm...in that case GPS seems to be necessary.

  • I am just starting out in graphic design and I wanted to know how to get more involved with either adobe and or graphic design? I am really very interested in working with adobe and graphic design more and becoming more involved with both!!

    I am just starting out in graphic design and I wanted to know how to get more involved with either adobe and or graphic design? I am really very interested in working with adobe and graphic design more and becoming more involved with both!!

    I have now recently downloaded 10.0.2 which is confusing in itself, as, as far as I can ascertain that is actually version 11, but I'm not even sure about that.
    Version 10.0.2 is the newest version and the successor to GarageBand '11 (version 6.0.5).
    The '11 is referring to the iLife '11 suit of multimedia application - the older GarageBand was a part of this bundle.
    Have a look at Edgar's graphical enhanced manuals, the explain very detailed how things work and why. You can buy them as iBooks from the iBook store or directly from the page:
    http://DingDingMusic.com/Manuals/

  • Starting out with ejb help

    hi,
    i'm starting out with ejb, know java and jsp servlets, and seem to be having trouble getting the first example running, i'm using Jboss_3.2.1.
    1. Where is the javax.ejb package? i have sdk 1.4.1, but don't see the package in there.
    2. Using JBoss where do i put the source and complied files? the book just shows the structure as:
    -classes
    -com
    -brainysoftware
    -ejb
    -meta-inf
    but where do i put this, there is no instructions as to where the classes and meta-inf go? i understand that the .jar goes in the deploy directory but what if i want to store the source and complied in jboss also?
    3. when running a servlet, client, from tomcat do i have to run both tomcat and jboss together? The book just mentioned that i needed to copy the ebj.jar, jboss-client.jar, jnp-client.jar and the Adder.jar (example build) into my lib for tomcat, but why do i need the Adder.jar (the example built), isn't that suppose to run from jboss not from tomcat?
    Thank you.

    1.) You find the package javax.ejb in the following file: $JBOSS_HOME/client/jboss-j2ee.jar
    2.) JBoss doesn't need your source-files. To install your EJBs you must copy a Enterprise Archive (*.ear), which including the jar-file with your EJB, in the directory $JBOSS_HOME/server/default/deploy. This is the directory for hot-deployment of the default-configuration. You could also copy the jar-file with your EJBs into this directory.
    3.) JBoss has always a web-server, either tomcat or jetty. Both are servlet-engines. You doesn't need another tomcat instance. In your web-application you need all classes of a EJB, that you call, for example the remote-home- and the remote-interface of a session bean and the classes of value-objects. This is the reason, because you need the adder.jar. The better way is, you include all necessary files in your war-file.

  • How i can start working with Java?

    Right now i am having only 8 months of exp in ABAP. can any one help me out to start working with Java specially for Netweaver Purpose

    It is great if you can get yourself familiar with java syntax, as is the case with any new langauage. However, the worst thing you can do is just code java in a top down approach. If you are not familiarizing yourself with OO concepts and best practices, then you are going to miss two important benefits that you will get from using OO programming - Reusability and flexibility in the frameworks that you develop (leveraging design patterns).
    These benefits will also be directly obtainable when you use ABAP objects.
    I am working in the opposite direction at the moment. I have some java experience, and I am starting to learn ABAP. I have used ABAP objects in my first project, and it was actually much better than I thought it would to be.
    Java and OO programming will be an ongoing learning experience. You will not be an expert for quite some time. I do not consider myself to be an expert by any means, and I've be studying OO and java for a few years.
    There is a fantastic book that explains OO concepts clearly, in much easier terms than the Gof "Design Patterns" book:
    Java Design: Objects, UML, and Process by Kirk Knoernschild
    You can read a few chapters at www.kirkk.com. (Use the JOUP link).
    Hope this helps you.
    - Brendan

  • Just starting out problems!

    Hi,
    i've just started working with RMI, i created a very simple server and client, ran them successfully both on one machine. When i tried on 2 machines on a home network (2 pcs running XP) the client always has a timeout exception when trying to connect to the server. Following is my code for both:
    import java.rmi.*;
    public interface RMIServer extends Remote
        public void setResult(String s1, String s2) throws RemoteException;
    import java.rmi.*;
    import java.rmi.server.*;
    public class RMIServerImpl extends UnicastRemoteObject implements RMIServer
        public void setResult(String s1, String s2)
            System.out.println(s1 + " " + s2);
        public RMIServerImpl() throws RemoteException
        public static void main(String[] args) throws Exception
            RMIServerImpl server = new RMIServerImpl();
            String serverName = "//localhost/RMIServer";
            Naming.rebind(serverName, server);
            System.out.println("RMIServer running...");
    import java.rmi.*;
    public class RMIClient
        public static void main(String[] args) throws Exception
            RMIServer server = (RMIServer) Naming.lookup("//localhost/RMIServer");
            server.setResult("Hello", "World");
    }instead of localhost i pur the ip of the server when on 2 machines. Is my code wrong or is it something to do with my network and not Java.
    Thank you.

    Hello,
    You mean windows HOSTS file at windows\system32\drivers\etc\ ?
    i did more testing, its works on 2 machines but only with one as server, the other client. If you reverse their roles, making the client a server and the server a client, then the client can't connect to the server.
    Is some configuration problem of the LAN causing this? I pinged both PC's addresses and they both seem to see each other. Is there some test i could do to determine the cause.
    Thank you.

  • I'm new to mac. Just started out. Have OS 10.8.3. I have an HP 1315 printer.  It prints and copies, wont scan.  I see old threads on this, nothing recent.  ?can i make this work, or do i need a new printer??

    I'm new to mac. Just started out. Have OS 10.8.3. I have an HP 1315 printer.  It prints and copies, wont scan.  I see old threads on this, nothing recent.  ?can i make this work, or do i need a new printer??

    Hi Newbie111
    I see that you are unable to scan with the Photosmart 1315.
    What driver are you using?
    The driver listed in the url below is a basic print driver that will allow you to print only.
    http://h10025.www1.hp.com/ewfrf/wc/softwareDownloadIndex?softwareitem=ps242muc&c c=us&dlc=en&lc=en&os=1006&product=61956&sw_lang=
    You can try using the apple drivers in the url below.
    http://support.apple.com/kb/DL907
    If you have any further issues please let me know.

  • Just starting out, basic problem here.

    Hi, I'm just starting out using DW to create a very basic website. I'm following the tutorial found here: http://www.adobe.com/devnet/dreamweaver/articles/first_website_pt1.html
    I've created the container div and placed several divs inside of it. So far I've added a background image into one div and am placing text and images on top of the background.
    I'm trying to place the business logo image in the top left corner 50px down and 90px to the right (from the top left corner). My CSS for the logo looks like this:
    #Main_Logo {
    position: absolute;
    top: 50px;
    left: 90px;
    In the design view it looks exactly where it should be, but when I preview the page in Safari the logo is aligned with the very top of the background image and is very far left. Here is an image of what the design view looks like:
    [IMG]http://i.imgur.com/WCO8H.png[/IMG]
    direct link: http://imgur.com/WCO8H
    And here is the preview of the page in Safari:
    [IMG]http://i.imgur.com/8mhDP.png[/IMG]
    direct link: http://i.imgur.com/8mhDP.png
    Can anyone offer any advice? Why is this happening?
    Thanks.

    Thanks for the advice Nancy. My plan was to make the logo into a link back the the home page (as you've correctly assumed). So you're saying I won't be able to do that if it is placed inside the background image div? I thought that in order to position divs inside (or on top) of existing divs (like the background image) you needed to place the div you want to appear on top inside of the background div.
    Also, here is my code so far:
    <!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">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Step Up</title>
    <link href="Styles/Step_Up.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    #Background {
    background-image: url(Images/Background.png);
    background-repeat: no-repeat;
    position: relative;
    height: 1080px;
    width: 1050px;
    #Main_Logo img {
    .style11 {font-family: Arial, Helvetica, sans-serif; color: #444444; font-size: 19px; }
    .style12 {font-family: Arial, Helvetica, sans-serif; color: #FFFFFF; font-size: 19px; }
    .style13 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    color: #FFFFFF;
    font-size: 25px;
    -->
    </style>
    </head>
    <body>
    <div id="Container">
      <div id="Background">
      <div id="Main_Logo"><img src="Images/Main_Logo.png" alt="Step Up" /></div>
        <div id="Left_Column">
        <p class="style13">SECRET TO SUCCESS</p>
        <p class="style11">The secret isn't a radical drug, and it's not membership to an exclusive gym with beefy trainers. Proper wellness boils down to you.</p>
        <p class="style11">The goal of Step Up Fitness and Nutrition Services is two-fold:</p>
        <p class="style12">Empower clients to build an individualized, effective fitness program in the comfort of their own home and neighborhood.</p>
        <p class="style12">Teach and counsel clients on incorporating healthy selections into their everyday lives.</p>
      </div>
      <div id="Right_Column">
        <p class="style13">ABOUT</p>
        <p class="style11">Rachel is a Registered Dietitician and can offer expert nutritional advice and counseling on the topics of weight management (loss/gain), diabetes control, cardiovascular disease prevention and medical nutrition therapy, sports nutrition, and more!</p>
        <p class="style11">Her training style is unique and she is able to not only adapt to individual spaces and limited equipment, but she can also exceed the expectations of a wide variety of fitness levels. Whether you are an experienced athlete, an off-and-on fitness enthusiast, or a beginner, Rachel will tailor the exercise program to fit your schedule and your goals!</p>
      </div>
      </div>
      <div id="Nav_Box">Content for  id "Nav_Box" Goes Here</div>
    </div>
    </body>
    </html>
    CSS:
    @charset "UTF-8";
    /* CSS Document */
    #Container {
        width: 1050px;
        background: #FFF;
        margin: 0 auto;
        padding-left: 10px;
        padding-right: 10px;
        overflow: hidden;
    #Left_Column, #Right_Column {
    width: 410px;
    float: left;
    position: relative;
    top: 450px;
    #Left_Column {
    margin-right: 50px;
    margin-left: 90px;
    #Main_Logo {
    position: relative;
    top: 50px;
    left: 90px;

  • [GeForce 6] Do both 6800GT need same revision# & bios? Can I start out with 1?

    My plan for my signature system was to order one 6800GT after posts said 1 6800GT=2 6600GT & I'd be better off starting out with one 6800GT rather than 2 6600Gt. I'd get the 2d one maybe in a year or two.
    Now it appears there's some caveats.....do both 6800GT's have to be the same revision, bios and something called ERP.  That is, if I bought the 2d 6800GT in a year or two, will it work with the earlier one, or is there going to be some manufacturing version level problem pop up?
    If I can get the identical revision question nailed down, I think I can go ahead and order all the parts.
    Regards, Ron

    Ron,
    Do not worry about the BIOS of the Vid Card, they very rarely change. When it comes time, you just want to get another card that is same specs. Since you have an MSI NX6800GT-T2D256E, just get another MSI NX6800GT-T2D256E, that will give you the best chance at stability. You could use a 6800GT from another brand but for max stability I would try to get two matched Vid Cards.
    Take Care,
    Richard
    P.S. You will find most GeForce Vid Cards on the market stick to the reference design, so they are about identical.

  • My address book and iPhone pics have become low resolution.  Is there a way I can prevent this from happening when I start out with a higher resolution picture?

    I guess I squeezed my entire issue into the subject line.  lol   When I sync my iphone to my laptop I notice that all my address book pics and iphone pics have become lower resolution, even though I started out with the resolution that I really needed to produce decenty address book printouts.  I doubt I can correct the losses of resolution that have occurred but can anyone help me figure out how to prevent future losses?  Thank you!

    Plugins usually are installed externally to Firefox. However, you can disable them in Firefox so that Firefox does not use them.
    SearchReset is supposed to automate the task of resetting certain preferences, but you still can edit them manually if necessary.
    '''''Address Bar Search'''''
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the filter box, type or paste '''keyword''' and pause while the list is filtered
    (3) Right-click '''keyword.URL''' and choose Reset. This should restore Google as the default for address bar search.
    Does that work?
    '''''Search Box'''''
    Usually it works to choose your preferred search engine from the drop-down. To remove an unwanted search engine plugin, usually the Manage Search Engines... choice at the bottom of the drop-down takes care of it.
    Do either of those work?
    There might be another way to hijack that search box; I think some of the other frequent responders probably are more familiar with it than I am.

  • Upon start up of my laptop I get a APS Daemon.exe system error - MSVCR80.dll is missing.  This just started out of the blue.  At one point it told me to reinstall ITunes.  Is that truly necessary?

    Upon start up of my laptop I get a APS Daemon.exe system error - MSVCR80.dll is missing.  This just started out of the blue.  At one point it told me to reinstall ITunes.  Is that truly necessary?

    I have the same issue after installing the new update and reinstalling iTunes doesn't fix the issue.
    I found disabling Apple push (APSDaemon.exe) from the start up will stop the error from appearing, however this will disable wireless syncing. If you don't use it than it shouldn't be an issue.
    I'm using a PC so you can disable it using the msconfig command and turning it off in the Startup tab. I don't know if Mac users are experiencing the same issue. Hopefully Apple will fix it in their next update.

Maybe you are looking for

  • Open Quotations and Open Items

    Hello Experts, Can you tell me what are open quotations and open items? And in what scenario they are used? Arathi

  • Save as -- now 2 levels of file-naming for pdfs?

    In OSX 10.4 when you want to create a pdf of a document or webpage, you hit Print, then Save as PDF, and then either you accept the file's original name or you change the name, hit Save, and voila, your have your PDF just the way you want it. In OSX

  • Using avid m-audio fast track and avid m-audio fast track solo together

    I Wanted to use avid m-audio fast track and avid m-audio fast track solo together so that I can get 4 inputs i I tried to select it, but could enable any one only. How can I use them together??

  • Can Oracle Database 11.2.0.3 authenticate with ldap (ODSEE 11g)??

    Dear Experts, I wanted to know if the Oracle DB 11.2.0.3 can authenticate with LDAP ODSEE 11g. I got to know that in order to authenticate to LDAP oracle DB needs to connect to Oracle Virtual Directory (OVD). Is this the correct statement. Any inputs

  • Run file in Windows in this file default program

    Hello I want run file in my Java program. In example I click in my Java program on the "Hello.doc" text and it must run Microsoft Word. I try use: try {     Runtime.getRuntime().exec("start c:\\file\\Hello.doc"); } catch (IOException ex) {    System.