• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

.NoClassDefFoundError in NetBeans, fine on command line

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm still messing around with packages in Netbeans and now I have this error:
java.lang.NoClassDefFoundError: cfparser (wrong name: com/wallinternet/cfBrowser/cfparser)
at java.lang.ClassLoader.defineClass0(Native Method)
first couple of lines in the file are:
package com.wallinternet.cfBrowser;
import java.util.*;//import util for lists and iterators
import java.io.*;//import io for file class
import java.net.*;//import net for URL class
public class cfparser
{

The file lives in e:\javawork\com\wallinternet\cfBrowser\
My classpath (mounted filesystems) contains:
e:\javawork\com\wallinternet\cfBrowser
e:\javawork
I've run the class successfully from this command line:
E:\javawork\java com.wallinternet.cfBrowser.cfparser
(no classpath set)

Thanks,
Justin
 
reply
    Bookmark Topic Watch Topic
  • New Topic