Problem with package imports

Hi all,
When I use the code
import javax.mail.*;
import javax.mail.internet.*;the message import javax.mail.*; cannot be resolved is shownI have added jaf-1_1_1.zip and javamail-1_4_1.zip to the project's build path in eclipse.
Then why do I get this error message?
Rony

Hi Rony,
Check jaf-1_1_1.zip and javamail-1_4_1.zip files contain jar files.
If jar files are there then check for javax.mail directory in jar contents.
If this file directory is there in the jar files then, do project clean up for re-compiling the java files.
If still doesn't work then check for similar jar files in the classpath settings, if there are remove un-necessary jar files.
I am sure this will work. All the best!!

Similar Messages

  • Problem with export / import

    Hi everybody, I am having a problem with an import. I am doing an export with a value in an user exit:
    EXPORT V_NLQNR = V_NLQNR TO MEMORY ID 'QUANTL'
    And after I call import in another program:
    IMPORT V_NLQNR = V_NLQNR FROM MEMORY ID 'QUANTL'.
    But when I check the sy-subrc I am getting 4, so I don't get anything.
    Does anybody why?? Is there a problem if I call the export from an user exit??
    Thanks in advance.

    Hello,
    I think you have the right idea.
    As a suggestion I would name my variables to make it clear which data is being
    exported/imported. I would also use different names on the left and right side of the = sign. 
    Here is a working example from programs that I use:
    In the first program
       EXPORT intercodata FROM g_data_exp TO MEMORY ID 'INTERCOWOS'.
         where g_data_exp is declared as a global variable
    In the second program
       IMPORT  intercodata TO g_data_imp FROM MEMORY ID 'INTERCOWOS'.
         where g_data_imp is declared as a global variable
    The syntax that you use ( p1 = dobj1 )  should work as well, just make sure that the variable v_nlqnr to the right of the equal sign has a value before the export.
    Regards
    Greg Kern

  • Rather odd problem with package naming...

    Background info:
    I'm working on a web-based application, on a Tomcat server. Classes (and packages) must be in a subfolder of WEB-INF/classes of the app's root. So the packages are in WEB-INF/classes/com/<package>.
    The older packages are in com/gestion (for the package com.gestion ) and the newer ones are in com/incsolution/<various> where <various> can be either chart, util or pgm - following convention more closely.
    OK! We have a class called SqlBean in com.gestion, which starts off like so:package com.gestion;
    import java.sql.*;
    import javax.sql.*;// stock pour pooled connection c'est dans javax.sql
    import javax.naming.*;
    import java.io.*;
    public abstract class SqlBean
        ...rest of code...
    }and is used in several other objects, like TransferQBean.java, which is in the same package:
    package com.gestion;
    import java.sql.*;
    public class TransfertQBean extends SqlBean
       ...rest of code...
    }Now, i've been working (with others) on this project for 2 years now, and up until last week, there was no problem with the way things were called. Come Monday (April 11), the classes won't compile any more - gives me this error:
    classes/com/gestion/TransferQBean.java [5.1] cannot resolve symbol
    symbol : class SqlBean
    location: class com.geastion.TransferQBean
    public class TransferQBean extends SqlBean
    ....................................................................^
    Now if i add classes to com.gestion to get...
    package classes.com.gestion;
    import java.sql.*;
    public class TransfertQBean extends SqlBean
       rest of code...
    }and same for SqlBean...
    package classes.com.gestion;
    import java.sql.*;
    import javax.sql.*;// stock pour pooled connection c'est dans javax.sql
    import javax.naming.*;
    import java.io.*;
    public abstract class SqlBean
       ...rest of code...
    }...it works, but that's not how it's supposed to be. What puzzles me the most is how this came about suddenly.
    Anyone have an idea what might be causing this? AFAIK, it's abnormal...
    JH

    classes/com/gestion/TransferQBean.java [5.1] cannot resolve symbol
    symbol : class SqlBean
    location: class com.geastion.TransferQBean
    public class TransferQBean extends SqlBean
    ....................................................................^The solution to your problem is simply that your classpath is incorrect at compile-time. How you fix that depends on how you compile (from an IDE, from the command-line javac tool, etc). But whatever you do, don't make your solution depend on a system environment CLASSPATH variable.

  • 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?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Hai ,problem with packages

    Hai all,
    i got a problem with user defined packages .i have one class under one package "sg.km" n the class name is kmc.class n i want to use that sg.km.kmc in some another class that is also a part of sg.km package .i hope i'll get reponses to my prob asap.
    thanks in advance
    yours
    srinu kumar reddy

    You should not need to import a class that is in the same package.
    You did not post enough information for me to give you a good answer. You should always post an error message along with any command you entered. All you said was, "i got a problem." We don't know if your problem is with compiling, running, jar file, applet, etc.
    You need to have a directory structure that matches your package. The kmc.class file a sg\km directory path. For example, c:\myjava\classes\sg\km\kmc.class. Then you need c:\myjava\classes directory in your Classpath both for compiling and running.

  • Problems with package hierarchy

    If i create a simple package hierarchy like this:
    -trial
    - trial.subTrial
    and if i put an abstract class on trial, i cannot extend it on package subTrial (a strange error occur, saying that i'm not overriding the abstract methods, when in fact i am) . But if i put everything on the same package it's no problem!!
    I don�t know if this is a problem of the IDE (i'm using netbeans), i tried with a very simple example, outside of the project, to see if it was a problem with my code, and the same errors occurred, or if it's some hierarchy concept i'm violating.
    Does anyone knows anything about this?

    Nop, that's not the case!! As i said, i made a project just to try this.
    This is the code of the only 2 classes of the project:
    package trial;
    public abstract class Trial {
    abstract void function1();
    abstract void function2();
    void function3(){
    System.out.println("BLA");
    } // End of Trial Class
    package trial.subTrial;
    import trial.Trial;
    public class SubTrial extends Trial{
    void function1(){}
    void function2(){}
    }// End of SubTrial Class

  • Problem with packageing and deploying a sample application

    HI,
    I have tried to download and install the server in my system. I am able to deploy a sample application using autodeploy utility.
    But when i tried to package a new sample application and deploy i am getting 404 error. For application server i have used 7070 port and not the default 8080 port will this a problem to package & deploy sample application provided with this software.
    The error is as below:
    HTTP Status 404 - /hello1
    type Status report
    message /hello1
    description The requested resource (/hello1) is not available.
    Sun-Java-System/Application-Server

    Btw, verify that the url you are trying to access is correct. For instance, assuming you deploy app. without --contextroot option. By default,  the url is http://<host>:<port>/<web module name>/<value of url-pattern in web.xml> if your app contains servlet. If your app has jsp then it's http://<host>:<port>/<web module name>/<value of url-pattern in web.xml>/<name of jsp>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Performance and usability problems with Illustrator imports

    I am usually an enthusiast advocate for Adobe Software. As a UI/Interaction designer I regularly showcase your products as a shining example.
    That's why I am somewhat frustrated about the Flash Catalyst Beta. I trust you guys to come out with SOMETHING GREAT eventually, but I have just spend an entire day with Catalyst and it was not particularly a joy. Couldn't you have released it a bit later to save me the frustration?
    Situation:
    - Medium size Adobe Illustrator CS4 import (10 screens/stages with 20-100 Illustrator objects per screen)
    - Target : 800x600 embedded UI for medical product
    - Illustrator file chosen as starting point
    Performance / reliability problems include
    - Crashing (Vista Core2Duo with 2gig of Ram)
    - Super poor performance (wait 8 seconds to hide/show a layer)
    - No show of thumbnail images anywhere
    - No matching of document size (exact 800x600 from Illustrator became 800x599)
    - Playing the file did not work
    Usability issues
    - Poor test display
    - Poor match with Illustrator file (things seem to be rendered differently!)
    - Window selecting does not work well
    - No hand tool
    - No ability to lock layers
    - Cluttered interface (Not enough space for the "stage"or what you call it)
    - No way to resize Illustrator elements from one of 9 edge/center points
    - etc. etc.
    Building a wireframe version from the ground up (with Illustrator import) seemed to work fine
    I played around with the MS Blend beta for a while, and while the basic concept of your product is much more clear, the execution of the MS product in the beta phase was lightyears ahead in terms of stability and usability
    I'm sure you can do better!
    Koen

    Koen,
         Thank you for the detailed feedback about the performance problems you have experienced and your thoughts about features you would like. Let me respond to each of your points
    Performance: We are aware that Catalyst doesn't perform well with large complex files. We have made many performance improvements since the current plublic beta, so you should find Catalyst more responsive with larger projects when the next beta is posted.
    Here are a few things you can do to work around the performance issues you are seeing with the current beta:
    - Consider rasterizing complex elements that don't need to scaled in Catalyst
    - In Catalst turn complex artwork into optimized graphics using the "Convert to optimized graphics" in the float HUD (heads up display panel)
    We have also found that particularly on Windows that Catalyst can run out of memory with large files. This area is also being worked on so stay tuned for the next beta.
    Features:
    - Poor test display [tv] Do you mean the design display doesn't match the appearance of the published project?
    - Poor match with Illustrator file (things seem to be rendered differently!) [tv] we have fixed a lot of bugs here. Expect this to improve a lot in the next beta
    - No hand tool - [tv] coming soon :-)
    - No ability to lock layers [tv] coming soon :-)
    - Cluttered interface (Not enough space for the "stage"or what you call it) [tv] Yes, Catalyst currently cannot dock/undock panels
    - No way to resize Illustrator elements from one of 9 edge/center points [tv] This is also a known limitation. I agree it is useful
    I hope the next beta comes closer to meeting your expectations. A lot of performance work and new features has been done since the last public posting, so look forward to beta II.
    - Ty

  • Problem with EXPORT IMPORT PROCESS in ApEx 3.1

    Hi all:
    I'm having a problem with the EXPORT IMPORT PROCESS in ApEx 3.1
    When I export an application, and try to import it again. I get this error message
    ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful. ORA-06550: line 16, column 28: PLS-00103: Encountered the symbol &amp;quot;牃慥整㈰㈯⼴〲㐰〠㨷㐵㈺′䵐&amp;quot; when expecting one of the following: ( - + case mod new not null &amp;lt;an identifier&amp;gt; &amp;lt;a double-quoted delimited-identifier&amp;gt; &amp;lt;a bind variable&amp;gt; avg count current exists max min prior sql stddev sum variance execute forall merge time timestamp in
    As a workaround, I check the exported file and found this
    wwv_flow_api.create_flow
    p_documentation_banner=> '牃慥整⠤㈰㈯⼴〲㠰〠㨷㠵㈺′äµ
    And when I replace with this
    p_documentation_banner=> ' ',
    I can import the application without the error.
    somebody knows why I have to do this??
    Thank you all.
    Nicolas.

    Hi,
    This issue seems to have been around for a while:
    Re: Error importing file
    I've had similar issues and made manual changes to the file to get it to install correctly. In my case, I got:
    ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful.<br>ORA-02047: cannot join the distributed transaction in progress<br>begin execute immediate 'alter session set nls_numeric_characters='''||wwv_flow_api.g_nls_numeric_chars||'''';end;There are several suggestions, if you follow that thread, about character sets or reviewing some of the line breaks within pl/sql code within your processes etc. Not sure what would work for you.

  • Problem with movies imported from iPad3

    Whenever I import footage into imovie, the footage looks good. When I put that footage into a project it stutters.
    It doesnt matter if I specify 24fps or 30fps, the movie judders and stutters.
    I do not have this problem with movie footage imported from any other device.
    Any ideas?

    Whenever I import footage into imovie, the footage looks good. When I put that footage into a project it stutters.
    It doesnt matter if I specify 24fps or 30fps, the movie judders and stutters.
    I do not have this problem with movie footage imported from any other device.
    Any ideas?

  • Getting Started with FCE - Problems with my imported files

    Hi,
    I'm trying to get started with Final Cut Express, but I'm experiencing lots of problems when I import my project from iMovie.
    My project contains video, which I imported into iMovie at 960 x 540. It also contains some keynote animations, which I exported from Keynote as quicktime files.
    When I export my files to FCE, I instantly get problems.
    1) When I add the imported file to the sequence, I get an "Attention the clip does not match the sequence's setting or any of your sequence settings" error.
    2) Whether I choose to translate my settings or not, I try to play the video in the timeline, but there is a continuous beeping sound, no audio from my video and when it hits the keynote animations, it just says "unrendered" or "media offline".
    Please can you offer any advice on how I can get started with FCE more successfully.
    Thanks!

    Hi(Bonjour)!
    (please specify iMovie and FCE version)
    Well, your sequence settings in FCE should be DV-PAL 48 Khz.
    Create a new sequence.
    From iMovie and Keynote, export your movie with quicktime conversion andd select DV-PAL 48 kHz (*And Not* DV Stream...). This material should play without rendering because his format and codec match the sequence's codec.
    Import your files and everything should be OK.
    Michel Boissonneault
    The audio should be AIFF 48 kHz 16 bit linear PCM

  • Problem with the imported video clips

    Hi! I'm very new to Premiere Pro, so please don't scold me :)
    I have a video file (.AVI) that I want to remove the audio from, and insert a new audio track.
    Here's my problem: When I import the AVI file into Premiere, and double-click it to preview it, it is really glitchy. The video is 1 minute long. During ~5 seconds in the very beginning, the whole video's "video" track is played, extremely speeded up (It plays through it all). The rest of the video consists of a freezed frame, and the audio is played in normal pace.
    I do not know which codec the AVI-file is encoded with, is this relevant?
    When I restarted Premiere the first time, it told me that it had to download codecs. I pressed OK and the codecs was downloaded and installed okay, but the problem remains.
    I copied the .AVI-file directly from my camera (Canon IXUS 700 I believe).
    When I play the original AVI file with VLC, everything runs perfectly with audio and video.
    I'm totally clueless, anyone have a clue how I can solve this?
    Any help at all appreciated, thanks in advance!

    >I do not know which codec the AVI-file is encoded with, is this relevant?
    Very relevant. Please provide
    these details to help us help you.
    Cheers
    Eddie
    PremiereProPedia   (
    RSS feed)
    - Over 300 frequently answered questions
    - Over 250 free tutorials
    - Maintained by editors like
    you
    Forum FAQ

  • Problems with .aaf import in premiere pro cc

    Hi,
    So I'm having problems with importing an aaf file into premiere. The weird thing is it was working about a week and a bit ago, then stopped. I can't work out why, to my knowledge nothing has changed but if someone could point me in the right direction that would be massively appreciated.
    I'm using premiere pro cc and avid media composer. I'm trying to export from avid and import into premiere. I'm creating an .aaf file in avid and trying to import into premiere. When I press import, the progress bar comes up and gets stuck instantly. I can close the aaf import window, but then it leaves the import files progress bar still up and premiere stops responding completely.
    At first it worked fine, within premiere I can still use the aaf files already imported, I just can't import more (I can't even import the files I had previously done successfully). I just can't work out why?
    Any help would be massively appreciated,
    Thanks,
    Jack

    Hi Jack,
    Please check the below Forum thread and roll back to the Initial version 7.0 of Premiere Pro CC. You can choose to update Premiere Pro CC to the desired version from the below links.
    http://forums.adobe.com/message/5827476
    Updates:
    For MAC:
    http://www.adobe.com/support/downloads/product.jsp?product=98&platform=Macintosh
    For Windows:
    http://www.adobe.com/support/downloads/product.jsp?product=98&platform=Windows
    Regards,
    Vinay

  • 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

  • Problems with event import on iMovie 10.0.3

    My complete movie libraries works fine with iMovie 9.0.9. There are no other malfunctions. The filessystem is clean.
    After upgrading to iMovie 10.0.3 the initial startup event and project update process fails on serveral older events and I have problems to import this events folders.
    Why does V. 10.0.3 has problems with some older events ?  What to do to get this files properly ?
    Thanks in advance for any help.
    Alexander

    when i try to move them together this happens..?

Maybe you are looking for