Problem with import statement !!!

Hi all,
When I'm compiling a java progam(client program in an EJB application) I'm getting the following error.
\ejb\converter\ConverterClient.java:14: '.' expected
import Converter;
^
\ejb\converter\ConverterClient.java:15: '.' expected
import ConverterHome;
^
2 errors
All files , Home interface , bean class , remote interface and client program are all in same folder. And no package statement is used.
When I had removed the above statements , it compiled well.But After when running the client (after every thing is done and deployed bean in J2EE server using deploy tool ), the following error is coming..
Binding name:`java:comp/env/ejb/SimpleConverter`
Application threw an exception:java.lang.NoClassDefFoundError: ConverterHome
Unbinding name:`java:comp/env/ejb/SimpleConverter`
Can any one suggest a solution with explanation ???
I'm using J2SE 1.4 beta 2 version. This J2EE SDK us designed for J2SE 1.3 . is this the reason ??
Thanks in advance..
ashok

Did you added the <your_ejb>.jar file to the classpath??
/Sreenivasa Kumar Majji.
Hi all,
When I'm compiling a java progam(client program in an
EJB application) I'm getting the following error.
\ejb\converter\ConverterClient.java:14: '.' expected
import Converter;
^
\ejb\converter\ConverterClient.java:15: '.' expected
import ConverterHome;
^
2 errors
All files , Home interface , bean class , remote
interface and client program are all in same folder.
And no package statement is used.
When I had removed the above statements , it compiled
well.But After when running the client (after every
thing is done and deployed bean in J2EE server using
deploy tool ), the following error is coming..
Binding name:`java:comp/env/ejb/SimpleConverter`
Application threw an
exception:java.lang.NoClassDefFoundError:
ConverterHome
Unbinding name:`java:comp/env/ejb/SimpleConverter`
Can any one suggest a solution with explanation ???
I'm using J2SE 1.4 beta 2 version. This J2EE SDK us
designed for J2SE 1.3 . is this the reason ??
Thanks in advance..
ashok

