codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Can`t run my application  Quesschen at 14:03 on Wednesday, May 10, 2006
 

I'm having problems running my compiled class files.
In my command console I compile my .java files like this:

c:\Java\bin>javac myApp.java

It compiles without errors. however when I try to run myApp like this...

c:\Java\bin>java myApp

I keep getting this error:

Exception in thread "main" java.land.NoClassDefFoundError: my App


yet I've checked and the myApp.class file is there in Java/bin
this is the contents of myApp.java:

class myApp {
public static void main (String args[]) {
System.out.print("Hello World");
}
} // End myApp


I can't see why this won't work.

  Re: Can`t run my application  javabits at 20:01 on Wednesday, May 10, 2006
 

try

java -cp . myApp

semper fi...








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  $var .= $_; what it mean?
•  Re: Help: Trouble with z-Index and SELECT lists
•  Dynamic crystal report formatting
•  URL rewriting doesnt seem to work with xml sitemap provider and menus
•  This code is not working
•  Re: doubt in asp.net
•  Scraping, Pulling, Calculating, and Displaying
•  Re: How to open a MS Word document from Javascript
•  session time out


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2006