Home Tutorialhelp Comment JDK unable to recognoze main for "HelloWorld"

 
 

Comment

Joe Benson
JDK unable to recognoze main for "HelloWorld",
May 9, 2009 at 9:25 AM

I am running Sun JAVA jdk 1.6.0_12 JAVA compiler, etc.
When I try to compile the HelloWorld.java file, I get an error message that it cannot find the mail() portion.
Does anyone know how I can fix this. Do I need to modify the source code or what?
Please reply to my email jbensons@msn.com.


View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
General

Very simple `Hello world' java program that prints HelloWorld
Hello World Java Simple Java Program for beginners... code in the Java interpreter with this command:  java HelloWorld... program, java codes are written in the java class.  class HelloWorld 

Java Beginners

program on helloworld :explain
". The main Method: The main method is the entry point in the Java program and java...program on helloworld :explain  class Hello { public static void main(String[] args) { System.out.println("hi"); } }   Class 

Java Beginners

program on helloworld :explain
program on helloworld :explain  class Hello { public static void main... in the Java program and java program can't run without main method. JVM calls the main... in a java program. Here is the main method: public static void main(String[] args 

Java Beginners

JDK 1.5 - Java Beginners
JDK 1.5  HI..... this is anand frm bangalore.... i was going through JDK 1.5 static imports and i am stuck upon one thing... Q. using imports can we import non static class members from another class... suppose in class 

Java Beginners

Unable looping using JOptionPane - Java Beginners
Unable looping using JOptionPane  import javax.swing.*; public class Shop{ public static void main(String [] args){ Shop shop = new Shop(); String mainMenu= "(MAIN SCREEN )"; mainMenu+= "\n1) Computer Menu 

General

Java - JDK Tutorials
Java - JDK Tutorials   This is the list of JDK tutorials which... features of Java in your programming. JDK is required to be installed on your... should learn the Java beginners tutorial before learning these tutorials. View 

Java Beginners

install jdk 6 - Java Beginners
install jdk 6  sir i have installed my jdk1.6 but dont know how to run, could you please help me i 

Java Beginners

install jdk 6 - Java Beginners
install jdk 6  sir i have installed my jdk1.6 but dont know how to run, could you please help me i this  Hi Friend, Please visit the following link: http://www.roseindia.net/java/learn-java-in-a-day/download 

Java Beginners

main func - Java Beginners
main func  why do we pass array of strings in main function of java?  Hi Friend, It is used to signify that the user may opt to enter parameters to the java program at command line. Thanks 

Java Beginners

main() syntax - Java Beginners
main() syntax  Hi, I would like to know the complete structure of the main() in jdk1.5 with sample program. Regards, UsmanAli Shaik,   Hi Friend, Structure of Java program: [package declaration 

Java Beginners

unable to connect database in java
unable to connect database in java  Hello Everyone! i was trying to connect database with my application by using java but i am unable to connect... created. 6) Restart your compiler and compile your java code. For Inserting Data 

Java Beginners

Main function.. - Java Beginners
Main function..  Hi Friend.. public static void main(String args[]) What does it mean...public - static - void - main -(String args[]) Can u plz... return the value when it exits main(): This is the entry point for the application 

Java Beginners

problem with main - Java Beginners
a problem. when i compile it appears this message: java.lang.NoSuchMethodError: main Exception in thread "main" . Should i put a main in another file? And how can..., This is an applet code and applet doesn't have main method therefore compile it and run 

General

How to add JDK 8 support in Eclipse?
of JDK 8. Since Eclipse is one of the most used IDE for developing the Java... for beginners section. Here is the steps to add JDK 8 support in Eclipse: Step 1... Tutorial section: Check more tutorials of Java 8 (JDK 8). After 

General

Installing JDK 7 on Windows
Installing JDK 7 on Windows - Beginners tutorial for installing configuring... step towards learning the Java Programming Language. This beginners Java... and click on the link "Java Platform (JDK) 7u45", Accept License 

Java-Tutorials

The JDK Directory Structure
Directory structure of JDK Welcome to Java tutorial series. In this lesson, you will learn about the directory structure of Java Development Kit, JDK. Since... structure of JDK. As a beginners you should understand the content of the JDK 

General

JDK 1.4 the NullPointerException - Java Tutorials
NullPointerException In Java NullPointerException occurs when you perform... { public static void main(String args[]) { String string[] = new String[2...; public class JavaNullpointerexception { public static void main(String args 

Java Beginners

What is the arguement of main method?
/beginners/string-array.shtml. Hope it will helpful for java programmers...What is the arguement of main method?  hi, What is the arguement of main method? thanks,   Hi, For main() method accepts only an array 

Hibernate Interview Questions

What is the main feature of Hibernate3?
What is the main feature of Hibernate3?  What is the main feature... or local Java API, including a second-level cache browser. Eclipse support... timings as it supports inheritance, polymorphism, composition and the Java 

JSP Servlet Questions

Display helloworld using servlet in jboss
Display helloworld using servlet in jboss  import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class HelloWorld... in WEB-INF folder.later i wrote a deploy.cmd @echo off set JAVA_HOME=C 

Java-Tutorials

Sample Java program for beginners
Here beginners in Java can learn to create there first Hello World program in Java. To install Java one needs JDK (Java Development Kit), which can... in Java. All you need is a simple text editor, JDK that should be already 

Java Beginners

jdk 1.6 vs jdk 1.7
. Java DB is based on the open-source Apache Derby and is supported by Sun. 4)Jdk 6...jdk 1.6 vs jdk 1.7  What is the difference between jdk 1.6 and 1.7 ?? Package structure and all??   Difference between jdk 1.6 and jdk 1.7 

Java Tips and Examples

Undrer Standing the HelloWorld Program
accessibility: public class HelloWorld {    The main Method:  The main method is the entry point in the Java program and java program can't run... first thing that is executed in a java program. Here is the main method: public 

Java Beginners

Unable to open Java in full screen mode in Vista - Java Beginners
Unable to open Java in full screen mode in Vista  Hi iam facing a serious problem as my operating system is Windows-Vista.The editor always opens in minimized mode.If i try Alt+enter it shows win32 error.i googled it and found 

General

JDK 8 - Developer Preview Released
JDK 8 Developer preview release and share you comments with community Java.... JDK 8 Features: In fact, the main reason and goal behind the launching of the JDK 8 is to provide an open source context for the utilization of the Java SE 

Java Beginners

main function defnition in class - Java Beginners
main function defnition in class  why do we use public infront of a main function   Hi friend, The main method is similar to the main... and will subsequently invoke all the other methods required by your program. The main method 

Java Beginners

What is the return type of the main method?
type of the main method? thanks   Hi, In the java programming the Main() method doesn't return anything hence declared void. In Java, you need... for java beginners. Thanks 

Java Beginners

how to solve the nullPointer Exception in main - Java Beginners
how to solve the nullPointer Exception in main  New to Java ,pls help me how fix Null pointer Exception in main: two files , split .java another... main(String[] args) { String actualState; String str1 = "s0;input 

Hibernate Interview Questions

description about jdk 1.5 features - Hibernate Interview Questions
information on JDK visit to : http://www.roseindia.net/java/beginners/download... by sun Microsystems. Java Development Kit or JDK comes in various version and can... tools are used with JDK for developing java based application & java applets. So 

Struts Questions

Struts2 Helloworld problem -Please help - Struts
Struts2 Helloworld problem -Please help  Hi I am a beginner in Struts2. I tried some HelloWorld example in Struts2, to understand. But due to some problem I unable to execute the program successfully. Please find my example 

Java Beginners

Why is the main method declared static?
Java class always has the same signature, and we declare public static void main... the static method. For more visit http://www.roseindia.net/java/beginners...Why is the main method declared static?  Hi, Why is the main method 

Java-Tutorials

Standard JDK Tools
Standard JDK Tools Basic Tools Tool Name Brief Description javac  This is the core of java, the compiler for the Java programming language. java  It is used to launch the Java 

Java Tips and Examples

Download JDK
; What is JDK (Java Development Kit) JDK is a software development program provided by sun Microsystems. Java Development Kit or JDK comes... compiler, debugger and  other tools are used with JDK for developing java based 

Java Beginners

unable to connect database in java
unable to connect database in java  Hello Everyone! i was trying to connect database with my application by using java but i am unable to connect... i was using this code.... try { Driver d=(Driver)Class.forName 

Java Beginners

main method
main method  Why is the java main method static 

Core Java

Java for Windows
; First of all download jdk for windows and then install and configure the Java SE... 2Platform or (JDK) can be downloaded from the sun. Formerly Known as the java Development kit ,or JDK, Downloading java is really about downloading the java 2 platform 

Java Beginners

How to install JDK in Centos?
/usr/java/latest/bin/java 2 If you are interested in Open JDK then you can...How to install JDK in Centos?  Hi, I have to install the JDK on Centos 6 Linux server. Let's know the steps to install the JDK. Thanks    

Java Beginners

MAin error
MAin error  Error while running hello program in another dir rather in bin. path is already set. java -version jdk1.6.0_24 no error while compilation but @ d tym of runnin error in main class is generated Exception in thread 

Java Beginners

exception in thread main java.lang.unsupportedclassversionerror unsupported major.minor version 50.0 - Java Beginners
!"); } } for example: javac xxx.java-->comping java xxxx:error :exception in thread main...exception in thread main java.lang.unsupportedclassversionerror unsupported... getting the this error :exception in thread main 

Java Tips and Examples

Beginners Java Tutorials - Installing JDK
Beginners Java Tutorials - Installing JDK       In this beginners java Tutorial ,We will first.... In this tutorial we have used jdk-1_5_0_06-windows-i586.exe.The java 2Platform or (JDK) can 

Java Beginners

exception in thread main java.lang.unsupportedclassversionerror unsupported major.minor version 50.0 - Java Beginners
exception in thread main java.lang.unsupportedclassversionerror unsupported.... java -version java version "1.4.2_06" javac -version java version.... Thanks  my code is class xxx { public static void main(String 

Java Beginners

unable to run servlet
unable to run servlet  Dear sir/madam i have jdk1.5.0_04 and tomcat...: http://localhost:8080/webdir/servlet/helloworld. it giving error like : HTTP Status 404 - /webdir/servlet/helloworld please help me sir/madam.    

Java Beginners

jdk
jdk  which is the latest version of jdk and how can i get it to develope applications?   JDK 7 is the latest version. You can download jdk 7 from the given link: Download JDK

Java-Tutorials

What is Public static void main
in java using main method. class Helloworld { public static void main(String...[]) //this is most classic signature of main method. Remember the varargs version of java will work in java 1.5 or later version only. Main is the entry point of  

Java Beginners

how to return to main menu after adding all the info. - Java Beginners
how to return to main menu after adding all the info.  import java.util.Scanner; public class RegistrationSystem { public static void main...; System.out.println("School Registration System Main Menu 

HTML Questions

Unable to compile Servlet
Unable to compile Servlet  First I installed the tomcat server in C:\apache-tomcat-6.0.14 directory. Then I created a system variable CATALINA_HOME... JAVA_HOME with the value C:\Program Files\Java\jdk1.6.0.14 Then I created 

Java Beginners

What is the difference between a JDK and a JVM?
What is the difference between a JDK and a JVM?  Hi, What is the difference between a JDK and a JVM? Thanks,   Hi, JDK is stand for Java Development Kit and it is used for application development purpose 

Java Beginners

Servlet error - Java Beginners
Servlet error  I installed Jdk and tomcat successfully and all the examples provided by the tomcat are running successfully...But i'm unable to run... mentioned URL: http://www.caucho.com/resin-3.0/servlet/tutorial/helloworld/index.xtp 

Java Tips and Examples

Beginners Java Tutorial
Beginners Java Tutorial     ... with the Java Programming language. This tutorial is for beginners, who wants to learn Java from scratch. In this beginners Java Tutorial you will learn how 

WebSevices Questions

Unable to compile class for JSP - WebSevices
Unable to compile class for JSP  org.apache.jasper.JasperException: Unable to compile class for JSP When I am trying to access a java file kept... getting above error. Java code in src folder is accepting webservice output 

Java-Tutorials

How to download JDK source code?
the source code of JDK and understand how Java API works. You can also use.../index.html and then click on the link "Java Platform (JDK) xxx"... of the JDK. C:\Program Files\Java\jdk1.7.0_45\src.zip You can unzip the src.zip 

Java Interview Questions

JDK Framework Knowledge - Java Interview Questions
JDK Framework Knowledge   what is JDK Framework Knowledge,how many types of JDK Frameworks are available ,detailed explanation about each.its urgent...://www.roseindia.net/java/java-tips/background/30java_tools/30sdk.shtml http 

Java Beginners

java main program
java main program  how to write a main program for the following code public class JaroWinkler { private String compOne; private String compTwo; private String theMatchA = ""; private String theMatchB 

JSP Servlet Questions

Unable to connect servet, jsp to oracle 10g database.. Unable to retrieve data..
Unable to connect servet, jsp to oracle 10g database.. Unable to retrieve data... properties file JNDI_NAME=java:com/env/Oracle/jndi db.login= db.password.... If I use it also, unable to connect to backend oracle database. Let me 

Applet Questions

unable to see the output of applet. - Applet
unable to see the output of applet.  Sir, I was going through the following tutorial http://www.roseindia.net/java/example/java/applet...://www.roseindia.net/java/example/java/applet/FirstApplet.html but the problem 

Java Beginners

How to Create Animated Main Menu Application with Java Swnig Buttons - Java Beginners
How to Create Animated Main Menu Application with Java Swnig Buttons  Hello sir I want to display Main Menu after Log in i have created Log in Form but I want More attractive Animated Main Menu which includes Following 

Java Interview Questions

JDK 1.5 Features Diff - Java Interview Questions
JDK 1.5 Features Diff   Hi Frieds , Can u explain me d difference bn Generics and Autoboxing in jdk 1.5.  Hi Generics?Provides compile-time type safety for collections 

Java Beginners

Can a main method be overloaded?
Can a main method be overloaded?   Hi, Can a main method be overloaded? thanks,   Hi, Yes, In Java program we could having multiple number of main() methods with different Signature and implementation in the class 

General

Installing Sun JDK on Linux
Installing Sun JDK on Linux (Fedora Core 3)   ...; Downloading  Download the latest version of JDK from http... directory to /usr/java/ .Create /usr/java if it doesn't exist. Here is the command used 

Java Interview Questions

jdk 1.5 features - Java Interview Questions
jdk 1.5 features  jdk 1.5 features with examples and source code... or any Iterable.. For more information on JDK 1.5 visit to : http://www.roseindia.net/tutorialsearch/?t=Jdk%201.5 Thanks 

Java Beginners

core java - Java Beginners
core java  how to write a simple java program?  Hi friend, public HelloWorld{ public static void main(String args..."); } } ------------------------------------------- Read for more information. http://www.roseindia.net/java 

Java Beginners

Main topics in java for IT corporate working?
Main topics in java for IT corporate working?  What are the main and most important topics in java should be mastered that are usually incorporated in IT corporate world 

Java Beginners

When is java main method called?
When is java main method called?  When is java main method called? Please explain the main method in Java with the help of code.   In a java class, main(..) method is the first method called by java environment when 

JDBC Questions

Exception in thread "main" java.lang.ClassCastException
Exception in thread "main" java.lang.ClassCastException  I am trying.... Anyone help me please. Java Code: import java.sql.*; import org.postgis....){e.printStackTrace();} } } public static void main(String[] argv) { try { Class driver 

Java Beginners

Exception in thread "main" java.lang.ClassCastException
Exception in thread "main" java.lang.ClassCastException  I am trying.... Anyone help me please. Java Code: import java.sql.; import org.postgis....){e.printStackTrace();} } } public static void main(String[] argv) { try { Class driver 

Java Interview Questions

create main page
create main page  <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@page import="java.sql.*"%> <%@page import="java.util.*"%> <%@ page session="true 

Java Interview Questions

javamail supported java versions (mail.jar or jdk versions) - Java Interview Questions
javamail supported java versions (mail.jar or jdk versions)  Hi. Javamail suported version jdk version?  Hi Friend, It supports JDK...: http://www.roseindia.net/javamail/Introduction-to-Java-Mail-API.shtml 

Java Beginners

Java - Java Beginners
define the starting point in Java program. The public static void main(String... main(String[] args) in Java program and then starts the execution from here. Here is full code of HelloWorld program in Java: class HelloWorld 

Java Beginners

how to run - Java Beginners
: class HelloWorld{ public static void main(String[] args...: "java HelloWorld" Thanks...how to run   how to run java program... brifely  Hi 

Java Beginners

i am unable to identify the error in my code
i am unable to identify the error in my code  class Program { public static void main(String[] args) { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("enter 

Java Beginners

i am unable to identify the error in my code
i am unable to identify the error in my code  class Program { public static void main(String[] args) { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); System.out.println("enter 

WebSevices Questions

Unable to create web service client in java
Unable to create web service client in java  When i try to create a client for the WSDL http://infml00871:82/MapperWebService/Mapper?wsdl with JBossAS 4.2 server configuration and JBossWS as server runtime. I get the following 

General

Collection of Large Number of Java Sample Programs and Tutorials
; HelloWorld Java Program Simple Java Program for beginners that prints HelloWorld! on console...Collection of Large Number of Java Sample Programs and Tutorials Java 

JSP Servlet Questions

Unable to Insert Arabic words in mysql table
Unable to Insert Arabic words in mysql table  I have I java program... this <%@page language="java" contentType="text/html; charset=UTF-8"%>... and collation=utfgenerelci Enjoy   in jsp use this <%@page language="java 

Java Beginners

what is the difference between jdk 1.4 and 1.5 and 1.6
what is the difference between jdk 1.4 and 1.5 and 1.6  what is the difference between jdk 1.4 and 1.5 and 1.6   Java 1.4 Features..., JSSE, JAAS) - Java web start Java 5.0 Features - Generics: provides compile 

Java Beginners

java runtime error - Java Beginners
java runtime error  sir, i have installed jdk in my system.i had also set path.But i am unable to run the compiled class file.it shows run time...://www.roseindia.net/java/java-classpath.shtml Thanks 

Java Beginners

Java - Java Beginners
Java  write a program in java to illustrate importing classes from...; } } We have called this java class from the outside of this package using the following code: import form.Hello; public class HelloWorld{ public static 

Java Interview Questions

main function in java - Java Interview Questions
main function in java  1....why is function main() define as static in java? 2...drawbacks of using rmi 

Java Beginners

What if the main() method is declared as private?
What if the main() method is declared as private?  Hi, What if the main() method is declared as private? Thanks   Hi, I have found some reference site for java programming coding for Main() method is declared 

Ajax Questions

DOJO HelloWorld Example - Ajax
DOJO HelloWorld Example  Hi I am total in using DOJO for AJAX purpose From the HellowWorld example Hello World! The Button has already the onClick the helloPressed() function directly. SO what and when exactly does 

Development process Questions

Unable to get data from class - Development process
Unable to get data from class  I get this code from the internet... kwngeaw = ""; Integer y = 0; public void main() { //Integer x...*; import java.io.*; /** * The application's main frame. */ public class 

Java Beginners

Can a main method be declared final?
be override in a subclass. for more about main method be declared final in Java...Can a main method be declared final?   Hi, Can a main method be declared final? Thanks   Hi, Yes we can. The final method can 

General

Main Thread and Child Thread
There are two types of threads in Java Progarm In Java there are Main and Child Threads used in Programming. Main thread is automatically created when program runs. Child Thread gets created by the main thread . Java Main 

Struts Questions

Struts2...problem in JSP..unable to get the values for menuTitle!!!
Struts2...problem in JSP..unable to get the values for menuTitle!!!  **Hello everyone... i'm trying to make a dynamic menu from database in struts2... language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding 

Java Beginners

What are the main disadvantages of Java Server Faces 2.0?
What are the main disadvantages of Java Server Faces 2.0?  What are the main disadvantages of Java Server Faces 2.0 

windows

Installing Java (JDK 7) on Windows 7 Computer Video Tutorial
Installing Java (JDK 7) on Windows 7 Computer Video Tutorial 

General

Learn the Java 8 and master the new features of JDK 8
JDK 8 - Java 8 Tutorial and examples: Learn JDK 8 with the help of examples and articles In this section we are discussing about the JDK 8 and you will find.... About Java 8 Java 8 Officially released JDK 8 Developers 

Java Beginners

How to Differenciate Main Thread and Child Thread in Java
Main Thread and Java Child Thread. Please Suggest any example or online link... in Java Programming Language. These are Java Main Thread and the Child Thread...How to Differenciate Main Thread and Child Thread in Java  hi 

Java Server Faces Questions

should i reboot physical server to change the JDK path in linux server
should i reboot physical server to change the JDK path in linux server  Hi i need to change the JDK path in linux server. I set the JDK path export JAVAHOME=/usr/java/jdk1.5.007/bin/java export PATH=$PATH:/usr/java/jdk1.5.0_07 

General

Introduction to Java Technology
and test the application using the JDK. The main feature of Java Programming...: New to Java? Beginners Java Tutorial Frameworks...Introduction to Java Technologies and what it can do? In this first tutorial I 

Java Interview Questions

Jdk 1.7
Jdk 1.7  How many class and packages are avilable in latest jdk 1.7 version 

Java Server Faces Questions

unable to find resource 'VM_global_library.vm' - Java Server Faces Questions
unable to find resource 'VM_global_library.vm'  pls help me, I am...] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader. Tue...: Unable to find resource 'VM_global_library.vm' Tue Aug 12 12:03:54 CAT 2008 

Java Beginners

java error - Java Beginners
for file: Test.java C:\Program Files\Java\jdk1.6.0_17\bin>javac Test.java C:\Program Files\Java\jdk1.6.0_17\bin>java Test Exception in thread "main...java error  Hello sir, on compiling any program from command prompt 

JDBC Questions

java script unable to connect to oracle database and insert data
java script unable to connect to oracle database and insert data  ... org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred...: org.apache.jasper.JasperException: Unable to load class for JSP 

Java Beginners

Class and interface in same file and accessing the class from a main class in different package
Class and interface in same file and accessing the class from a main class... pattern videos on YouTube, however I have a small doubt on some basic Java concept. I tried searching for solution, but was unable to find one. Below is my query 

Java Beginners

Class and interface in same file and accessing the class from a main class in different package
Class and interface in same file and accessing the class from a main class... pattern videos on YouTube, however I have a small doubt on some basic Java concept. I tried searching for solution, but was unable to find one. Below is my query 

General

JDK 8 Release Candidates Available
JDK 8 Release Candidates Available Java 8 includes new features... which is also very important feature of Java 8. This is the first release candidates of Java 8, b128 and Java 8 RC2 in the month of February 2014 

Java Beginners

error message - Java Beginners
;Hi friend, To compile and run a java program we need to install java platform. JDK (Java Development Kit). JDK is the basic set of tools required to compile and run java programs. i am sending simple java code, public class Hello 

Java-Tutorials

Java coding for beginners
This article is for beginners who want to learn Java Tutorials of this section are especially for the beginners who want to incept the Java program from very beginning. Tutorial Java coding for beginners will enable you to know about 

Java Beginners

java - Java Beginners
: C:\>cd \mywork 3. Set path to include JDK?s bin. For example: C:\mywork> path c:\Program Files\Java\jdk1.5.0_09\bin;%path% 4. Compile your class(es): C:\mywork> javac *.java 5. Create 

Advertisements Advertisements
 

 

 

DMCA.com