Jump to content

Exception in thread java.lang.NoClassDefFoundError: au/com/bytecode/opencsv/CSVWriter

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
libioz

libioz

    Newbie

  • Members
  • Pip
  • 6 posts
Hello!

I have got the following exception:
Exception in thread "main" java.lang.NoClassDefFoundError: au/com/bytecode/openc
sv/CSVWriter

on row in my code:
writerExcel = new CSVWriter(new FileWriter(logFileExcel), ',');

What is missing in my project?
Thanks!

#2
ZekeDragon

ZekeDragon

    Writes binary right handed and hex left handed

  • Moderators
  • 2,103 posts
How are we to know? You haven't provided much information.

It looks like you compiled your program in one location, then moved your .class file and forgot CSVWriter.class. That's what throws NoClassDefFoundError.
Wow I changed my sig!

#3
libioz

libioz

    Newbie

  • Members
  • Pip
  • 6 posts
It is for the first one I added CSVWriter.class. and then, I get this exception.

I have opencsv-2.2.jar in my classpath:

<classpathentry kind="lib" path="C:/jsystem/runner/thirdparty/lib/opencsv-2.2.jar"/>
What else do I need to add to my project for solving this problem?
Thank you!