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.

Similar Messages

  • Package com.sun.java_cup.internal does not exists

    I installed JDK 1.6_27 and jre 1.6_27 on a Windows 7, 64 bit
    and fetched Java Code which use to run with java version 1.5_06.We are doing a java update.I am getting the error message
    com.sun.java_cup.internal does not exist.
    Does that mean my Java is not installed properly?Where to check if java_cup is present in my system or not
    Please help
    Thanks,

    Looks like the developers of that code relied on something that is not part of the official documented Java API (packages that start with java, javax or org). Packages starting with sun or com.sun are Sun proprietary internal implementation packages and as such are not guaranteed to be available from version to version or from Java vendor to Java vendor. So your installation seems ok, but your program is not.

  • Package com.sun.deploy.util does not exist, failed to import com.sun.deploy.util.VersionID;

    Java 1.6 JRE contains deploy.jar, which provides the VersionID class. However, Java 1.8u5 does not have it anymore.
    I cannot find any log w.r.t the change.
    Can anyone please point out whether the absence is deliberate or just an accident? If deliberate, what is the replacement of VersionID in Java 8?
    Many Thanks

    What type of operating system do you have? x32 or x64?

  • Com.sun.java.swing package not found

    All my other programs compile fine if they're not using that package

    yea...wrong import....
    use
    import javax.swing.*;notice the X

  • Package com.sun.java.swing not found in import

    I'm trying to show graphic information but the swing package does not load up don't know what is going on Any help is welcome
    THIS IS THE LINE I GET WHEN I TRY TO IMPORT SWING
    Package com.sun.java.swing not found in import

    I'm trying to show graphic information but the swing
    package does not load up don't know what is going on
    Any help is welcome
    THIS IS THE LINE I GET WHEN I TRY TO IMPORT SWING
    Package com.sun.java.swing not found in importThat's an old package reference. Try javax.swing

  • Error :  java:6: package com.crystaldecisions.sdk.framework does not exist

    Hi All,
    I am using BO XI R2 version.
    I am facing issues with BOE Java SDK web application.
    In this application, I have just by-passed login page(jsp page) and logout from BO. But, it is throwing errors as mentioned below:
    Generated servlet error:
    E:\BusinessObjects\Tomcat\work\Catalina\localhost\_\org\apache\jsp\BO_005fHello_005fWorld\login_jsp.java:6: package com.crystaldecisions.sdk.framework does not exist
    import com.crystaldecisions.sdk.framework.CrystalEnterprise;
    Application gives errors for these two packages:
    package com.crystaldecisions.sdk.framework
    package com.crystaldecisions.sdk.exception
    Can anyone please tell me the solution?
    From where I can get the jar files to resolves these problems?
    I tried to search these jar files in BO installation folder but was not able to get.
    Can anyone tell the exact folder path for these jar files, if it is there.
    Or any link to download jar files.
    Thanks in advance.

    Hello ,
    -In order to run your application, please copy the Business Objects JAR files from the installed location.
    -For example : If you have installed Business Objects on C:
    then , go to the path :
    C:\Program Files\Business Objects\common\3.5\Java\Lib and copy all the Jar files from that location including JAR files that are present in the external folder.
    -Paste these JAR files inside lib folder of your application.
    -The class com.crystaldecisions.sdk.framework comes under cesession.jar
    Thanks,
    Chinmay

  • Error: package sun.java2d.cmm does not exist

    I started to use Netbeans IDE 7.0.1 with jdk 7u9. I have an issue with
    import sun.java2d.cmm.ColorTransform;
    import sun.java2d.cmm.PCMM;
    etc.
    If I import from the package sun.java2d.cmm I can run but I can NOT build my project because of error: package sun.java2d.cmm does not exist.
    Please help.

    java -cp .;c:\scientists\darwin.jar
    MyProgramam i supposed to place the above code where i had
    previous put
    import com.darwinsys.util.*;
    No. The command above is how you run your program. I assumed you had already compiled it. To compile it you need the command
    javac -classpath .;c:\javacooksrc2\javacooksrc2.jar MyProgramAll the classpath does is tell the java compiler or the JVM where to find classes that are needed to compile/run your program.

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

  • Package sun.jdbc.rowset does not exist

    Hi,
    I am tryng to use a CachedRowSet in a JSP page. I got rowset.jar from sun and I put it in my classpath. When I try to import sun.jdbc.rowset I have the message "package sun.jdbc.rowset does not exist".
    Please, could someone help me?
    Tanks,
    Celso

    Hi,
    Unfortunately not... The name of the package is rowset...
    Some others ideas? Thanks,
    Celso

  • Package com.borland.jbcl.layout does not exist

    im using JBuilder X and getting this error message:
    package com.borland.jbcl.layout does not exist
    considering that JBuilder has some problem i compiled the classes using command prompt but even then the same error appeared. plz help me its part of my final project of a courde.
    Some ppl in diff forums have said that jbcl has been deprecated but making gui in JBuilder is much easier. and i only know of making frames in XYLayout,,,,,,,
    If i dont have the package plz let me know how can i get it and if i have it then tell me how can it get it and where and how to install

    Put the jars or classes in the com.borland.jbcl.layout package into your CLASSPATH. You have referenced them in your program, the compiler is looking for them, but it cannot find them, so it cannot compile your program.

  • 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

  • Com.sun.java.swing.*; ??

    I have notice these class references in a couple of sample programs.
    Do these come with every installation of the jre. I have 1.4 install
    and when i reference these library..I am told they don't exist..
    What are they ??
    Where do they come from ??
    How do I get them running in my apps.
    aj

    Anything in the
    sun.*
    and
    com.sun.*
    should not be used directly by you (unless the API's say so), yes the L&F's live in this name space, as does the native bits of Java and the basic implementations of stuff you can only get at via factorys but you still should not use them (unless you are going via the factory, and then you should never rely on it being the same between JREs).

  • Com.sun.java package

    Hi,
    What is the different between javax.swing and com.sun.java.swing package ? Are they the same ?
    Where can I download com.sun.java.swing package ?
    Regards,
    Lim Boon Sun

    The official Sun statement is that one should only use the classes listed in the APIs, i.e. javax.swing.*. Classes in packages such as com.sun.* contain version dependent implementations and are subject to change without notice. So, if you use them in your programs, it is very likely that your programs will not run under future (and previous) versions of the JRE.
    So, just like the other fellow said, STICK TO THE javax.swing.* packages !

  • 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

Maybe you are looking for

  • Can I generate backdated FF logs?

    Hi Experts, We have issue, because of system maintenance hourly run /VIRSA/ZVFATBAK job didn't run on perticular date and time. Now when we pulling FF log it gives message "Background Job was not scheduled/log & file not yet generated" is there in an

  • No video on capture via panasonic deck - NEW

    Hi. I rented a panasonic deck HD1400 to get tapes captured in Final Cut Pro 5.04. When trying to capture I get no video on the Mac Book Pro. I use Easy Set-up DVC-PRO HD1080i50 which correspond to tapes. Also the deck is set to HD1080i. I can control

  • How to copy part of non commercial dvd and use it in imovie?

    Hi I want to use some video from my school that are burned in a dvd (with a PC) and put them on a project that I made with imovie. I have the files audio_TS and the video_TS but I don't know how to use them. I want to import them (or the movie) in im

  • Internet problems with an RV-082 Router and Swann DVR connected.

    I have a problem from the twilight zone.  When my Swann DVR (CONVR-B163MP) is NOT connected I can access the internet without any problems.  When the Swann DVR is connected, I lose access to Google and secure "Log-in" webpages.  It is as if there is

  • Want to change the client in UME j2ee engine

    Hi Experts, In new installation of SAP pi 7.4. We have changed client at all places now we want to change the UME client. For changing clients i refered notes: 940309 - Change PI default client after NW 7.0 Installation Change UME master: To do this