Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners How to eliminate error," Could not find the main class: filecopy.FileCopy. Program will exit." ?
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


shankar ramdas deokar
How to eliminate error," Could not find the main class: filecopy.FileCopy. Program will exit." ?
1 Answer(s)      3 years and 6 months ago
Posted in : Java Beginners


run: java.lang.NoClassDefFoundError: filecopy/FileCopy Caused by: java.lang.ClassNotFoundException: filecopy.FileCopy at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) Could not find the main class: filecopy.FileCopy. Program will exit. Exception in thread "main" Java Result: 1 BUILD SUCCESSFUL (total time: 0 seconds)


Advertisement
View Answers

April 28, 2011 at 11:20 AM


What is filecopy in your code? Is it a package and FileCopy is a java file? There may be contradiction.



Related Tutorials/Questions & Answers:
Advertisements
 

 

 

DMCA.com