No ClassDefFoundError

Hi, Please help with this error. I created my class with package declaration at the top of class and i compiled it with out any error. but to run it is now diplaying the following error Exception in thread "main" java.lang.NoClassDefFoundError:: StouckUI. Please i'm desperate!

1. The argument to the java.exe command is the fully qualified class name. Fully qualified means the packag name plus the class name so you must specify like "java package.name.StouckUI"
2. The .class file must be in a directory structure that matches the package name. Using the above example, package/name/StouckUI.class
3. The root of the top directory must be in the classpath. For example (Windows) you have c:\myjava\package\name\StouckUI.class then java -classpath c:\myjava package.name.StouckUI

Similar Messages

  • Java Plug in not loaded

    Hi,
    I'm using JPI 1.4.0 on IE 5.0 on a Windows 98 environment.. I have a really simple applet working with appletviewer ... I converted for Java Plug in using HTML Converter ... when I run the applet on my browser the page is succesfully loaded ( no ClassdefFoundError detected by JavaConsole ) but no applet appears.
    Any help will be appreciated ...

    There could be a lot of reasons why you're not seeing your applet. Here are a few:
    1) Do you see a little yellow icon on the lower left corner of the browser, if so click on it to see what the error message is.
    2) Otherwise, click View (from the menu) and select Java Console (this requires that Java Console is enabled) to see if there is any error message there.
    3) Perhaps you applet doesn't require a Java plugin and therefore do not need to be converted with the HTMLConverter.
    If after having checked all of the above and you still have problem, try my applet FAQ page at:
    http://home.attbi.com/~aokabc/appletFAQ/applet.htm
    Hope this helps...
    V.V.

  • Paths etc etc

    Hello, I'm a student who's just being introduced to java technology, and i have downloaded the latest java sdk, but cannot get it to compile or run any of my programs i get. I've read several forums about class paths and such, but i've tried setting classpath and path environment variables but it hasnt done anything at all. Can someone tell me what exactly to type in the environment varioables menu or command prompt for Windows XP so i can compile and run java programs?
    thanks,

    first of all, thanks a lot for your patience,
    i've tried going to my computer/properties/advanced/environment variables and changing or adding PATH and CLASSPATH as C:\Program Files\j2sdk_nb\j2sdk1.4.2\bin , (im very sure these are correct pathnames) and then i try on command prompt
    cd c:\
    then i type:
    javac HelloWorld.java
    but it always displays
    "javac" is not recognized as a batch file, etc etc
    and i have several class files already that when i try
    java HelloWorld.class
    it displays
    "no classdeffounderror helloworld.class etc etc
    i've tried reinstalling the java sdk several times also, which didn't change anything.
    at first when i installed it, i was able to compile several programs, until it started giving me error messages over and over again, and now i can't compile or run any programs. Any suggestions? thanks

  • NoClassDefFoundError while executing Jsp's

    I am using Apache -1.3.2 with Tomcat 3.2.3 on Windows 2000 to
    service Jsp's.
    While executing Jsp's that User request or response objects, I get the following
    error. NoClassDefFoundError: javax/servlet/ServletRequest.
    From the Jsp's , I am passing the request/response object to Pure Java files to do some
    processing on the data. The lib directory of tomcat has all the necessary jars and there is
    no class conflict.
    Could someone give me a solution to this issue ?

    see that u have imported the class that u r using in the JSP properly.
    eg u have to use
    <%@ page import="<package-name.class-name>" %>
    If u do so, I that problem of ClassDefFoundError should not come........
    try this and see.......
    Chandan.

  • WAS Property for External JARS

    Hi All,
    We are using AIX as a platform for a Netweaver WAS 6.40. I have a EAR file that contains some 3rd party JARS. When I deploy the EAR on WAS and run the JSP that is calling one class inside the JAR, the JSP is not able to find that class.
    I have checked and deployed my EAR on another Netweaver WAS which is running on a windows platform. I have even checked my application on tomcat. In both the cases the problem is not there. My application runs fine.
    It is only on AIX and this particular WAS that it is throwing this error below
    No ClassDefFoundError
    This error is for one particular class inside a third party JAR.
    Imp : This application was running fine before, the only change that we did was clustering on the server. Thats all.
    Do I need to set some server variable for making the server accept 3rd party JARS. Am I missing some server parameter.
    Plz help
    /sab

    Hi
      When creating a system itself, you can set WAS and ITS properties in system properties. A transaction iView uses these properties to connect to the system. For host entry, it is sufficient to maintain entry for R3 host in server machine alone. Hope that will serve the purpose.
    Regards,
    Harini S
    Do reward for helpful answers

  • After compile can not run the program

    package MyPack;
    class Balance
    String name;
    double bal;
    Balance(String n,double b)
    name=n;
    bal=b;
    void show()
    if(bal<0)
    System.out.println("--->");
    System.out.println(name+" " +bal);
    class Account
    public static void main(String args[])
    Balance current[] = new Balance[3];
    current[0]= new Balance("xxx", 2500);
    current[1]= new Balance("yyy", 1500);
    current[2]= new Balance("zzz", 3500);
    for(int i=0;i<3;i++)
    current.show();
    here i have written a program on using package after complieing this program, and run this program i get the error of file not found. can u please gide to run this program.

    after writing this program i saved in the folder c:\MyPack\ and run the program from the same folder by using this command first by javac Accounts.java. then, java MyPack.Accounts and i get this error
    exception in thread "main" java.lang. No ClassDefFoundError:MyPack/Accounts. even though i made sure i have the java class file in the same folder.

Maybe you are looking for

  • Airport express connecting on home LAN

    HI, my home is wired for ethernet and I have been trying to get my airport express to work off one of the ethernet jacks, but after setup I just get blinking orange. If I try to set it up directly to the cable modem it works, so there must be somethi

  • Slow to start up and shut down

    Hi. I have updated MacBook Pro from 2.16 GHz with OS 10.4.11. The old one started up and shut down very fast. Now my new 2.4 GHz one starts up very slow. I see the gray screen forever till finally see my desktop. It happens even I installed the OS on

  • Unable to read email on iphone4

    For the past few days I have been unable to read my email messages on my iphone. New messages are displayed, along with the preview, but when I click on a message I am unable to read it on my phone. Does anyone know what this might be caused by?

  • Problem with user tracking Cisco Prime lms 4.2

    Hi When I use the User tracking utility, it dont find the usernames, I dont kwow if I have to use the tool UTlite33.exe un all end host or not, please helpme.

  • E75 Screen Size

    Currently using an E71 ... thinking that E75 would be much better due to keyboard and screen size. However confused over the screen. On all pictures the screen is shown as physically much bigger, and rectangular on E75 compared to E71 ... even in a s