Hi,

I am trying to write run a small script in java console. I managed to compile the script but getting an error while running them.

How do i get it fixed. I Have attached the error screenshot here.

I know its a noob question as i am unable to figure what went wrong.

Hope can find solution here..

Thanks in advance

My guess is you declared "package" at the start of the file. Compile will work fine and place the "class" file in subdirectory of the "java" file that been used for compile. You can confirm this by "dir" command (that should be equivalent of unix ls command). Anyway to execute this class you need to give it path to class file. Example

package com.daniweb;

will be as

java com/daniweb/FloodClient
commented: nice to see you here http://forums.oracle.com/forums/forum.jspa?forumID=950 +8
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.