Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Kent Hamilton   on Sep 11 In Java Category.

  
Question Answered By: Clint Garcia   on Sep 11

I was just trying using my new download programm: NetBeans IDE 3.5.1

with a simple program named Hello

[/*
* Hello.java
*
* Created on January 23, 2004, 11:48 PM
*/

/**
*
* @author Rulx Narcisse
*/

public class Hello
{ public static void main  (String [] args)
{ System.out.println("Mon premier Programme Java");};
}

]
But when trying to execute it I received the same message: Exeption
in thread  "main" java.lang.NoClassDefFoundError:Hello
I have used the command "java Hello".

I have tried too the command java  -cp"." Hello as mentionned, but
received the message  " Unrecognized option:-cp Could not create the
Java Virtual Machine "

Can you help me find the problem?

Share: 

 

This Question has 6 more answer(s). View Complete Question Thread