• 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:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

.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
 
Where does a nanny get ground to air missles? Protect this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic