How to compile package which contain class outside the package

I am writing a JDBC driver.
I have the following package structure in the folder:
MyDriver
    |_manager.jar
    |_com
           |_ jdbc
                   |_ HXDriver
                   |_ HXConnection
                   |_ HXResultSet
                   |_ HXStatementIn manager.jar, there is a remote object Interaface(Manager.java) which I need to use inside HXConnection.
My question is how to compile(or/and how to set the classpath)so that I can compile the 4 classes inside jdbc package.
I tried this:
C:\MyDriver>javac -cp .;manager.jar com/hx/jdbc/*.java
However, this does not work, compiler says it cannot find Manager
Please help me.
Cheers

D:\380 Project\Driver>javac -cp .;manager.jar com\hx\jdbc\*.java
com\hx\jdbc\HXConnection.java:21: cannot find symbol
symbol  : class Manager
location: class com.hx.jdbc.HXConnection
        private Manager manager;
                ^
com\hx\jdbc\HXStatement.java:18: cannot find symbol
symbol  : class Manager
location: class com.hx.jdbc.HXStatement
        private Manager manager;
                ^
com\hx\jdbc\HXStatement.java:20: cannot find symbol
symbol  : class Manager
location: class com.hx.jdbc.HXStatement
        public HXStatement(Manager manager){
                           ^
com\hx\jdbc\HXConnection.java:41: cannot find symbol
symbol  : class Manager
location: class com.hx.jdbc.HXConnection
                        manager = (Manager)reg.lookup("manager");
                                   ^

Similar Messages

  • How to refer to a protected class outside the enclosing package

    Hi all,
    At the page 357 of the book Java Language Specification(Second Edition), when saying about checking accessibility of Type and Method, they concern Let C be the class containing the method invovation T.m, if T is in a different package than C, and T is protected then T is accessible if and only if C is a subclass of T. I just wonder how to refer a protected type outside the package it declared.
    For example,
    package test;
    public class test {
    static protected class protectedTest {
    public void foo() {..}
    in another package
    import test.*;
    class subtest extends test.protectedTest {  <- error
    Anyone can give me an example showing an invocation directly to foo() declared in class test.protectedTest ? The invocation should appear outside package test.
    Thanks,
    Ha Chau

    The protected inner class would be accesible only within a class which extends test, where you could either use or extend it as in:
    class subtest extends test {
        private static class sub2 extends protectedTest {
               }

  • How to use Landmark in a Class outside the Parsley Context

    Hi all,
    Is there anyway to get the Landmark metadata work without adding the annotated Class in the Parsley Context file?
    I mean, I have a Class such as:
    [Landmark(name="content.foo")]
    public class MyClass extends ManagedClass {
    [Enter(time="every")]
    public function enter():void
    LOG.info("content.foo:Enter");
    Problem:
    Enter method is never fired although ManagedClass( the super class ) has a <parsley:Configure /> tag ( and, of course, all injections happen ).
    Adding MyClass to the Parsley Context file makes everything work but is there anyway to make this Landmark work without doing that?
    Thanks.

    That's more of a Parsley question than C3 and AFAIK it's not feasable. The other way around is with i.e. the ProcessSuperclass object definition in Parsley. Check out Parsley's developer manual on that (chapter 3 should explain this)

  • How to create an instance of a protected class outside the enclosing packag

    Hi all,
    I have a piece of code like this:
    package test;
    public class A {
    protected class B { }
    How to create an instance of B outside the package test ? Could you please give me an example ?
    Thanks
    Ha Chau

    Thank WirajR for your reply, but in your solution,
    you have to create an instance of B inside class A
    and pass it outside. I would like to know whetherwe
    can create an instance of class B outside thepackage
    test. That means I want the instance creation
    expression of B appears outside the package test.Can
    we do that?
    If you want to use a class this way then it shouldn't
    be marked protected. I can't see why you don't
    just declare it public if that's what it is.
    Wouldn't be much point to haveing a protected
    modifier if it had no effect, would there?I think there is use for it if you use an interface to filter out the parts you want to give public access to, and keep the part you want to keep protected, protected

  • [svn:fx-trunk] 5140: Removing [ExcludeClass] from classes outside the package.

    Revision: 5140
    Author: [email protected]
    Date: 2009-03-02 12:09:24 -0800 (Mon, 02 Mar 2009)
    Log Message:
    Removing [ExcludeClass] from classes outside the package.
    QE Notes: None.
    Doc Notes: None.
    tests: checkintests
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/HorizontalLayout.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/layout/VerticalLayout.as

  • Can I use the inner class of one containing class by the other class

    Can I use the inner class of one containing class by the other class in the same package as the containing class
    eg I have a class BST which has inner class Enumerator. Can I use the inner class from the other class in the same pacckage as BST?

    Inner classes do not share the namespace of the package of the containing class. Also they are never visible to other classes in the same package.Believe what you want, then, if you're going to make up your own rules about how Java works. For people interested in how Java actually works, here is an example that shows why that assertion is false:
    package com.yawmark.jdc;
    public class Outer {
         public class Inner {
    }And...
    package com.yawmark.demo;
    import com.yawmark.jdc.*;
    public class Demo {
         public static void main(String[] args) {
              assert new Outer().new Inner() != null;
    }~

  • How to find out which objects are at the end of the datafiles

    My Scenario is having a tablespace of 65G but the data is 5G and that is at the end of datafile for that we are not able to resize the datafile our though is to find out what are the objects at that end of datafiles and will either alter move <owner.tablename> move or alter index <owner.index> rebuld online.
    For that how to find out which objects are at the end of the datafiles.

    >
    My Scenario is having a tablespace of 65G but the data is 5G and that is at the end of datafile for that we are not able to resize the datafile our though is to find out what are the objects at that end of datafiles and will either alter move <owner.tablename> move or alter index <owner.index> rebuld online.
    For that how to find out which objects are at the end of the datafiles.
    >
    You may want to copy this and add it to your toolkit
    See 'What's at the End of the File?' in this Tom Kyte article from the Sept 2004 Oracle Magazine
    http://www.oracle.com/technetwork/issue-archive/o54asktom-086284.html
    And this AskTom blog shows you how to generate a script containing ALTER statements toresize your datafiles to the smallest possible. You can 'pick and choose' from the ALTER statements to do what you want.
    Then of course, you can use techniques from this article by Oracle ACE, and noted author, Jonathan Lewis
    http://jonathanlewis.wordpress.com/2010/02/06/shrink-tablespace/

  • How do you call a java class from the main method in another class?

    Hi all,
    How do you call a java class from the main() method in another class? Assuming the two class are in the same package.
    Thanks
    SI
    Edited by: okun on May 16, 2010 8:40 PM
    Edited by: okun on May 16, 2010 8:41 PM
    Edited by: okun on May 16, 2010 8:47 PM

    georgemc wrote:
    To answer your impending question, either the method you're calling has to be static, or you need an instance of that other class to invoke it against. Prefer the latterAnd to your impending question after that: no, don't use the Singleton pattern.

  • Spread Sheet Couldn't be Imported, Spread Sheet couldn't be opened because it contains cells outside the boundaries of numbers. Has any one had this problem? It is an excel file that works fine on my mac.

    When I try to import an excell file to numbers on my ipad i get an error message that says it cannot import the file or open the file because it contains cells outside the boundry of numbers. Any one have this problem. it is only one file that i have this problem with and it is an important one. I have no problem working on it with my mac and my excell for mac.

    Number is limited to about 65000 cells so if your Excell spreadsheet is too large Numbers will choke.  This is definitely one of the weaknesses.  If you don't have Excel you can use LibreOffice which is free.

  • HT4994 How do I use which is sim with the device

    How do I use which is handsome with the device

    If the phone is carrier locked, contact the carrier it is locked to and find out:
    a) if they offer unlocking
    and
    b) if you qualify and what the charges to do so are.

  • How to find out which data control do the page layout components come from?

    hi,
    work in Jdev 11.1.2.3
    After have drag and drop data control into pages designer, how to find out which data control do the page layout component (such as a field in form layout) come from?
    --i cannot find data control related information in the property pallete for the page layout component.
    Regards.

    This information can be found in the page definition file.
    Select the field in the page and then click the binding tab.

  • On the Web Wiz Forum, id="gwProxy" ="" ="ifofjsCall==''jsCall;elsesetTimeout'jsCall',500;" id="jsProxy" ="" is added to every reply that I make. Safe mode cures it but how do I know which add-on is the problem?

    When I go to a reply window, sometimes it almost looks like there is a little window/box appears (with the 6 dots that allows the size to be changed) It appears to be the cause of the string/code?
    On the Web Wiz Forum, < id="gwProxy" ="">< ="ifofjsCall==''jsCall;elsesetTimeout'jsCall',500;" id="jsProxy" ="">
    to be added once the reply is posted, to every reply that I make. Safe mode cures it but how do I know which add-on is the problem? I have 25-30 add-ons.

    Disable all addons by going to Tools -> Addons and clicking the disable button in every entry under Extensions or Plugins panels.
    Restart Firefox.
    Confirm the problem isnt there.
    Enable each addon one by one by going to Tools -> Addons and clicking the enable button in every entry under Extensions or Plugins panels, in such a way that each time you enable ONE addon, you RESTART the browser and see if the problem STILL happens.
    AS SOON AS the problem happens, disable the last addon you enabled. That one is the culprit. You can now enable all the others, if needed.

  • When opening a Photoshop file with Bridge, how can I control which version of Photoshop the file wil

    When opening a Photoshop file fthrough Bridge, how can I control which version of Photoshop the file will open in?
    I store my PSD files adjacent to the original RAW file from which it was derived.
    If I open the file folder and double click on that PSD file, it opens in CS6. But,if I use Bridge (CS6) to navigate to and open the same file, it first opens Photoshop CS5 and then opens that PSD file in CS5.
    How can I control which Photoshop will open a file I select when opening it through Bridge?.

    Interesting, but it doesn't give a clue what I'm supposed to do. No Photoshop ducuments listed.
    Look at the PSD file on the location Curt provided and search for Photoshop Document. Next to it ideally should show Adobe Photoshop CS6 if you have Bridge CS6 open. Click on it to provide the fly out menu and choose the correct Photoshop from the list.
    But probably something went wrong with your install. By default Bridge chooses the latest version of PS to open its file in.
    Maybe a reset of the preferences might also help you. Can you provide more details about OS version etc.
    And do you have a good reason for keeping your Raw and finished files in the same location. Personally I keep them apart and use a proper file name convention (yyyymmdd and details) so I can easily search for the DNG files in my archive if I needed them but I don't make mistakes in opening the wrong one

  • How can I know which photos are in the library was used in each album I have created before.

    How can I know which photos are in the library was used in each album I have created before?
    I have many photos in the library folder of iPhoto, but actually I don't know which photos were used in my album.
    Is there any method to find this?
    Thanks.

    Album or Book?
    If Album you can find the ones not already used:
    File -> New Smart Album
    Album -> is not -> Any
    Regards
    TD

  • How can I buy subtitled movies from outside the US?

    how can I buy subtitled movies from outside the US?

    People here are users, you need to contact Apple Inc. by phone and see if you can resolve this problem.
    http://support.apple.com/kb/he57

Maybe you are looking for

  • 'BAPI_DOCUMENT_CREATE2': file attachment

    Hi experts !! I have a problem with this Bapi "BAPI_DOCUMENT_CREATE2". I can attach a file manually in CV01N.But when i try to attach a file using this BAPI - file not getting store.Following is my code, ls_doc-documenttype    = 'DRW'. ls_doc-documen

  • Error message uploading book through iTunes Producer

    I'm uploading my ebook to iTunes Producer and when it is verifying assets with the iTunes store, I get the following message: Error: Internal error: java.net.MalformedURLException: unknown protocol: bundle schema/20/rng/opf.rng" at Book (MZItmspBookP

  • My firefox home page looks different from your tutorial

    I am trying to learn to use firefox. Sometimes the firefox home page looks different from the one in your tutorial. Fox example, now I am looking above and the "plus sign" symbol to add a new tab is not there. Please advise me. Thank you.

  • How to reinstall SSOUI ?

    Hi There, Due to login problems I want to reinstall SSOUI. Where or what do I need to download to install SSOUI ? (allready uninstalled SSOUI, and installed social, qt and reinstalled the latest firmware, but no succes here) Thanks in advance, Reg

  • Possible Security Vulnerability at Root regarding Mozilla & Keychain

    Hi, everyone. I just came across the following announcement from the Mozilla Security Blog. In it, they mention Apple and the Keychain. Apparently, among the trusted certificate authorities in Mozilla products is one certificate whose whereabouts are