Discussions

EJB programming & troubleshooting: NoClassFoundError

  1. NoClassFoundError (2 messages)

    hi,
    i have jdk5 installed in win xp sp2
    when i do java <filename>
    i get the error on my machine
    Exception in thread "main" java.lang.NoClassDefFoundError: <filename>
    i correct it by doing
    java -cp . <filename>
    then it runs fine.

    but on running a client ejb program on the command line
    AppClient -client <filename>
    i again get the error
    WARNING: ACC003: Application threw an exception.
    java.lang.NoClassDefFoundError: converter.ConverterHome
    where converter.ConverterHome is contained in the jar file

    i do not get a solution to this problem
    how can i correct the above problem or the overall problem such that
    when i give the command
    java <filename>
    i get the output simply
    any helps
    Pradyut

    Threaded Messages (2)

  2. NoClassFoundError[ Go to top ]

    Include ur current direcory(set CLASSPATH=%CLASSPATH%;.) in ur classpath. Sometimes it looks silly but u never know.
  3. NoClassFoundError[ Go to top ]

    I have the same application as well as i have the same error

    but when i run the client within Sun Java Application Server 9.1 (JSP) it works great...