Suppose you did cd C:/projects
and HelloWorld.class
is in C:/projects/com
, then just type:
java com.HelloWorld
More Related Contents:
- Running java in package from command line
- How to compile java package structures using javac
- Compiling multiple packages using the command line in Java
- Java: Use import or explicit package / class name?
- Multiple .class files generated for a class?
- Java – public class constructor [duplicate]
- Private class property visible
- Java synchronized static methods: lock on object or class
- Java : If A extends B and B extends Object, is that multiple inheritance
- Creating a variable name using a String value
- How to synchronize a static variable among threads running different instances of a class in Java?
- Compile code fully in memory with javax.tools.JavaCompiler [duplicate]
- Using internal sun classes with javac
- Are there best practices for (Java) package organization? [closed]
- Pros and cons of package private classes in Java?
- Error: Generic Array Creation [duplicate]
- Does Java guarantee that Object.getClass() == Object.getClass()?
- How can I start a new android activity using class name in a string?
- Instantiate private inner class with java reflection
- Do unused import and objects have a performance impact?
- Make javac treat warnings as errors
- Loop over all fields in a Java class
- Could not find or load main class with a Jar File
- Java – get the current class name?
- How can I open Java .class files in a human-readable way?
- How to wildcard include JAR files when compiling?
- How do I pass a class as a parameter in Java?
- Is there a performance difference between Javac debug on and off?
- implicit super constructor Person() is undefined. Must explicitly invoke another constructor?
- How to use String.format() in Java? [duplicate]