Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NoClassDefFoundError with CSVReader?

 
Todd Patrick
Ranch Hand
Posts: 31
Android Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[Details]:

SunOS 5.8 Generic_117350-27 sun4u sparc SUNW,UltraAX-MP
javac 1.5.0_06
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Server VM (build 1.5.0_06-b05, mixed mode)


[Issue]:

I've been fighting the following error. I don't have a CLASSPATH defined. At this point, Is it an issue with trying to use the CSVReader class?


[Error]:

Exception in thread "main" java.lang.NoClassDefFoundError: au/com/bytecode/opencsv/CSVReader
at dtn.refinedfuels.EAIParser.main(Unknown Source)


[Command ran to produce error]:

java company.refinedfuels.EAIParser


[Ant build.xml file]:




[Java Class]:


[ May 17, 2006: Message edited by: Todd Patrick ]
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to set the classpath to tell java the location of the opencsv-1.3.jar

something like : (Assuming you are in the build directory to start this.)

java -cp ./;../source/lib/opencsv-1.3.jar company.refinedfuels.EAIParser
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic