Not able to run program
07/02/2018 12:08
Hi,
My computer run Windows XP, and I've set a Classpath that looks likethis:

C:DJGPP/bin;C:Program FilesJavajdk1.5.0_06/bin
Is this correct? I can compile but not run the programs that I'vewritten. I get the errormessageException in thread main java lang NoClassDefFoundError: Can someonehelp me please.
Cheers,

Source is Usenet: comp.lang.java.help
Sign in to add a comment

Answer score: 5
07/02/2018 12:08 - <tgranath@gmail.com> wrote in message news:1146416709.486389.218390@j73g2000cwa.googlegroups.com...


I don't like the look of those mixed slashes and backslashes. You should at least be consistent in which you use. Fix that and try executing the class again before you do anything else.


That's a very common error message and can be caused by any number of conditions. Roedy Green's site, http://mindprod.com, has an article listing many of the possible causes. Just search on NoClassDefFoundError when you get there.


If fixing the slashes and looking up the error on Roedy's site don't help you solve your problem, try posting again but this time be sure to tell us more about the placement of your source code and where the class file is supposed to be generated as well as any package names you are using. It's very possible that you are using a package name and then trying to execute from the wrong directory.



Source is Usenet: comp.lang.java.help
Sign in to add a comment

eDiscover
Helpforce eDiscover provides technical articles updated each dayHelpforce eDiscover RSS feed contains the latest technical articles in RSS
Click the logo to go back to the main page
Search eDiscover
  
Categories

Click an icon to go to that category

Helpforce eDiscover contains articles about Microsoft Windows Helpforce eDiscover contains articles about Apple products and MacOS Helpforce eDiscover contains articles about Linux and POSIX operating systems Helpforce eDiscover contains articles about Helpforce Helpforce has a large variety of technical information and articles for you to read Helpforce eDiscover contains articles about databases, MYSQL, SQL Server Oracle Helpforce eDiscover contains articles about Java, JVM and the JRE Helpforce eDiscover contains articles about the QNX operating system Helpforce eDiscover contains articles about Oracle Solaris and Open Solaris Helpforce eDiscover contains articles about RISC OS, Acorn and the BBC Micro Helpforce eDiscover contains articles about Amiga and AmigaOS

Type your comment into the box below