Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Opening a Java class created elsewhere
Opening a Java class created elsewhere [message #147714] Mon, 08 March 2004 09:41 Go to next message
Eclipse UserFriend
Originally posted by: drder67.NOSPAM.yahoo.co.uk

Hello all,
I am new to Java programming and Eclipse, so please excuse my ignorance!
Currently I am taking a course on Java at a local university where I usually
use either Kawa or NetBeans to create my Java class files (they don't have
Eclipse). At home, I like to use Eclipse. But I can not get a simple class
file imported into Eclipse! When I try to run it (if I can get it open) I
get the error that there is no main method, although there is. Even
HelloWorld will not run! If I create a new project and class in Eclipse and
cut and paste the code, the class executes with no problems. But this is a
bit if a hassle. So if anyone could point me in the right direction on how
to open and import a class file into Eclipse, I would be very grateful.
TIA,

Dave Roberts
Re: Opening a Java class created elsewhere [message #148026 is a reply to message #147714] Wed, 10 March 2004 08:22 Go to previous message
Eclipse UserFriend
Originally posted by: daniel.megert.gmx.net

Dave Roberts wrote:

>Hello all,
>I am new to Java programming and Eclipse, so please excuse my ignorance!
>Currently I am taking a course on Java at a local university where I usually
>use either Kawa or NetBeans to create my Java class files (they don't have
>Eclipse). At home, I like to use Eclipse. But I can not get a simple class
>file imported into Eclipse! When I try to run it (if I can get it open) I
>get the error that there is no main method, although there is. Even
>HelloWorld will not run! If I create a new project and class in Eclipse and
>cut and paste the code, the class executes with no problems. But this is a
>bit if a hassle. So if anyone could point me in the right direction on how
>to open and import a class file into Eclipse, I would be very grateful.
>
>
You cannot. You have to create a Java project first.

Dani

>TIA,
>
>Dave Roberts
>
>
>
>
Previous Topic:can one export the classpath variables?
Next Topic:Import/Export of Preferences
Goto Forum:
  


Current Time: Mon Jul 21 22:14:26 EDT 2025

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

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

Back to the top