Trying to create my own package

So basically, I am trying to create my own package in WIndows.
I have created the directory:
C:\javaclasses\defnull\array
and in that directory all I have is:
intcheck.class
All the class does is check how large an integer array is. Here is the uncompiled code:
package defnull.array;
public class intcheck {
     public static int inarray(int[] numbers){
          int i = 0;
          try {
               for (i = 0; true; i++)
                    numbers[i] = numbers;
          catch (ArrayIndexOutOfBoundsException e){
               return i;
I opened up the cpanel, went to system, Advanced, Environment Variables, and added:
;C:\javaclasses
onto the end of the classpath variable.
Now, here is where I run into issues:
Problem a:
If I import the just the intcheck class, the program works fine:
import defnull.array.intcheck; //  IMPORTING ONLY THE INTCHECK CLASS.
public class tester {
     public static void main(String[] args){
int[] hai = new int[18];
int x = intcheck.inarray(hai);
System.out.println(x);
}and the output is "18".
But if I try to import the entire folder "array" of classes, like this:
import defnull.array.*; // IMPORTING ENTIRE FOLDER OF CLASSES
public class tester {
     public static void main(String[] args){
int[] hai = new int[18];
int x = intcheck.inarray(hai);
System.out.println(x);
}I get these errors
.\intcheck.java:3: class tester is public, should be declared in a file named tester.java
public class tester {
       ^
tester.java:9: cannot access intcheck
bad class file: .\intcheck.java
file does not contain class intcheck
Please remove or make sure it appears in the correct subdirectory of the classpath.
int x = intcheck.inarray(hai);
        ^
2 errorsIt should just be importing the whole folder of classes, correct?
I have even tried to create a new object for it:
intcheck check = new intcheck();It just gives similar errors

I dont understand why:
import defnull.array.intcheck;
would work but not:
import defnull.array.*;
It seems to be that specific class that is not working. i made another simple one to print out a string, which allowed me to use the wildcard.
what is wrong with that class?

Similar Messages

  • HT2731 My daughters iPad has just been factory restored from the apple shop, she was on my iTunes account with her email address but now she is the correct age for her own account. We have started up the iPad and with trying to create her own with her own

    My daughters iPad has just been factory restored from the apple shop, she was using my iTunes account with her email. When trying to create her own iTunes as she is the correct age it has come up that her email is already being used. How do we  do this with he same email address

    Hello spooner68,
    Thank you for the details of the issue you are experiencing when trying to create an Apple ID for your daughter.  Because her email address is associated with your Apple ID, you are receiving the message that the email address is in use. 
    To remedy this, you will have to first remove her email address from your account using steps 1-3 of the section titled "How to add an additional email address that is already associated with another Apple ID" in the article below and then attempt to create her Apple ID with her email address:
    How to add an additional email address that is already associated with another Apple ID
    If you have an email address that is already associated with another Apple ID, you may need to remove it from your other Apple ID before you can add it to your preferred Apple ID.
    Sign in to My Apple ID with the Apple ID that has the email address already associated with it.
    Find the email address that you want to move to your preferred Apple ID, then click Delete.
    Click Save Changes, then click Sign Out at the top of the page.
    You can find the full article here:
    Apple ID: Associating and verifying email addresses with your Apple ID
    http://support.apple.com/kb/HE68
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • I am trying to create my own apple id, but when i try to click creat my id, i am redirected to the same page, there are no errors saying anything is wrong

    i am trying to create my own apple id, but when i try to click creat my id, i am redirected to the same page, there are no errors saying anything is wrong

    Here is a link that should meet your needs.
    Rescue email address and how to reset Apple ID security questions
    Let us know how you got on.

  • Rookie trying to make my own package

    Reading in a real good book - "Thinking in Java" by Bruce Eckel. Really helping me to understand better a lot of the stuff that I had in my Java course at school.
    Got to a section where he's showing how to make your own packages. I'll lift directly:
    Consider, for
    example, creating an alias for System.out.println(�) to reduce
    typing. This can be part of a package called tools:
    //P.java
    // The P.rint & P.rintln shorthand.
    package com.bruceeckel.tools;
    public class P {
    public static void rint(String s) {
    System.out.print(s);
    public static void rintln(String s) {
    System.out.println(s);
    You can use this shorthand to print a
    String either with a newline (P.rintln(�)) or without a
    newline (P.rint(�)).
    So, I cut and pasted right into the text editor I use to practice with, saved and compiled it in a subdirectory off of one of the directories in the CLASSPATH, followed with a little test program:
    //ToolTest.java
    import com.bruceeckel.tools.*;
    public class ToolTest {
    public static void main(String[] args) {
    P.rintln("Available from now on!");
    P.rintln("" + 100); // Force it to be a String
    P.rintln("" + 100L);
    P.rintln("" + 3.14159);
    Here's the result of the compile:
    C:\Thinking in Java\com\bruceeckel\tools>javac ToolTest.java
    ToolTest.java:3: Package com.bruceeckel.tools not found in import.
    import com.bruceeckel.tools.*;
    ^
    1 error
    C:\Thinking in Java\com\bruceeckel\tools>
    At first I tried doing it on my own, making up my own package name, creating my own little source files, but got the same error. So I cut and pasted directly from the book, thinking surely it would work if I used Eckel's own code. Nope.
    Any clue what's going wrong? I've checked the CLASSPATH carefully, it includes
    C:\Thinki~1
    Thanks
    Felecha

    Your classpath should include "C:\Thinking in Java", not C:\Thinki~1.
    Also, your ToolTest.java should be in some other folder than "C:\Thinking in Java\com\bruceeckel\tools" - javac may act weird when it can find the to-be-imported classes in both the current folder and the classpath.
    If ToolTest.java had been in the folder "C:\Thinking in Java" you wouldn't have needed to modify the classpath.

  • Can I use classes and objects to create my own package in LabVIEW?

    Hi....I am writing my thesis on develpoing a simulation package.  I am trying to compare simulation packages and their feautures as a scope of my project.  Does anyone know if LabVIEW allows users to create their own toolboxes like MATLAB?...i mean something that can be done in object-oriented programming by making classes and objects.
    thanks guys 

    The short answer is yes. NI sells toolkits. There's also OpenG. How you code the guts is up to you - you can do it non-LVOOP or LVOOP.

  • Has anyone ever tried to create an own application (T681A)

    Hello,
    i want to use message determination for an "own" application. So has anyone tried to make an entry - "legal or illegal" - in table T681A?.
    As there are reserved namespaces in this table and as it is a new entry, it should not harm anything. But you never know.
    So i post this to get an opinion from the community.
    Regards
    Jürgen

    Generally you cannot buy a gift card with a gift card and I suspect that applies to going between the Apple Store and the iTunes Store.

  • Retrieving device id failed while trying to create setup package

    Hi,
    We are on SAP MI 2.5 ; SP21 (NW2004). I am trying to create a setup package including the following:
    1. DB2E version 912
    2. MI2.5 SP18 Framework
    3. Addon MI 2.5 SP21 (to pacth MI SP18 to MI SP21)
    4. MAU 3.0 SP05
    I have included the device configuration in the sequence that they appear above into a Hierarchy Group and assigned users to this group.
    When trying to create the set up package for any of these users I get the following error:
    0050 tc.mobile.admin.bl ; 172344 20080331 Retrieving device id failed.
    The last successful statement in the log Viewer is (i.e. before the above error appears)
    "Set the communication server port to 45004"
    Any help would be much appreciated.
    Thank in advance.
    Kind Regards
    Mike

    Hi Sivakumar,
    Thank you very much for quick response.
    I have tried what you have suggested. It doesn't throw an error any more but the setup package creation is not completed. Looking at the log viewer It seems that it stuck at the following point:
    0070 tc.mobile.admin.bl ; 174044 20080401 Set the communication server port to 45013
    0070 tc.mobile.admin.bl ; 174044 20080401 Retrieving device id.
    This point is the same that was previously kicking the error.
    Any suggestion would be much appreciated.
    Thank you in advance.
    Kind Regards
    Mike

  • Error while creating a setup package .

    Hi ALL,
    We are trying to create a setup package (SP20 client)  for our application
    after assinging the device configurations their roles and conditions to the Hierarchy Group which we created It gives the following error while creation of the setup  package
    Error
    0050  tc.mobile.admin.bl  113101  20080222
    Retrieving device id failed.
    However we tried to dig up for it in help.sap.com and forum we could not resolve the  error .
    Please suggests the neccessary solution,Its urgent.
    Thanks & Regards
    Aditi Vyas

    HI
    This problem is already resolved in SP20.  Kindly make use of the latest patch of NWMADMIN and NWMClient and the error should get resolved.
    Best regards
    Sivakumar

  • Dump Error while Creating the Info Package

    Hi,
    I have created Customized ODS and used Generic data sources.I have loaded full Upload to ODS. Created Info Packages for Init delta and Delta for delta loading. I have ran Full Upload and while I am trying to run Init, I am getting the error.
    While I am trying to open the Info Package, I am getting Dump error message.
    Dump error Message :
    What happened?
        The current application program detected a situation which really
        should not occur. Therefore, a termination with a short dump was
        triggered on purpose by the key word MESSAGE (type X).
    While i am trying to Create New Info Package, the systems gives the Dump on the System
    Please help on this issue.
    Thanks,
    Siva.

    Hi,
    Actually, when we want to have delta loads in future, then we can just have one infopackage with init delta infopackage, so that when it runs for the first time, it pulls all the records and from next time onwards it will pull the delta records only.
    But as you have done the full load with infopackage, now just create a delta infopackage, no need of init delta infopackage, this is the reason, its giving dump.
    Hope it has given some insight.

  • How to transfer a smartform from $temp package to my own package say "zpack" in abap?

    hi, i am sanjeev.
    earlier i used to save all the objects in local package only. whether it's a program or any class or any user created table.
    but now i have created my own package and want to transfer all of those created objects into my package "zpack". even i transferred all the programs. but the smartforms i cant. so plz help me.
    THanks in advance.

    TC --> SE03
    Select --> Change Object Directory Entries --> Click F8 or Click run button .
    Check 'Check Box' and enter SSFO . Input field enter your Smart form name.
    Under that we have block " Further Restriction" enter existing Package name ex: $TMP is this is saved under temporary folder.
    and click on F8 or Run Button. Then we will get list of object's stored under this package .
    Select required object and click on "Object  Directory ", this will prompted pop asking to enter new package name.
    This will help you to change from one package to your owned package.
    Thanks,
    Venu M B

  • Create my own bib schema

    Hi,
    I followed the bi_beans demo installation guide. It worked well and I have been able to run the JDeveloper demos.
    Then I've tried to create my own dimensions/cubes/catalogs using OEnterprise Manager.
    I executed cwm2_olap_metadata_refresh and it told it was refreshed.
    Then things begin not working anymore:
    - In jdeveloper, the bi_beans demos don't work anymore
    - I used the bi_checkconfig program and it outputs:
    JDEV_ORACLE_HOME ............................. = c:\jdev
    JAVA_HOME .................................... = c:\jdev\jdk
    JDeveloper version ........................... = 9.0.3.1.1107
    BI Beans version ............................. = 9.0.3.6.0
    BI Beans internal version .................... = 2.7.0.13.1
    Connect to database .......................... = Successful
    JDBC driver version .......................... = 9.2.0.3.0
    JDBC JAR file location ....................... = c:\jdev\jdbc\lib
    Database version ............................. = 9.2.0.2.1
    OLAP Catalog version ......................... = N/A
    OLAP AW Engine version ....................... = N/A
    OLAP API Server version ...................... = N/A
    BI Beans Catalog version ..................... = 2.7.0.13.1
    OLAP API JAR file version .................... = 9.2
    OLAP API JAR file location ................... = c:\jdev\jdev\lib\ext
    Load OLAP API metadata ....................... = Successful
    Number of metadata folders ................... = 3
    Number of metadata measures .................. = 0
    Number of metadata dimensions ................ = 0
    Metadata output location ..................... = C:\Documents and Settings\rwout
    ers.DEVELOP\Desktop\BI Check\bi_metadata.txt
    Which is nearly perfect but the last 4 lines: Number of metadata dimensions which is now 0 (should be more)
    ==============================================================================
    Type Name (S=Schema, C=Cube, M=Measure, D=Dimension)
    ========= ====================================================================
    Folder... ROOT
    Folder... Financial data
    Folder... Sales Performance data
    Folder... TIMING_CAT
    So it sees the new catalog I created (TIMING_CAT) and the previous ones but It doesn't see anymore the cubes/.. from bibdemo and the mines as well.
    What should I do ? What did I wrong ?
    Rodolphe -

    Well, I believe the setBounds method is used when using Absolute Positioning. See the Swing tutorial on "Using Layout Managers":
    http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html
    I don't use Frames but I know the default LayoutManager for a JFrame is the BorderLayout. By default any component added to a BorderLayout is placed in the CENTER of the layout and will resize to fill the available size of its container. Again, this information is contained in the above link.

  • HT204053 I just got my new Iphone, and wanted to create my own apple ID, but when I created my own Apple ID, i recvd a confirmation that said My husbands name and that his apple ID was changed.can this be fixed?

    I was trying to create my own Apple ID, when I recvd the verify email it said "Dear (my husbands name) you have entered (my email address)
    as your contact email address for your apple ID." But i did not want change anything on his. Did I delete his apple ID?

    Funds cannot be transferred from one Apple ID account to another.
    Try here > Rescue email address and how to reset Apple ID security questions
    If that doesn't help, contact Apple for assistance with your security questions > Contacting Apple for support and service

  • I cant create my own ringtones please helm me

    i was trying to create my own ringtones using itunes 11.0.3 whole night but i unable to create..... please help me

    Why can't you activate it?  Have you put a sim card in it?

  • How can i indclude my own package when using 'javadoc'

    hello,
    i create my own package, say myPackage.
    can i include it when using javadoc
    thanks

    In case you didn't get it from that last answer: You are not supposed to explicitly specify the java files, just the packages (the directories).
    Cut-and-paste from the earlier supplied information:
    Case 3 - Run from any directory on explicit packages in a single directory tree - In this case, it doesn't matter what the current directory is. Run javadoc supplying -sourcepath with the parent directory of the top-level package, and supplying names of one or more packages you want to document:
    C:> javadoc -d C:\home\html -sourcepath C:\home\src java.awt java.awt.event
    If you need to document more than one package, add a ";" and the package after the "C:\home\src" or whatever your package is called.
    -d directory
    Specifies the destination directory where javadoc saves the generated HTML files.
    -sourcepath sourcepathlist
    Specifies the search paths for finding source files (.java)
    best of luck
    -negal

  • Trying to create package and do not understand error message

    What is wrong with this statement. Its say ASH411APPROVALEMAIL_PKG is not declared. I am trying to create it. Whats wrong?
    ERROR MESSAGE
    I get the following error.
    Error at line 1: PLS-00201: IDENTIFIER 'ASH411APPROVALEMAIL_PKG' must be declared1. CREATE OR REPLACE PACKAGE BODY ASH411APPROVALEMAIL_PKG
    2. AS
    3. PROCEDURE ASH411APPROVALEMAIL_async (P_ATS_NO NUMBER
    CODE
    CREATE OR REPLACE PACKAGE BODY ASH411APPROVALEMAIL_PKG
    AS
    PROCEDURE ASH411APPROVALEMAIL_async (P_ATS_NO NUMBER)
    AS
    BEGIN
    DBMS_SCHEDULER.define_program_argument (program_name => 'ASH411APPROVALEMAIL',
    argument_position => 1,
    argument_name => 'P_ATS_NO',
    argument_type => 'NUMBER'
    --,DEFAULT_VALUE => whatever_value
    DBMS_SCHEDULER.ENABLE (NAME => 'ASH411APPROVALEMAIL');
    DBMS_SCHEDULER.create_job (job_name => 'ASH411APPROVALEMAIL_JOBNAME'
    || P_ATS_NO,
    program_name => 'ASH411APPROVALEMAIL',
    enabled => TRUE,
    comments => 'Comments'
    EXCEPTION
         WHEN NO_DATA_FOUND THEN
         null;
    END ASH411APPROVALEMAIL_async;
    end ASH411APPROVALEMAIL_PKG;

    Hi, Howard,
    csphard wrote:
    Now when I go back and create the package again with the procedures it say package body created but does not
    display anything."Package body created" is all it ever says (unless there's an error message).
    How do I see the procedures I just created when I ran the package again with the procedures?If you want to see the source code, look at the CREATE PACKAGE BODY command in the script you just ran, or query the data dictionary view user_source:
    SELECT       text
    FROM       user_source
    WHERE       name     = 'ASH411APPROVALEMAIL_PKG'
    AND       type     = 'PACKAGE BODY'
    ORDER BY  line
    ;

Maybe you are looking for

  • It wont turn on anymore

    my ipod wont turn on anymore it is dead ive tried charging it for ever and a day im kinda mad cuz i harldy go to use it and i dont have a clue on here how t get

  • Pages keeps crashing!

    If I have edited a document then come out to the start screen in Pages (where it shows all the documents) my app will often crash. I then close it and reopen it and everything I've done in the past 5-10 minutes is gone. It has happened with various d

  • Problem in makeing the Person Responsible field as mandatory

    I am taking the following steps spro --> plant maintenance & Customer Service --> Master data in Pm&CS --> Basic Settings --> Partners ---> Determine Partner Determination proc & Partner Funct --> Undr this am selecting the partner object as Plant Ma

  • Multi state buttons and video/audio

    I am working on an interactive pdf. Right now I have audio set to automatically play on page load. I need the ability to be able to make this button multistate. In that its appearance when the page comes on is a pause button which pauses the audio (

  • Cd-r/dvd wont spin anymore

    my cd-r/dvd suddenly stopped spinning. i can hear the laser moving but no spin. anyone have any ideas on what could be wrong or how to fix. thanx mike