packages

packages

when i run a simple program on package it shows error my program is

package world;
public class HelloWorld {
  public static void main(String[] args) {
    System.out.println("Hello World");
  }
}

i ve stored it in c:\world

so i compile it by c:\world> javac HelloWorld.javaprint("code sample");

it compiles succesfully but when i do c:\world>java world.HelloWorld

it shows the foll error

Caused by: java.lang.ClassNotFoundException: world.HelloWorld at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) Could not find the main class: world.HelloWorld. Program will exit.

plzzz help

View Answers

November 22, 2011 at 12:37 PM

try running using the following: c:\world>java HelloWorld









Related Tutorials/Questions & Answers:
packages
packages  how to work with packages in java?   Have a look at the following links: http://www.roseindia.net/java/tools/master-java/java-package.shtml http://www.roseindia.net/java/master-java/java-package.shtml
packages
packages  how to work with packages in java?   Have a look at the following links: http://www.roseindia.net/java/tools/master-java/java-package.shtml http://www.roseindia.net/java/master-java/java-package.shtml
Advertisements
packages
packages  how to work with packages in java?   Have a look at the following links: http://www.roseindia.net/java/tools/master-java/java-package.shtml http://www.roseindia.net/java/master-java/java-package.shtml
packages
packages  how to work with packages in java?   Have a look at the following links: http://www.roseindia.net/java/tools/master-java/java-package.shtml http://www.roseindia.net/java/master-java/java-package.shtml
packages
packages  how to work with packages in java?   Have a look at the following links: http://www.roseindia.net/java/tools/master-java/java-package.shtml http://www.roseindia.net/java/master-java/java-package.shtml
packages
packages  how to work with packages in java?   Have a look at the following links: http://www.roseindia.net/java/tools/master-java/java-package.shtml http://www.roseindia.net/java/master-java/java-package.shtml
packages
packages  how to work with packages in java?   Have a look at the following links: http://www.roseindia.net/java/tools/master-java/java-package.shtml http://www.roseindia.net/java/master-java/java-package.shtml
packages
packages  how to work with packages in java?   Have a look at the following links: http://www.roseindia.net/java/tools/master-java/java-package.shtml http://www.roseindia.net/java/master-java/java-package.shtml
packages
packages  how to work with packages in java?   Have a look at the following links: http://www.roseindia.net/java/tools/master-java/java-package.shtml http://www.roseindia.net/java/master-java/java-package.shtml
packages
packages  how to work with packages in java?   Have a look at the following links: http://www.roseindia.net/java/tools/master-java/java-package.shtml http://www.roseindia.net/java/master-java/java-package.shtml
packages
packages  how to work with packages in java?   Have a look at the following links: http://www.roseindia.net/java/tools/master-java/java-package.shtml http://www.roseindia.net/java/master-java/java-package.shtml
packages
packages
ModuleNotFoundError: No module named 'packages'
ModuleNotFoundError: No module named 'packages'  Hi, My Python... 'packages' How to remove the ModuleNotFoundError: No module named 'packages... to install padas library. You can install packages python with following
Packages needed for JDBC in Linux
Packages needed for JDBC in Linux  Can anyone tell me the packages needed to run a program with JDBC in Red Hat 5
Regarding Documentation of Packages
Regarding Documentation of Packages  Hello How to get java packages ie documentation of classes ,Interfaces and methods from windows command prompt.In the sense Java.lang,java.awt,java.math etc
Joomla Development Packages
Joomla Development Packages  In offshore services, we also offer a full-bodied package on various Joomla CMS like: Joomla Custom Templates Package Joomla Starter Package Joomla Standard Package Joomla Composite Package
Agra Travel Packages
Agra Travel Packages We are offering customized Agra Travel Packages which... customization of these packages based on your travel requirements. As an individual... family trip as well as customized group travel packages. Agra group packages
java.net packages - Java Beginners
java.net packages  Tell me some impotant classes to used in java.net packages?  hi friend, import java.net.*; import java.io.*; public class URLExample { public static void main(String args[]){ try
util packages in java
util packages in java  write a java program to display present date and after 25days what will be the date?   import java.util.*; import java.text.*; class FindDate{ public static void main(String[] args
ModuleNotFoundError: No module named 'deepak-packages'
ModuleNotFoundError: No module named 'deepak-packages'  Hi, My... named 'deepak-packages' How to remove the ModuleNotFoundError: No module named 'deepak-packages' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'lambda_packages'
ModuleNotFoundError: No module named 'lambda_packages'  Hi, My... named 'lambda_packages' How to remove the ModuleNotFoundError: No module named 'lambda_packages' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'lambda_packages'
ModuleNotFoundError: No module named 'lambda_packages'  Hi, My... named 'lambda_packages' How to remove the ModuleNotFoundError: No module named 'lambda_packages' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'lambda_packages'
ModuleNotFoundError: No module named 'lambda_packages'  Hi, My... named 'lambda_packages' How to remove the ModuleNotFoundError: No module named 'lambda_packages' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'simple-packages'
ModuleNotFoundError: No module named 'simple-packages'  Hi, My... named 'simple-packages' How to remove the ModuleNotFoundError: No module named 'simple-packages' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'sphinxcontrib-packages'
ModuleNotFoundError: No module named 'sphinxcontrib-packages'  Hi...: No module named 'sphinxcontrib-packages' How to remove the ModuleNotFoundError: No module named 'sphinxcontrib-packages' error? Thanks   Hi
ModuleNotFoundError: No module named 'deepak-packages'
ModuleNotFoundError: No module named 'deepak-packages'  Hi, My... named 'deepak-packages' How to remove the ModuleNotFoundError: No module named 'deepak-packages' error? Thanks   Hi, In your python
creating packages in java
creating packages in java  Hi everybody, I am Rupesh Narayan, i faces a problem while creating package in core java. I write two programs that are described below:- 1.PackageDemo.java package javaclass; import java.io.*; public
Other Base Packages
Other Base Packages I/O For handling i/o of an application in java , java.io & java.nio package is available. Object Serialization (adsbygoogle = window.adsbygoogle || []).push({}); Object Serialization provides
Java package,Java Packages
. InterfacesClassesEnumerated typesAnnotations Using packages The package to which... protection in packages No modifier (default): In case of no modifier, the classes... of packages A hierarchical naming pattern is used for java packages, with levels
ModuleNotFoundError: No module named 'ppa-copy-packages'
ModuleNotFoundError: No module named 'ppa-copy-packages'  Hi, My... named 'ppa-copy-packages' How to remove the ModuleNotFoundError: No module named 'ppa-copy-packages' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'publishing_pip_packages'
ModuleNotFoundError: No module named 'publishing_pip_packages'  Hi...: No module named 'publishing_pip_packages' How to remove the ModuleNotFoundError: No module named 'publishing_pip_packages' error? Thanks   
ModuleNotFoundError: No module named 'cerner-rca-packages'
ModuleNotFoundError: No module named 'cerner-rca-packages'  Hi, My... named 'cerner-rca-packages' How to remove the ModuleNotFoundError: No module named 'cerner-rca-packages' error? Thanks   Hi
ModuleNotFoundError: No module named 'CLI-for-managing-packages-Drop'
ModuleNotFoundError: No module named 'CLI-for-managing-packages-Drop' ...: No module named 'CLI-for-managing-packages-Drop' How to remove the ModuleNotFoundError: No module named 'CLI-for-managing-packages-Drop' error
ModuleNotFoundError: No module named 'django-packages-search'
ModuleNotFoundError: No module named 'django-packages-search'  Hi...: No module named 'django-packages-search' How to remove the ModuleNotFoundError: No module named 'django-packages-search' error? Thanks   Hi
ModuleNotFoundError: No module named 'find-python-packages'
ModuleNotFoundError: No module named 'find-python-packages'  Hi...: No module named 'find-python-packages' How to remove the ModuleNotFoundError: No module named 'find-python-packages' error? Thanks   Hi
Version of com.gu>story-packages-model_2.10 dependency
List of Version of com.gu>story-packages-model_2.10 dependency
Version of com.gu>story-packages-model_2.11 dependency
List of Version of com.gu>story-packages-model_2.11 dependency
Version of com.gu>story-packages-model-thrift dependency
List of Version of com.gu>story-packages-model-thrift dependency
Taj mahal tour packages information needed
Taj mahal tour packages information needed  Hi, I am planning to visit Taj Mahal with my friends next week. Can anyone suggest me the Taj Mahal tour... package. More related tour packages are: 1) Golden Triangle Tours with Shimla
Maven Dependency story-packages-model_2.10 >> 0.3.1
You should include the dependency code given in this page to add Maven Dependency of com.gu >> story-packages-model_2.10 version0.3.1 in your project
Maven Dependency story-packages-model_2.10 >> 0.3.2
You should include the dependency code given in this page to add Maven Dependency of com.gu >> story-packages-model_2.10 version0.3.2 in your project
Maven Dependency story-packages-model_2.10 >> 0.4.0
You should include the dependency code given in this page to add Maven Dependency of com.gu >> story-packages-model_2.10 version0.4.0 in your project
Maven Dependency story-packages-model_2.10 >> 1.0.0
You should include the dependency code given in this page to add Maven Dependency of com.gu >> story-packages-model_2.10 version1.0.0 in your project
Maven Dependency story-packages-model_2.10 >> 1.0.1
You should include the dependency code given in this page to add Maven Dependency of com.gu >> story-packages-model_2.10 version1.0.1 in your project
Maven Dependency story-packages-model_2.10 >> 1.0.2
You should include the dependency code given in this page to add Maven Dependency of com.gu >> story-packages-model_2.10 version1.0.2 in your project
Maven Dependency story-packages-model_2.11 >> 0.0.1
You should include the dependency code given in this page to add Maven Dependency of com.gu >> story-packages-model_2.11 version0.0.1 in your project
Maven Dependency story-packages-model_2.11 >> 0.0.2
You should include the dependency code given in this page to add Maven Dependency of com.gu >> story-packages-model_2.11 version0.0.2 in your project
Maven Dependency story-packages-model_2.11 >> 0.2.0
You should include the dependency code given in this page to add Maven Dependency of com.gu >> story-packages-model_2.11 version0.2.0 in your project
Maven Dependency story-packages-model_2.11 >> 0.3.0
You should include the dependency code given in this page to add Maven Dependency of com.gu >> story-packages-model_2.11 version0.3.0 in your project

Ads