NetBeans Problem with package, pls help.....

Hi all, I have a package problem. With the following 2 classes, I can compile fine in dos with
c:\java> javac WapDev3\*.java
but wont compile in Netbeans 3.4 Pls help.
The classes are
-------------------class sample1 at c:\java\WapDev3------------------
package WapDev3;
class sample1 {
public sample1() {
System.out.println("hi");
--------------------class sample2 at c:\WapDev3------------------
package WapDev3;
class sample2 {
public sample2() {
public static void main(String[] args) {
sample1 osample1 = new sample1();

I don't know for certain whether this is causing your problem, but in Netbeans, the package structure is considered to be identical to the directory structure, relative to the mountingpoint, so if your files are in java/wapdev, Netbeans wants you to make the package java/wapdev.
This can be cured by mounting a subdirectory, using a relative mounting point.
In your case, you should mount C:\java (I assume you've mounted C:\).
Good luck.

Similar Messages

  • Problem with Eclipse  -- pls help

    hi
    When i execute the application in debug mode with one break point :
    These are the errors i get and the compiler is not stopping at the break point .
    Pls help :
    Thread [main] (Suspended (exception ClassNotFoundException))     
         ClassLoader.findBootstrapClass(String) line: not available [native method]     
         Launcher$ExtClassLoader(ClassLoader).findBootstrapClass0(String) line: not available     
         Launcher$ExtClassLoader(ClassLoader).loadClass(String, boolean) line: not available     
         Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line: not available     
         Launcher$AppClassLoader.loadClass(String, boolean) line: not available     
         Launcher$AppClassLoader(ClassLoader).loadClass(String) line: not available     
         Launcher$AppClassLoader(ClassLoader).loadClassInternal(String) line: not available

    If the compiler is not stopping at your breakpoint, then it probably means that the java code you're looking at and the compiled class file are out of synch. If you're getting a classnotfound, then your classfile most likely is either not there or is not where expected.
    Check the output folder in project's properties (which may or may not be the default), and see if your classfiles are actually there. Perhaps there is some error that is preventing your classfile from being generated (Eclipse sometimes won't even be able to compile), so check the problems dialog.
    Try refreshing your project, and if all else fails, restart Eclipse/delete & create the project again. That sometimes magically fixes things. Otherwise, welcome to the quirkiness of dealing with Eclipse!

  • Again same problem error 0xE8000003 pls help again i don't know it keep doing that

    Again same problem error 0xE8000003 pls help again i don't know it keep doing that please help with that

    Hello sartip fatah,
    The following article provides further information regarding this error, and steps to help resolve it.
    iOS: Unknown error containing '0xE' when connecting to a Windows PC
    http://support.apple.com/kb/TS3221
    Cheers,
    Allen

  • SB Xtreme Audio Notebook optical out problem with Home TheaterSystem-HELP!

    JSB Xtreme Audio Notebook optical out problem with Home TheaterSystem-HELP!, I have this sound card connected?(optical OUT) ?to my home?theater system's digital IN ?through the recommended /8in. optical miniplug-to-optical SPDIF cable. Theater system is set correctly to Digital-In mode. I have no sound!
    The cable is a Velocity Toslink-to-Optical Mini Plug digital cable. I don't see any settings in the Creative Console Launcher. The notebook is a Dell XPS M730 (Vista 32).
    I have a PS3, DirecTV, and the SB Xtreme Audio Notebook cable on a hub switch that connects to the system's?one Optical IN. The PS3 and DirecTV sound perfect!
    The sound card works fine with standard PC speakers. I'm at a loss as?to what to try next. I set this whole system up myself, so I'm pretty good at working out the kinks, except this one!
    Karen

    OK. I just went to Control Panel - Sound - Playback - Digital Output Device (SB Xtreme Audio Notebook) - Properties - Advanced. I experimented with different sample rates and bit depths. Clicked the test button and lo and behold - sound from the HTS! I've tried iTunes, PowerDVD (configured to digital output) and YouTube - no sound! Am I missing something really obvious?
    HA! Just backed out to Playback and selected Digital Output Device (SPDIF) and set as Default. Sound is emunating from HTS! Well, that mystery is solved! Who knew.
    Thanks anyway! Any comments or advice will still be appreciated.

  • Every time i sync in my music in my iphone 5 it would have to back up my iphone and every time i back up the loading bar would freeze then my itunes with crash pls help my iphone 5 coat a lot from my savings

    every time i sync in my music in my iphone 5 it would have to back up my iphone and every time i back up the loading bar would freeze then my itunes with crash pls help my iphone 5 cost a lot from my savings

    Syncing requires a backup as part of the sync process.
    Delete any existing backups in iTunes under Edit > Preferences > Devices (or simply move them to a different folder on the computer) then try a backup or sync.

  • Problem with ALV search help Dictionary Search Help

    Hello experts
    I have a problem with ALV search help.
    I use DDIC table ZXXX with text table ZXXX_T. I created DDIC search help form table ZXXX. In my WD application, in context on COMPONENTCONTROLLER i set on attribute: 'Input help mode' as 'Dictionary Search Help' and in 'Dictionary Search Help' I pass name of new created DDIC search help.
    I create a input field from that atrribute and search help works fine (there was a value and description for value from text table). So I created ALV witch contains that attribute too.
    Next I set column for this attribute in ALV as editable but on Serch help for this collumn I have only value. I DON'T HAVE TEXT DESCRIPTION FOR VALUE.
    Please help me and tell me what I do wrong?
    Miko

    Hello,
    Thank's for your help. I create DDic Search help for all fields from my ALV. Next I changed 'TYPE' for all ALV fields in COMPONENTCONTROLLER from ZXXX-Zfield to Zfield, and I changed 'Input help mode' from 'Automatic' to 'Dictionary Search Help'. Now I see Value and Description for value in Search Help in my ALV.
    Regards
    Miko

  • I restore my iphone 3gs but after that iTunes show a message there is a problem with your iPhone, help me please

    i restore my iphone 3gs but after that iTunes show a message there is a problem with your iPhone, help me please

    Yes. Talk to whoever replaced the battery. Sounds like they broke something.

  • Problem with OVS search help.. pls help..

    Hi friends, I have a prblem with OVS component layout
    can some tell me create another  COPY button just under the search button on OVS.
    Basically in my product search.. there is already an OVS component created.. in the Z component layout.. jus the result table is been designed. I dnt see any other UI elements availble in that layout. (like input field to accept vaules on OVS), .. so i was wondering how to create a new button.
    this was developed by others;s so .. i m fighting with this and not able to get anything from sdn aswell.. pls help me.
    And also when they enter values in input fields.. instead of clicking search.. they wanted to hit ENTER key on keyboard... and result shoud display.. how to achieve this..
    sorry im very sorry but pls take out some time and help me out.
    I want one more button COPY on OVS search help. just under the SEARCH button... and also the search shud start once i hit ENTER key on keyboard.
    pls help on this.
    Niraja

    Hi Niraja,
    As how discussed in the email we can get this additional push button as how desired by enhancing the standard component WDR_OVS. Just click on the "Enhance" (spiral kind of button) button present in the application toolbar & create an Enhancement Implementation for the component. Now within this standard component you have the corresponding layout present in the SEARCH view. So go to this view & make the necessary changes. From now on what all components which declare a component usage of the WDR_OVS would be getting this newly modified UI & functionality.
    Regards,
    Uday

  • Help: Still got problems with package

    I still got problems with my self-defined packages. My source files are all put in a directory as the package
    name suggests. The questions are:
    1. Before the classes in the package can be cited by the outside programmes, should I compile
    every sources files in the package respectively?
    2. Secondly, I want to put the .class files in another directory, such as \classes\package name, should
    I set the path mannully? If yes, how to do it?
    3. I downloaded some *.java files from Internet and put them in a directory as their package name suggested.
    However, when I run javac a.java I got error: cannot read a.java. What problem could it be?
    Thanks!

    1. Before the classes in the package can be cited by the outside programmes, should I compile
    every sources files in the package respectively?Yes, you can't run .java files. The JVM only uses the .class files, so you have to compile them.
    2. Secondly, I want to put the .class files in another directory, such as \classes\package name, should
    I set the path mannully? If yes, how to do it?You have to put the .class file in the package directory structure. You have no choice about that.
    3. I downloaded some *.java files from Internet and put them in a directory as their package name
    suggested. You need to read a lot of stuff, but start with this:
    http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/classpath.html
    However, when I run javac a.java I got error: cannot read a.java. What problem could it
    be?You don't run .java files. You run .class files.

  • Problem in answerMachine  pls help me

    Hi All my problem is exactly when u detect dtmf char can not stop playying wav file the code is below
    import java.net.*;
    import javax.telephony.*;
    import javax.telephony.events.*;
    import javax.telephony.media.*;
    import javax.telephony.media.events.*;
    import java.io.*;
    //class MachineCallObserver implements MediaCallObserver {
    class MachineCallObserver implements CallObserver {
    public void callChangedEvent(CallEv evlist[]) {
    TerminalConnection tc = null;
    MediaTerminalConnection mtc = null;
    for (int i = 0; i < evlist.length; i++) {
    CallEv ev = evlist;
    if (ev instanceof TermConnCreatedEv) {
    tc = ((TermConnEv)ev).getTerminalConnection();
    mtc = (MediaTerminalConnection)tc;
    String sExt = ".wav";
    try {
    mtc.usePlayURL(new URL("file:./greet" + sExt));
    //mtc.useRecordURL(new URL("file:./Treeting" + sExt));
    catch (Exception excp) {
    System.out.println("(1)"+excp.toString());
    else if (ev instanceof TermConnRingingEv) {
    final TerminalConnection tcc = ((TermConnEv)ev).getTerminalConnection();
    Terminal t = tcc.getTerminal();
    Address a[] = t.getAddresses();
    // For the callers name
    //setTitle(t.getName()+"bilal");
    // For the callers phone number
    //lblMisc.setText(a[0].getName());
    System.out.println(a[0].getName()+"bilal");
    Runnable r = new Runnable() {
    public void run() {
    try{
    tcc.answer();
    catch (Exception excp){
    // Handle answer exceptions
    System.out.println( "hata2");
    Thread T = new Thread(r);
    T.start();
    try {
    tc.answer();
    catch (Exception excp) {
    System.out.println("(2)"+excp.toString());
    else if (ev instanceof MediaTermConnAvailableEv) {
    tc = ((TermConnEv)ev).getTerminalConnection();
    mtc = (MediaTerminalConnection)tc;
    try {
    mtc.setDtmfDetection(true);
    mtc.startPlaying();
    if (ev instanceof MediaTermConnDtmfEv) mtc.stopPlaying();
    catch (Exception excp) {
    System.out.println("(3)"+excp.toString());
    else if (ev instanceof MediaTermConnStateEv) {
    tc = ((TermConnEv)ev).getTerminalConnection();
    mtc = (MediaTerminalConnection)tc;
    try {
    int state = mtc.getMediaState();
    //if ((state == 0) && (MediaTerminalConnection.PLAYING == 0)) {
    //mtc.startRecording();
    catch (Exception excp) {
    System.out.println("(4)"+excp.toString());
    else if (ev instanceof MediaTermConnUnavailableEv) {
    tc = ((TermConnEv)ev).getTerminalConnection();
    mtc = (MediaTerminalConnection)tc;
    try {
    mtc.stopRecording();
    mtc.stopPlaying();
    mtc.setDtmfDetection(false);
    catch (Exception excp) {
    System.out.println("(5)"+excp.toString());
    else if (ev instanceof MediaTermConnDtmfEv) {
    String sExt = ".wav";
    tc = ((TermConnEv)ev).getTerminalConnection();
    mtc = (MediaTerminalConnection)tc;
    try {
    mtc.stopPlaying();
    catch (Exception excp) {
    System.out.println("(6)"+excp.toString());
    char digit = ((MediaTermConnDtmfEv)ev).getDtmfDigit();
    System.out.println("detected DTMF: " + digit);
    switch (digit) {
    case '0':
    try {
    mtc.stopPlaying();
    mtc.usePlayURL(new URL("file:./zero" + sExt));
    mtc.startPlaying();
    catch (Exception excp) {
    System.out.println("(7)"+excp.toString());
    break;
    case '1':
    try {
    mtc.stopPlaying();
    mtc.usePlayURL(new URL("file:./one" + sExt));
    mtc.startPlaying();
    catch (Exception excp) {
    System.out.println("(8)"+excp.toString());
    break;
    case '2':
    try {
    mtc.stopPlaying();
    mtc.usePlayURL(new URL("file:./two" + sExt));
    mtc.startPlaying();
    catch (Exception excp) {
    System.out.println("(9)"+excp.toString());
    break;
    case '3':
    try {
    mtc.stopPlaying();
    mtc.usePlayURL(new URL("file:./three" + sExt));
    mtc.startPlaying();
    catch (Exception excp) {
    System.out.println("(10)"+excp.toString());
    break;
    default:
    try {
    mtc.stopPlaying();
    mtc.usePlayURL(new URL("file:./greet" + sExt));
    mtc.startPlaying();
    catch (Exception excp) {
    System.out.println("(11)"+excp.toString());
    break;
    please help me in this problem , if you u can pls help me

    > Hi All my problem is exactly when u detect dtmf char
    can not stop playying wav file the code is below
    import java.net.*;
    import javax.telephony.*;
    import javax.telephony.events.*;
    import javax.telephony.media.*;
    import javax.telephony.media.events.*;
    import java.io.*;
    //class MachineCallObserver implements
    MediaCallObserver {
    class MachineCallObserver implements CallObserver {
    public void callChangedEvent(CallEv evlist[]) {
    TerminalConnection tc = null;
    MediaTerminalConnection mtc = null;
    for (int i = 0; i < evlist.length; i++) {
    CallEv ev = evlist;
    if (ev instanceof TermConnCreatedEv) {
    tc =
    tc = ((TermConnEv)ev).getTerminalConnection();
    mtc = (MediaTerminalConnection)tc;
    String sExt = ".wav";
    try {
    mtc.usePlayURL(new URL("file:./greet" +
    ./greet" + sExt));
    //mtc.useRecordURL(new
    ordURL(new URL("file:./Treeting" + sExt));
    catch (Exception excp) {
    System.out.println("(1)"+excp.toString());
    else if (ev instanceof TermConnRingingEv) {
    final TerminalConnection tcc =
    on tcc = ((TermConnEv)ev).getTerminalConnection();
    Terminal t = tcc.getTerminal();
    Address a[] = t.getAddresses();
    // For the callers name
    //setTitle(t.getName()+"bilal");
    // For the callers phone number
    //lblMisc.setText(a[0].getName());
    etName());
    System.out.println(a[0].getName()+"bilal");
    Runnable r = new Runnable() {
    public void run() {
    try{
    tcc.answer();
    catch (Exception excp){
    // Handle answer exceptions
    System.out.println( "hata2");
    Thread T = new Thread(r);
    T.start();
    try {
    tc.answer();
    catch (Exception excp) {
    System.out.println("(2)"+excp.toString());
    else if (ev instanceof
    anceof MediaTermConnAvailableEv) {
    tc =
    tc = ((TermConnEv)ev).getTerminalConnection();
    mtc = (MediaTerminalConnection)tc;
    try {
    mtc.setDtmfDetection(true);
    mtc.startPlaying();
    if (ev instanceof MediaTermConnDtmfEv)
    onnDtmfEv) mtc.stopPlaying();
    catch (Exception excp) {
    System.out.println("(3)"+excp.toString());
    else if (ev instanceof MediaTermConnStateEv) {
    tc =
    tc = ((TermConnEv)ev).getTerminalConnection();
    mtc = (MediaTerminalConnection)tc;
    try {
    int state = mtc.getMediaState();
    //if ((state == 0) &&
    e == 0) && (MediaTerminalConnection.PLAYING == 0)) {
    //mtc.startRecording();
    catch (Exception excp) {
    System.out.println("(4)"+excp.toString());
    else if (ev instanceof
    anceof MediaTermConnUnavailableEv) {
    tc =
    tc = ((TermConnEv)ev).getTerminalConnection();
    mtc = (MediaTerminalConnection)tc;
    try {
    mtc.stopRecording();
    mtc.stopPlaying();
    mtc.setDtmfDetection(false);
    catch (Exception excp) {
    System.out.println("(5)"+excp.toString());
    else if (ev instanceof MediaTermConnDtmfEv) {
    String sExt = ".wav";
    tc =
    tc = ((TermConnEv)ev).getTerminalConnection();
    mtc = (MediaTerminalConnection)tc;
    try {
    mtc.stopPlaying();
    catch (Exception excp) {
    System.out.println("(6)"+excp.toString());
    char digit =
    digit = ((MediaTermConnDtmfEv)ev).getDtmfDigit();
    System.out.println("detected DTMF: " +
    TMF: " + digit);
    switch (digit) {
    case '0':
    try {
    mtc.stopPlaying();
    mtc.usePlayURL(new URL("file:./zero" +
    file:./zero" + sExt));
    mtc.startPlaying();
    catch (Exception excp) {
    System.out.println("(7)"+excp.toString());
    break;
    case '1':
    try {
    mtc.stopPlaying();
    mtc.usePlayURL(new URL("file:./one" +
    "file:./one" + sExt));
    mtc.startPlaying();
    catch (Exception excp) {
    System.out.println("(8)"+excp.toString());
    break;
    case '2':
    try {
    mtc.stopPlaying();
    mtc.usePlayURL(new URL("file:./two" +
    "file:./two" + sExt));
    mtc.startPlaying();
    catch (Exception excp) {
    System.out.println("(9)"+excp.toString());
    break;
    case '3':
    try {
    mtc.stopPlaying();
    mtc.usePlayURL(new URL("file:./three" +
    ile:./three" + sExt));
    mtc.startPlaying();
    catch (Exception excp) {
    System.out.println("(10)"+excp.toString());
    break;
    default:
    try {
    mtc.stopPlaying();
    mtc.usePlayURL(new URL("file:./greet" +
    ile:./greet" + sExt));
    mtc.startPlaying();
    catch (Exception excp) {
    System.out.println("(11)"+excp.toString());
    break;
    please help me in this problem , if you u can pls
    help me
    hi my frinds this is code with out italic font

  • Problem with Packaging Material Type

    Hello all Gurus,
    I have a problem with a packaging material type that I have created copying the standrad Packaging material type LEIH. I created a new packing material type ZPAC - Packaging Material copying LEIH.
    I then created a new material master record using this new material type ZPAC.
    When I am using this material for packing in outbound delivery document - VL01N, I am getting the following strange error message:
    20333 does not have packaging material type and is therefore not a pack.mat.
    Please suggest me why this error is coming and how I can rectify this error. Is there any further configuration that I need to do for packaging material types??? Kindly suggest.
    Thanks and Regards,
    Umakanth.

    Hi,
    Material type is not enough, you have to maintain proper master data as well as config.
    At least please maintain value in MARA-VHART for the packaging material. Please also check these links how HUM works:
    http://www.sap-img.com/sap-hu.htm
    http://help.sap.com/saphelp_crm40/helpdata/en/c8/a44b779f3211d2858d0000e81ddea0/frameset.htm
    Regards,
    Csaba

  • Problem with Package Applications

    Ok, I'm trying to migrate an Apex Application from one server to a newer server....
    My custom app I used the theme from Go Live CheckList samples....
    Well, when trying to install that application I get 'Insufficient space to install application ' with a BIG red X...
    I was able to install other Package Application except for the one I need and now my application errors out because of
    some shared Themes....
    At first I thought it was a DB thing so I downgraded back to 10g from 11....but that didn't help...
    Apex works fine...
    Other samples work fine...
    Version Apex 4.2.2 and Oracle XE 10g...

    Yes,
    It errors out in 11g XE and when it was the only Application installed...
    I know the error sounds like the OS but I can't see it being the issue since the
    other server has less space and more application on it...
    Plus the database is empty ....
    The other one is Apex 4.2.1 .. I think there is a problem with 4.2.2 packaged applications..

  • Problem with package in Eclipse

    I am doing in Java codes. There is big problem with those error:
    package org.eclipse.emf.ecore.xml.type.internal;What I should to do that? Do you think I need to download some package from somewhere for Eclipse?
    I have already Eclipse. Please help me how to do that. Thanks.

    I wrote codes in there. But there is some errors in there because they said that I don't have package exist in Eclipse. I have no idea why.
    Those lists below got red line:
    package org.eclipse.emf.ecore.xml.type.internal;
    import org.eclipse.emf.common.util.WrappedException;
    import org.eclipse.emf.ecore.xml.type.InvalidDatatypeValueException;
    import org.eclipse.emf.ecore.xml.type.util.XMLTypeUtil;I tried to run it and the errors said:
    InvalidDatatypeValueException cannot be resolved to a type.
    The declared package "org.eclipse.emf.ecore.xml.type.internal" does not match excpected package"
    The import org.eclipse cannot be resolved
    WrappedException cannot be resolved to a type
    XMLTypeUtil cannot be resolved{code}
    What is wrong with it? Do you think there is missing plugin package or what? Where can I find a package for that?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • UnsatisfiedLinkError Problem.(Urgent)Pls Help!!

    Hi,
    I just want to run a swing under win98 OS platform and an error message appeared :
    Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\jdk1.4\jre\bin\awt.dll: An attempt was made to load a program with an incorrect format
    I have changed different version of JDK including 1.3.1 and 1.4beta, but the problem still exists.
    Is that any special setting need for running interface as I can run the java program in no trouble at all if there is no any interface.
    Another thing when i double click the java plug-in, there is an error message: "Could not found the main class. The Program would exit. ". How come?
    Pls Help and many thx.

    Post you code.

  • Re: itunes won't install due to problem with package.

    I've been having a similar problem--
    Here are the exact words: "The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2908." fyi, the message came up just after the installer began "updating component registration," if that is of any use. I've tried re-downloading it and restarting the computer. I've tried what the customer service reps told me which was to stop the iPod service and the apple mobile device service during installation but i couldn't find "apple mobile device" on the list. so i tried just stopping "iPod service". that didn't work. please, please help I am at my wit's end with this.
    Message was edited by: evenstar675

    Checking on something. In the course of your troubleshooting to date, have you worked through the general troubleshooting procedures (listed below the heading: *General Installation Troubleshooting*) from the following document?
    Trouble installing iTunes or QuickTime software in Windows

Maybe you are looking for