Standard java libraries "do not exist"

I'm fairly new to Java programming, and, well, programming in general. I've been building small, simple java programs for a couple of months now.
But all of a sudden (after a short period of not coding anything) I tried to write a program with that imported a standard java library (javax.sound.midi), and on compile, got the error message "package sound does not exist." Upon trying other packages, I've found that none of them work. Not Swing, not even util. This hasn't happened before. I've written plenty of other programs that imported standard libraries with no problem. I've tried mussing with %CLASSPATH% to no avail, (namely setting it to "C:\j2sdk1.4.2_04\jre\lib" among other things), and at best can cause it to not be able to find java.lang anymore.
What gives?

error message "package sound does not exist." I question if your import statement is valid - how come the complaint is about the sound package (a non-existent package) rather than javax.sound.midi?
I tried various invalid imports, though, and couldn't duplicate that exact error text.

Similar Messages

  • Package java.servlet does not exists

    I am getting this error:
    c:Program Files\Java\jdk1.6.0_10\bin>javac -Xlint HelloServlet.java
    HelloServlet.java:2:package java.servlet does not exists
    import java.servlet.;
    ^
    HelloServlet.java:4; cannot find symbol
    symbol: class GenericServlet
    public class HelloServlet extends GenericServlet
    ^
    5 errors
    i am using jdk1.6.0_10. i tried to locate the servlet.jar file in the \lib directory, but the jar file was not there. how can i download one and include it in \lib?
    import java.io.*;
    import java.servlet.*;
    public class HelloServlet extends GenericServlet {
    public void service(ServletRequest request, ServletResponse response) throws ServletException, IOException {
    response.setContentType("text/html");
    PrintWriter pw=response.getWriter();
    pw.println("<B>Hello!");
    pw.close();
    }

    jatilau wrote:
    forgive my ignorance.That's ok, we're all here to learn; but while (most) people on the forums are smart, they're (unfortunately) not all-knowing. They can't possibly know something about you or your environment unless you tell them.
    it is because i have no one to look up at for help with java, except for the book (The Complete Reference, Java 2, 3rd Edition, Naughton & Schildt) and, of course, some times this forum.There's the whole Internet available to you. Remember, Google is your friend.
    please, will anyone tell me how to find out what server type and version does JDK 1.6.0_10 provide? It doesn't. Java comes in three 'editions':
    Micro (JME, earlier J2ME which is meant for mobiles and other similar platforms)
    Standard (JSE, earlier J2SE which is what you're using, it's meant for core Java applications, like the sort you might use on your desktop.)
    Enterprise (JEE, earlier J2EE which is for server side code. This includes JSPs, Servlets, EJBs etc)
    i did not find any information about this in the book.Probably because it's a Java 'Standard' Edition (JSE or J2SE) book
    What you need, to learn about servlets, is a JEE book. I'd suggest Head First Servlets and JSP from O'Reilly. Otherwise, follow the link I gave earlier to find tutorials.
    To get started, you'll need a JDK, which you say you already have and a server. I'd suggest you get Tomcat. You will also find the servlet-api.jar after you setup Tomcat. This is an implementation of the JEE specification for servlets. This contains the javax.servlet.* packages you'll need to compile. Beyond this, the scope of what servlets are and how to deploy etc is rather large and best left to one of the afore-mentioned tutorials.

  • WD Java - Type does not exists

    Hi folks,
    we use the RFC Import in WebDynpro JAVA and import a function module of name like /tyed/myFunction where /tyed/ is a namespace.
    when running that application we get an error on a structure which is of name like /tyed/myStructure and in JAVA the namespaces are translated from /tyed/ to __tyed__
    The dump says com.sap.dictionary.runtime.DdException: Type ordmon.types.__Tyed__Atcp_S_Ordmon does not exist
    But these data-types do exist? are there any known problems with namespaces ???? or what could that be.
    kind regards
    oliver

    Hi Oliver,
    The most likely reason for this kind of an error could be the follows
    •     The backend to which to connect at Runtime is not the same as the backend from which you imported the model. This could cause inconsistencies. You need to run with the same backend from where you imported your model or the version of the RFC in the backend used at runtime must be compatible to the one used to import the model.
    •     Data types have changed in the backend, such that the “Type” you imported earlier no longer exists. You need to re-import the model again.
    Regards,
    Arun

  • Package java.math does not exist!!!

    hi java experts, i really desperately need some help. ihave been trying to compile a java program i have written that imports the java.math package as i am using the BigInteger class. I am using SUN ONE STUDIO ME 4 and have j2se SDk installed. when i try to build the program in the IDE, it gives me an error message saying the java.math package does not exist. i can't understand why. i think it's an IDE problem. i tried mounting the filesystem and i mounted almost a million times in diff ways but it still can't compile. i can't find the directory of the java.math to mount into. anyway i tried to compile it at the command prompt and it can compile but with errors... so i figure that i do have the java.math class on my system just that the IDE jsut can't recognise it. i am at my wits end and gonna go mad if someone doesn't please help me.
    adeline from singapore

    java.math package will be there in jdk_dir\jre\lib\rt.jar. You need to set the classpath variable in your IDE for this jar file. There must be some means to edit the IDE's classpath variable.
    i mounted almost a million times in diff ways but it still can't compileIf it takes one minute for each mount then total time you have taken = 10000000 minutes = 166666 hours = 6944 days = 19 years (roughly). Java was not there 19 years ago.
    Sudha

  • Error in WF Customizing, Standard task TS00008267 does not exist

    Hi Experts,
    I need your help with the Workflow Customizing (SWU3). After doing the automatic customizing, I am getting an error "Workflow: No workflow definition found" when I try to start the Verification Workflow. So I decided to execute each component in SWU3 and I found out that when I execute "Classify Decision Task as General", (though it is checked/green), it says that "Object TS 00008267 does not exist".
    I checked in tcode PFTC that the task is really missing in our Development server, though they exist in QA and production.
    What should I do to get this fixed? I really don't have any idea. Should I apply a patch, install something, or create TS00008267? I can't find anything on the net that solves this problem.
    Thanks in advance.
    Regards,
    DN

    Hello Dexter,
    I see you loked at the other tread which I just responded to. I have copied my reply below.
    If you find that all tasks are missing and not just TS00008267 then it is most likely an authorisation issue. Run transaction
    SU53 to see what authorisation objects your user is missing. It is related to Org Management authorisations.
    If you have to transport it try transaction SE01 (Transport Organiser) it is possible to transport from system to system. Just click on Create button and then select 'Transport of copies'. Then just enter you target system and save. You can then add the
    objects you wish to transport to your Target system.
    Example:=============================
    R3TR PDTS 00008267
    In SE01, click Create => Transport of copies
    => Name the request and save
    => Click 'Include Objects' button and choose 'Freely selected
    objects'.
    =>Enter the Development class SWD and click 'Selected
    Objects'. F4 at the bottom of the list (Under the DTEL
    entry) and select the entry "R3TR PDTS" and click OK.
    Now enter the task ID 00008267 in the dialog box
    opposite it and click the checkbox (See attached screen
    shot) and then click the Execute button.
    => Expland the list and goto the task
    => Select 00008267 and click the "Save In Request"
    button.
    You can do this with any standard tasks you want to transport to your system.
    Hope this helps.
    Regards,
    Eddie

  • Acrobat 9 Download on Wondows 8.1 produces Error 1309 and 2318: Adobe/Standard/Data.cab does not exist

    Has anyone had this error during download on Windows 8.1?  Thanks

    Hi Bryan,
    Thank you for posting on the Adobe forums, this error occurs when the installer cannot locate the Data1.cab file on your system or the required files with in the Dat1.cab is missing.
    The only resolution to it is to download again, also, Acrobat 9 is not tested and developed for Win 8.
    Thanks,
    Vikrantt Singh

  • Jdk1.3.1 'com.sun.java.swing does not exist'???

    Thats what the compiler tells me, though it finds javac with no problem in the
    jdk1.3.1 lib directory. Any clue to what I'm missing here? Thanks nt

    Swing used to be in the com.sun.java.swing package in the very earliest releases, but now it is in the javax.swing package.

  • Package java.nio package does not exists

    I am trying to move some steps in java environment.
    I am using a Windows98 O.S.
    I downloaded jdk1.3 for Windows from sun site and installed it in c:\jdk1.3.1_02
    I have set path variable as .....;c:\jdk1.3.1_02\bin
    I am trying to compile a java source including java.nio package.
    What I do is:
    javac example.java
    What I get is:
    package java.nio does not exists
    I saw a lot of documentation about how to use java.nio but not how to link it.
    Any help I appreciate.

    Package java.nio is introduced with the version 1.4

  • Standard segment E1EDKA1 not existing in PRICAT01

    Dear Experts,
    I have created a custom segment YE1EKKA1 with few fields and have to add to the standard segment E1EDKA1 of PRICAT01
    Idoc.But standard segment E1EDKa1 is not existing in PRICAT01 Idoc so that I am unable to add my custom segment YE1EDKA1 to
    E1EDKA1.Can u please suggest me how to over come this.
    Thanks in Advance,
    Farook

    Hi Farook,
    probably it is simply a misunderstanding? The Pricat01 has the segment E1ADRM1 and it is really similar to E1EDKA1. If you compare both segments it is really easy to see.
    Probably you should add your custom segment to this group.
    Hope this helps.
    Regards,
    SDCrack

  • Importing third-party java libraries

    I have just downloaded jakarta httpclient and am trying to get it to work with a program I am writing. Are there instructions somewhere on importing third-party libraries? I've searched these forums, the tutorials, and even google and haven't found any. Or can someone just tell me how to do it?
    Basically I have a folder with a list of java files. I run javac program.java to compile and then java program. The one thing I have seen in these forums is about setting the classpath, but no specifics on what to set it to. Basically I have a folder with the source called java. The only subfolder there is org, the next subfolder is apache, next is commons, then httpcliet, and then all the actual java files with a few other folders with the java files in them. It gives examples in the folder src which is the parent of java. In src there is a folder called examples. The relevent import statements are:
    import org.apache.commons.httpclient.HttpClient;
    import org.apache.commons.httpclient.MultiThreadedHttpConnectionManager;
    import org.apache.commons.httpclient.methods.GetMethod;These are all valid files under the folder system, yet it gives me the error : package org.apache.commons.httpclient does not exist for the first 2 and package org.apache.commons.httpclient.methods does not exist.
    There are also errors resulting from it not recognizing the import statements. Can someone help me please?

    I had a choice between source and binary, if I
    download the binary, should I put the jar file inthe
    folder with the rest of my *.java files?You can, but I'd advise against it because it gets
    messy and confusing.
    Or do I have
    to put the whole folder (with the API, liscense,
    readme, etc. in it) in the same folder as MY codeor
    do I just need the .jar file? You just need the jar file. Don't unpack the jar
    file; the standard java libraries know how to deal
    with a jar file just fine.
    More-or-less standard practice would be to create a
    directory hierarchy like this:
    project_name/
    project_name/lib/
    project_name/src/
    project_name/classes/
    Put the jar files in project_name/lib. Put your java
    source files (the ones that you're creating) into
    src/, and when you compile, put the compiled class
    files into classes/ (use the -d option to javac to do
    that). When you compile and run, include both the
    classes/ directory and the jar files (note: NOT the
    lib/ directory, specify the individual .jar files) in
    the classpath.So do I need the absolute path of the .jar file? If I were to put it in the same folder as my source could I just specify as
    javac -classpath whateverjar.jar MyFile.java
    or do I have to do javac -classpath C:\my folder\my other folder\etc\projectName\lib\whateverjar.jar MyFile.java?
    Thanks

  • I have windows 7 64bit. When i installed firefox and then java, i do not have java tm platform or any java plugin. I can't watch free movie's online!!

    As i told i have Windows 7 Ultimate 64bit version. I install java and have problems with Java Deployment Toolkit and Java(TM) Platform SE. It won't show in add-on. I cant watch movies. When I play movie it says java is missing but when I use IE I can watch some movies. I try reinstaling Java and even reinstall Windows. But problem was still there. I run java check (from Firefox) to see if java is installed and it confrmed. I even try diferent versions of Java and Mozilla. I even use JDK and JRE. I install java for 64bit and mozilla is also for 64bit version of system.
    I have another laptop with 32 bit version and everything works great. Installation procedure was same (only used 32bit versions of softwares).
    When I go to control panel and java options (windows 64bit) enable java content in your browser is marked. But in advanced tab default java for browser (mozilla family) is unmarked. And when I mark box and leave (apply then ok) and return box is empty. It wont confirm. In 32bit version of laptop i have alsou java plugin but in 64 bit it is not there. Here is a picture what I was talking about. This is on windows 32 bit for 64bit is some just box for mozilla family is empty and under that java plugin do not exist.
    [code]http://s23.postimg.org/dl4dun4p7/Untitled.jpg[/code]
    hope someone have solution!!

    you don't have to reinstall firefox or java, you can just download and install the 32bit-java next to your currently installed java version. it should then be picked up by firefox and be displayed under firefox > addons > plugins...

  • ASAP Is any Java libraries exist to modify Excel file and PDF file

    Is any Java libraries exist to modify Excel file and PDF file. I know about the third party libraries like Apache poi and many more. But I want to know about java libraries not the third party tools.

    Souvik_Software wrote:
    I don't know what you guys want. I simply asked for a answer and because me want it urgently that is why I have written "ASAP". But I think you are more energetic in fighting not with the answer. Thanks for the help.By flagging it with words as "ASAP" and "Urgent" your are implying that your question is more important than other people's questions or that your time is more valuable than the time of people answering questions here. So you see, by doing so, you sound rather selfish.
    But, the answer to the question in your original post is: "no, there are no classes in the core Java API that do what you want". Simple.

  • Java.lang.IllegalArgumentException: Session: null does not exist

    These days I am getting an exception (java.lang.IllegalArgumentException: Session: null does not exist) when I restart the weblogic managed server. I have a work around to get away with this error. I completely delete the dataspace from ALDSP console and redeploy the artifacts jar file. This is a tedious process. Can anyone suggest a permanent fix to resolve this issue.
    ALDSP version: 3.01
    Weblogic Server: 9.2.2
    Thanks.

    Hey ,Can you please help me?can you tell me how you resolved this issue.Our production is down due to
    java.lang.IllegalArgumentException: Session: null does not exist.
         at com.bea.dsp.management.persistence.primitives.ServerPersistencePrimitives.getDataspaceRoot(ServerPersistencePrimitives.java:118)
         at com.bea.dsp.management.persistence.primitives.ServerPersistencePrimitives.getDataspaceRoot(ServerPersistencePrimitives.java:73)
         at com.bea.dsp.management.activation.ActivationService.dataSpaceAlreadyExists(ActivationService.java:342)
         at com.bea.dsp.management.activation.ActivationService.setRequestHandlerClassLoader(ActivationService.java:206)
         at com.bea.ld.server.bootstrap.RequestHandlerListener.postStart(RequestHandlerListener.java:46)
         Truncated. see log file for complete stacktrace.
    Its urgent plz

  • ChaRM class java.io.IOException:The file does not exist on the filesystem

    Hi All,
    We are implementing ChaRM with Portal. While deploying we are running into following issue.
      Deployable-Id:/usr/sap/trans/data/GPSK90001B/sktp14_20100806_095633.epa
      Returncode:'12'
      class java.io.IOException:The file (/usr/sap/trans/data/GPSK90001B/sktp14_20100806_095633.epa) does not exist on the filesystem.
    Any suggestion.
    Regards,
    Smita

    We resolved this issue by sharing the trans file across SolMan and Portal system.

  • Java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist while invoking a DBAdapter

    I have a WebService which is invoked , the request is routed through the mideator to the DBAdapter .DBAdapter interacts with the database and replies the result.
    I send in the CreditCardNumber in the request and recieve its Status (VALID,INVALID). i get this error every time . i have tried almost every thing to fix this . Please help me with same .
    Below is the complete error stacktrace.
    Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'getCreditValidationSelect' failed due to: DBReadInteractionSpec Execute Failed Exception. Query name: [getCreditValidationSelect], Descriptor name: [getCreditValidation.Creditcardinfo]. Caused by java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist . See root exception for the specific exception. This exception is considered retriable, likely due to a communication failure. To classify it as non-retriable instead add property nonRetriableErrorCodes with value "942" to your deployment descriptor (i.e. weblogic-ra.xml). To auto retry a retriable fault set these composite.xml properties for this invoke: jca.retry.interval, jca.retry.count, and jca.retry.backoff. All properties are integers. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
    Thanks in advance

    Can you please check the following
    a. check the JNDI Configuration. ( check for the value used for XADatasourceName )
    b. check the Data source created for the User.
    c. Incase you have updated the existing JNDI then you need to update the adapter with the New Deployment Plan.
    Thanks,
    Sunil Gopal

Maybe you are looking for