command line - About packages in java -


suppose there 1 folder 'product' in have product.java without main function file , outside product folder , there source.java file having main function have declared object of product.java make use of packages call source.java

now tell me way call file : except using 1.classpath in cmd prompt 2.without setting environment variable

you have set classpath, may set jar's manifest.mf. http://java.sun.com/developer/books/javaprogramming/jar/basics/manifest.html

if want youse manifest have package generated classes inside jar-archive.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -