userdefined package

Ads
 

userdefined package

package javap; class HelloWorld { public static void main(String args[]) { System.out.println("hai"); } } i declare a package then in command prompt i set the classpath.After that i compiled the class and run the package then i got the error C:\Users\anitha>set classpath=C:\Program Files\Java\jdk1.6.0_26\lib

C:\Users\anitha>D:

D:>cd javap

D:\javap>set CLASSPATH=C:\Program Files\Java\jdk1.6.0_26\lib

D:\javap>javac HelloWorld.java

D:\javap>java javap.HelloWorld Exception in thread "main" java.lang.NoClassDefFoundError: javap/HelloWorld Caused by: java.lang.ClassNotFoundException: javap.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) Could not find the main class: javap.HelloWorld. Program will exit. pls correct me very urgent

View Answers

Ads









Related Tutorials/Questions & Answers:
userdefined package
userdefined package  package javap; class HelloWorld { public... declare a package then in command prompt i set the classpath.After that i compiled the class and run the package then i got the error C:\Users
Writing a trigger for an userdefined datatype
Writing a trigger for an userdefined datatype  i have a user defined datatype in EMP table like COLUMNNAME:ADDRS_TYPE where ADDRS_TYPE have the following columns DATATYPE :ADDRESS VARCHAR2(136) V_CODE VARCHAR2(8) T_CODE
Advertisements
How to find maximum value for userdefined objects in ArrayList
How to find maximum value for userdefined objects in ArrayList  Hi sir,I have requirement i.e finding maximum value in userdefined objects... to write logic . My sample code : package com.naresh; import java.util.ArrayList
How to find maximum value for userdefined objects in ArrayList
How to find maximum value for userdefined objects in ArrayList  Hi sir,I have requirement i.e finding maximum value in userdefined objects... to write logic . My sample code : package com.naresh; import java.util.ArrayList
How to find maximum value for userdefined objects in ArrayList
How to find maximum value for userdefined objects in ArrayList  Hi sir,I have requirement i.e finding maximum value in userdefined objects... to write logic . My sample code : package com.naresh; import java.util.ArrayList
Package
Package  Create a Package named com.example.code. Write few classes, interface and abstract classes. Now create a class names PackageDemo that uses the classes of this package from other package
Package
Package  Create a Package named com.example.code. Write few classes, interface and abstract classes. Now create a class names PackageDemo that uses the classes of this package from other package
package:
package:  i hv created created a package and save it into D... in a package world. The we specify the keyword package with the name of the package. package world; public class HelloWorld { public static void main(String
package:
package:  i hv created created a package and save it into D... in a package world. The we specify the keyword package with the name of the package. package world; public class HelloWorld { public static void main(String
package
package  by what name we can save a java file that contain a package {i.e package p;} and several public classes {i.e public class abc} but not a main method
package
can allow types in one package to have unrestricted access to one another, still restricting the access for the types outside the package
package
package  write a package for games which have two classes indoor... specifier and also use the finalize() method   We have created a package... class, we have imported this package and using a function display(), we have
package
package  Smith has created a package named ApplianceDetails that contains the Appliance class.Now he wants to create a class named NewAppliance that stores the details of the newly launched appliances.He uses the following syntax
package
package  Smith has created a package named ApplianceDetails that contains the Appliance class.Now he wants to create a class named NewAppliance that stores the details of the newly launched appliances.He uses the following syntax
Package in Applet
Package in Applet  How do I use this technique for applets
What is a package?
What is a package?  hi, What is a package? thanks   Hi, The Package is a mechanism for organizing the group of related files... programming language, A package is group of related types of classes & interfaces
Java.io package
Java.io package  List the names of various classes supported by Java.io package to handle character stream.   Reader and Writer classes and their subclasses
problem with package
problem with package  Dear sir, i have created one java file with package com.net; and i compiled the program.it showing the .class file... message as can not access package class methods
add new package java
add new package java  How to add new package in Java
ModuleNotFoundError: No module named 'package'
ModuleNotFoundError: No module named 'package'  Hi, My Python... 'package' How to remove the ModuleNotFoundError: No module named 'package... to install padas library. You can install package python with following command
package javax.ws.rs does not exist
package javax.ws.rs does not exist  Hi, Which jar file should I add to remove "package javax.ws.rs does not exist" error? Thanks
Which package is imported by default?
Which package is imported by default?  hi, Which package... package is imported by default? The java.lang package is imported by default even without a package declaration. In Java class has been imported in the following
The package keyword
The package keyword       The package in java programming language is a keyword that is used to define a package that includes the java classes. Keywords are basically reserved words
Joomla Starter Package
Joomla Starter Package This is a basic package in which we offer all the necessary features that needs a basic package. This package can be managed... effortlessly whenever they want. This is an ideal package in small budget. We
there is no package called 'knitr'
there is no package called 'knitr'  Hi, I RStudio its giving following error: there is no package called 'knitr' How to solve this? Thanks   Hi, You have to install the package knitr. Run the following command
there is no package called 'knitr'
there is no package called 'knitr'  Hi, I RStudio its giving following error: there is no package called 'knitr' How to solve this? Thanks   Hi, You have to install the package knitr. Run the following command
missing package-info.java file
missing package-info.java file  How to find and add the packages in Java if it's missing from the list
What is java.util package?
What is java.util package?  Hi I want to know about the util package in Java. What is java.util package? How its useful? Thanks   Hi, The java.util Package is very important package in Java as it contains frequently
Joomla Custom Templates Package
Joomla Custom Templates Package In this Joomla package, we offer eye-catching and unique Joomla Templates designed and developed according.... This package is suitable for your company's business requirement
Joomla Standard Package
Joomla Standard Package In this package we offer a complete standard package that can be customize or upgraded later as per the requirement of the clients. The client itself can modify and manage
package javax.servlet does not exist
package javax.servlet does not exist  Hi, I am building a web application using maven and its throwing following error: package javax.servlet does not exist package javax.servlet.http does not exist How to solve the error

Ads