Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse cannot create Java class?(Cannot create a java class... The heck?!)
icon5.gif  Eclipse cannot create Java class? [message #1277152] Tue, 25 March 2014 15:25 Go to next message
Alex Queen is currently offline Alex Queen
Messages: 1
Registered: March 2014
Junior Member
I am trying to simply create a Java class. I have the project created, a package created in the src directory, and when I go to create the Java class, it tells me it cannot find the file and the directory I'm attempting to create it at (in my workspace). I've followed what every tutorial and other guide on the Internet has showed me, and yet I cannot create a simple Java class. HELP!
Re: Eclipse cannot create Java class? [message #1277410 is a reply to message #1277152] Wed, 26 March 2014 00:21 Go to previous message
Russell Bateman is currently offline Russell Bateman
Messages: 3198
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 03/25/2014 09:58 AM, Alex Queen wrote:
> I am trying to simply create a Java class. I have the project created, a
> package created in the src directory, and when I go to create the Java
> class, it tells me it cannot find the file and the directory I'm
> attempting to create it at (in my workspace). I've followed what every
> tutorial and other guide on the Internet has showed me, and yet I cannot
> create a simple Java class. HELP!

The new class wizard asks you for the package you want the class in and
the name of the class. Optionally, you can configure what Eclipse will
generate in addition like a main() method, etc.

When you click Finish, Eclipse creates the class file for you in the
appropriate subdirectory of the project which may or may not be located
in the workspace depending on how you created or imported the project in
the first place.

If this is not explanation enough, we'll need more exact details. You
should then come back with a step-by-step list of what you do to create
a new class.

Hope this helps.
Previous Topic:[SOLVED] Can't install Aptana plugin due to missing requirement
Next Topic:Need Help,please...
Goto Forum:
  


Current Time: Tue Sep 30 10:23:56 GMT 2014

Powered by FUDForum. Page generated in 0.01483 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software