I'm a little self taught at java. I have a package: package:

package org.newdawn.spaceinvaders

there's folders like org and newdawn are created and nested. the main is Game.java at end of those folders. How do i run it? i went to the end folder and typed java Game that didn't work.

Mike

Recommended Answers

All 2 Replies

java -cp "_your class path,place where folder org is_" org.newdawn.spaceinvaders.Game

that did work. thanks
Mike

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.