Similar Messages

  • Problem with import statement for user created classe

    I recently downloaded J2sdk1.4.0_03 before that I had jdk1.3 and never had this problem.All the files other than named package I import for my
    application does not compile.But when I commented that out it work just fine.
    any help is appreciated

    thanks
    It makes sense not to import non-packaged class.
    My other problem is with JDBC ODBC.I have a Dell system with Windows XP.
    I registered my User Data Source to ODBC with MS Text driver(.txt , csv).When the code reaches at the .executeUpdate(CREAT TABLE CUSTOMERS)
    it throws an exception
    sQLException 3:java.sql.SQLException: [Microsoft][ODBC Text Driver] Cannot modify the design of table 'CUSTOMERS'. It is in a read-only database.
    Do I really need to change the attribues or some thing else.
    How can I chane the attributes of the database.Never had problem with windows 98.

  • Problems with IMPORT STATEMENT

    Please, can someone assist me? I am using Java Studio Enterprise 8.1 & Netbeans to design a java application and input form. But the wizard keeps on generating repeated class and subclasses even after I have used the import statement. Its making my program looks clumsy.
    I just want to use import statement once and start using the variable in the program without repeating the declaration.
    For instance, after importing javax.swing.*, I just want to be able to specify in my program (e.g JPanel Coylogo) without the wizard generating another private javax.swing.JPanel Coylogo.
    How can I do it. Please help. I will appreciate
    You look at the following section of the program to unstand what I mean. Thank you.
    import java.awt.HeadlessException;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.sql.*;
    import java.text.ParseException;
    import java.text.SimpleDateFormat;
    import javax.swing.*;
    import java.sql.Date;
    * @author */
    public class inputForm extends JFrame
    private Connection con;
    private Statement stmt;
    private int k;
    ResultSet rs=null;
    // Variables declaration - do not modify
    private javax.swing.JLabel ClassLabel;
    private javax.swing.JPanel Connectivitypanel;
    private javax.swing.JPanel Coylogo;
    private javax.swing.JCheckBox DataCapable;
    private javax.swing.JLabel DateLabel;
    // End of variables declaration
    * Creates new form inputForm
    public inputForm()
    //con = new dbConnect();
    initComponents();
    con = dbconnection();
    /** This method is called from within the constructor to
    * initialize the form.
    * WARNING: Do NOT modify this code. The content of this method is
    * always regenerated by the Form Editor.
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">
    private void initComponents()
    Coylogo = new javax.swing.JPanel();
    PhoneType = new javax.swing.JPanel();
    PhoneIdLabel = new javax.swing.JLabel();
    ClassLabel = new javax.swing.JLabel();
    phoneid = new javax.swing.JTextField();
    DateLabel = new javax.swing.JLabel();
    Connectivitypanel.setBorder(javax.swing.BorderFactory.createTitledBorder("CONNECTIVITY"));
    pbluetooth.setText("Bluetooth");
    pbluetooth.setActionCommand("bluetooth");
    pbluetooth.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
    pbluetooth.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
    pbluetooth.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
    pbluetooth.setMargin(new java.awt.Insets(0, 0, 0, 0));
    }// </editor-fold>
    private void allPhonesTypeActionPerformed(java.awt.event.ActionEvent evt)
    }

    disable add imports or organize imports in your IDE

  • Problems with importing in FCPX

    I am having problems with importing my recent holiday video intoFCPX  I have copied all the files from my Panasonic camera into my separate hard drive and they all appear there correctly.
    When I connect the camera to the computer it automatically opens in iPhoto which is a nuisance as I have to stop it from doing so.
    Now comes the problem when I ask to import media into a new project FPCX simply freezes and stops responding.
    If I ask FPCX to import direct from the camera it says it can't re-import because all the material is already in the second hard drive where I store my projects.
    So in a nutshell the programme simply does not respond to importing.
    Any help please or is this a technical problem I have with my Mac.
    Thanks
    A new iMac version 10.9.2
    OS Mavericks
    FPC up dates are all installed

    First, what specific camera are you using?
    Next, create a folder on your hard drive, give it a name you'll recognize, then copy the entire contents of your camera card into it, keeping the full file/folder heirchy in tact.  Disconnect the camera.  Then import from that folder.
    What do you mean specifically when you say "the programme simply does not respond to importing"?  That is sort of a vauge statement.
    Finally, go into the Preferences of iPhoto, you can set it to NOT open when you plug your camera in, and never have that happen any longer.

  • Problems with importing text messages from PC Suit...

    Problems with importing text messages from PC Suit 7.1.18.0 to my Nokia 5800
     I am trying to import a csv file that contains text messages (Note that this file was created using PC Suit 7.1.18.0) to a subfolder that I have created to My Folders but PC Suits only imports the text messages to the Draft folder. Note that initially it shows that the messages are import in the correct folder but after a refresh it shows them in the Draft Folder. Is their any setting that I should change in the PC Suit or the phone? My computer runs on Windows XP Service Pack 3 and the Nokia 5800 was upgraded to the latest firmware v20.0.012
     Thanks for your help

    Most phones only allows importing of draft and archived box for SMS.
    To do a restoring, you need to backup the SMS as a .nbu file using PC Suite and restore later.
    If you got an SD card, you can also do a backup on the SD Card (backup.arc) then restore later (reset and restore: backup.arc and mmc).
    What's the law of the jungle?

  • Problem with READ Statement in the field routine of the Transformation

    Hi,
    I have problem with read statement with binary search in the field routine of the transformation.
    read statement is working well when i was checked in the debugging mode, it's not working properly for the bulk load in the background. below are the steps i have implemented in my requirement.
    1. I selected the record from the lookuo DSO into one internal table for all entried in source_packeage.
    2.i have read same internal table in the field routine for each source_package entry and i am setting the flag for that field .
    Code in the start routine
    select source accno end_dt acctp from zcam_o11
    into table it_zcam
    for all entries in source_package
    where source = source_package-source
         and accno = source_package-accno.
    if sy-subrc = 0.
    delete it_zcam where acctp <> 3.
    delete it_zcam where end_dt initial.
    sort it_zcam by surce accno.
    endif.
    field routine code:
    read table it_zcam with key source = source_package-source
                                                 accno  = source_package-accno
                                                 binary search
                                                 transportin no fields.
    if sy-subrc = 0.
    RESULT  = 'Y'.
    else.
    RESULT = 'N'.
    endif.
    this piece of code exist in the other model there its working fine.when comes to my code it's not working properly, but when i debug the transformation it's working fine for those accno.
    the problem is when i do full load the code is not working properly and populating the wrong value in the RESULT field.
    this field i am using in the report filter.
    please let me know if anybody has the soluton or reason for this strage behaviour.
    thanks,
    Rahim.

    i suppose the below is not the actual code. active table of dso would be /bic/azcam_o1100...
    1. is the key of zcam_o11 source and accno ?
    2. you need to get the sortout of if endif (see code below)
    select source accno end_dt acctp from zcam_o11
    into table it_zcam
    for all entries in source_package
    where source = source_package-source
    and accno = source_package-accno.
    if sy-subrc = 0.
    delete it_zcam where acctp 3.
    delete it_zcam where end_dt initial.
    endif.
    sort it_zcam by surce accno.
    field routine code:
    read table it_zcam with key source = source_package-source
    accno = source_package-accno
    binary search
    transportin no fields.
    if sy-subrc = 0.
    RESULT = 'Y'.
    else.
    RESULT = 'N'.
    endif.

  • Tempo problems with imported wav files

    Hey everyone, sorry if there's a quick fix for this in the forums that I couldn't find, but I've been having some tempo problems with imported .wav files.
    Long story short, my system couldn't handle playing all the tracks for a song while recording drums, so I bounced out an mp3 of the song and put it in a new Logic file so my drummer could just play along to that as I recorded him. Unfortunately, the original song is at 167 bpm, but I forgot to change the bpm in the new Logic file with the .mp3 file of the song to 167 bpm, so it was left at the default 120 bpm.
    So, the drums were recorded at the correct 167 bpm, but Logic thinks that those new drum .wav files should be played at 120 bpm, so when I import my drum tracks back into the original file, they do not play correctly at all.
    I could get record it all again, but I wanted to check if there was a way I could salvage what I already have, since my drummer lives about an hour away right now and can't just come over whenever he wants.
    Thanks for the help! I really appreciate it.

    Hi,
    First, do not use MP3 in Logic, the sound quality is less than AIFF, WAV or CAF, and Logic has to decode it for playback, making it a heavier burden on the CPU than an uncoded audiofile, such as AIFF, WAV or CAF.
    Secondly, audio files are independent of Logic's tempo. If you bounce down an audio file in any format (other than Apple Loop), it will play back at the same speed, +regardless of Logics' tempo setting+, either at recording or playback. Logic doesn't 'think' anything. The BPM is only important to MIDI tracks, or to the spacing between audio files. The audio files themselves *are not affected* by the tempo setting. If you import an audio file of tempo 167 into a 120 BPM project, the file will still play at 167, only Logic will indicate the wrong bar positions.
    regards, Erik.

  • Problem with import file type setting

    Problem with import file type settings - In preferences>general I select "wav encoder" But then going to tools>Create it still says "create mp3 version".
    Can't find a way to overcome this. Thanks for any help.

    Doublechecking, roy. After making the preferences change, are you leaving the General tab by clicking the OK button down the bottom-right-hand corner of the tab?

  • Hi, I have problem with importing MOV files from SJCAM 4000. MOV files are in supported formats for Adobe Premiere Elements 11. But if I'm importing MOV file, only audio part is imported, video part is not imported. How can I solve this problem?

    Hi, I have problem with importing MOV files from SJCAM 4000. MOV files are in supported formats for Adobe Premiere Elements 11. But if I'm importing MOV file, only audio part is imported, video part is not imported. How can I solve this problem?

    haben
    From looking at the specifications of your camera (SJCam 4000), we know already what video compression your camera is using. It is H.264.
    A H.264.mov file should be supported by Premiere Elements 11. On what computer operating system is your Premiere Elements 11 running?
    Do you have the latest version of QuickTime installed on your computer? And, are you running QuickTime and Premiere Elements 11 from a
    User Account with administrative privileges? Please go to Premiere Elements 11 Publish+Share/Computer/QuickTime to confirm that you find
    presets there for the QuickTime choice there.
    What are the properties of these H.264.mov files - is it 1080p30 (1920 x 1080p30)  or something else? Do you know if this camera is recording with a variable or
    a constant frame rate?
    Please review and consider and then we will decide what next.
    Thank you.
    ATR

  • Problem with importing

    Hi all, I recently downloaded elements 11, and I imported some photos okay, but now it starts to import, gets about half way, and a box saying elements organizer has stopped working. When I went into problem details, it said appcrash. any ideas wot be goin on. (Im importing photos in raw) Regards. Paul.

    Thanks for the reply jon. I was only importing 152 pics. off my nikon camera. I re downloaded elements 7 on to the puter, and they went straight on there with no trouble, so I would of thought they would go straight on to elmnts. 11. ho hum.and strange.
    Date: Fri, 18 Jan 2013 04:58:39 -0700
    From: [email protected]
    To: [email protected]
    Subject: Problem with importing
        Re: Problem with importing
        created by 99jon in Photoshop Elements - View the full discussion
    Hi Paul  What are your system specs. Raw files are usually quite large so the process could be draining your memory (RAM). Are you importing from camera or from your hard drive. In the case of the latter try importing one folder at a time or in smaller batches. You can select files and drag and drop into the organizer. You must drop on the dark gray area between the left and right side panels (if both panel are visible).
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5003831#5003831
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5003831#5003831
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5003831#5003831. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Photoshop Elements by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Problems with import slides powerpoint

    Hello,
    I have a problem with import slides from the powerpoint, when
    I try to import, the computer blow.
    What I can do?

    there have been lots of issues regarding this, however, I
    have found that if I export my ppt as individual jpeg slides I can
    then use the "insert > Slide > Image Slide" command to bring
    in my ppt slides, I have tried everything else as well but what was
    happening to me was Captivate 3 was losing all of my text and text
    animation. Now my animation is not critical, however, the text is
    very important of course. So now I have stagnat slides, a bit
    boring but at least I was able to finish my project.
    Hope this helps.
    Tony :)

  • Problems with import from textfile

    Hi
    We are experiencing problems with importing tables from a text-file. We are using Designer 6i (NT) release 2.
    Some of the column sequences are lost others are changed.
    Foreign keys are lost if the referenced table is after in alphbetical order! Not null columns are nullified and the column of the primary key definition is lost.
    Has anyone had similar problems and/or know of a workaround?

    Hi
    We are experiencing problems with importing tables from a text-file. We are using Designer 6i (NT) release 2.
    Some of the column sequences are lost others are changed.
    Foreign keys are lost if the referenced table is after in alphbetical order! Not null columns are nullified and the column of the primary key definition is lost.
    Has anyone had similar problems and/or know of a workaround?

  • A problem with importing layered PSD file into Flash

    Hi.
    There's a problem with importing layered PSD file into Flash.
    If I import a layered PSD file, some part the color of the lower layer is shown at the edge of objects or shadows. Instead, if I crop each layers first and import them, there's no problem.
    If the higher layer has brush or transparent effects, it becomes worse.
    Any help with this problem?
    Thanks.

    How was the original art created? Was the original RGB or CMYK? What is the resolution of the Photoshop file? Flash only works well with RGB and 72 pixel per inch resolution. If your original art is not set this way, then Flash will attempt to convert it as it imports it. Flash uses the sRGB color space. You'll get the best color translation if your Photoshop file is using this color preference.

  • Premiere Pro CS5: please help problem with importing a file error output "there was an error decompressing audio or video"

    please help problem with importing a file error output "there was an error decompressing audio or video"

    this is related to what adobe program/version?

  • Hi Guys, I have a problem with Importing Pictures onto my Mac mini with Lion installed by using a Card Reader, What is the problem here so I can get Pictures onto my Computer. ,

    Hi Guys,
    I have a problem with Importing Pictures onto my Mac mini with Lion installed by using a Card Reader,
    What is the problem here so I can get Pictures onto my Computer. ,

    Hi Noob Søren
    There are a few things that are confusing in your question.
    As far as I know, you dont have to install Time Machine on this OS as it is already installed for you. You only need to connect a hard drive to your computer via firewire or usb, click on the Time Machine icon, Open Time Machine Preference in the drop down menu and select a disk: your connected hard drive.
    You can of course reformat this connected device, partition it into a few volumes to organise data if you so wish.
    I find it strange that your mac's hard drive is divided into two volumes... perhaps this was created through bootcamp?
    You can access the configuration of your hd through Applications/Utilities/Disk Utilities.
    Clicking on one of the icons on the right hand panel will bring the details of the contents of your hardDrive and volumes. From there you can decide to erase a partition, reformat etc....
    If your hd contains more than one volume, and one of them is empty, you could decide to remove it. Back up all your important data before doing so.
    Hope this helps
    WN

Maybe you are looking for

  • What's wrong with my card reader?

    My Macbook pro OSX gave me an "SD card unexpectedly removed" message even though the card didn't come out of the slot. Now, when I put the card in, my computer won't read it. It has always read it in the past. Help??

  • Print Pop up with file name

    Hi all I need to pop up a print screen as in excel or word.. like the pop up should include 'File Name, no of copies etc.' Mainly it should ask for the file name.... I used the FM "GET_PRINT_PARAMETERS", but it is not asking for the file name.... my

  • Advance Aggregation based on multiple conditions

    Hi members, I have a situation where I need to aggregate data based on multiple conditions. Relevant details of the problem is as follows. There is a table (let's call X). It has following columns: Transaction_Time (date) Transaction_direction (Possi

  • Audio transcription: how to make it work?

    Hello dear Premiere users, I am evaluating Premiere Pro for its audio transcription feature, and I can't make it work. I use Windows 7 64 bits. My knowledge of Premiere Pro is limited so I might be missing a step. Here is what I do: (Since I am using

  • Confirmation status on Sales order

    Hi Gurus! How can we change the "Confirmation" status on the Sales order (on Status Overview)? Which actions allow to impact this status? Thanks for your help. Stéphane.