Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Difficulty to run java file II(No worked)
Difficulty to run java file II [message #646418] Thu, 23 December 2010 21:46 Go to next message
Paulo Kutwak is currently offline Paulo KutwakFriend
Messages: 32
Registered: November 2009
Location: Brazil
Member
Hi, Eric. I tried what you said, no worked. I had many others problems when I installed EclipseRT.

Thanks for help.
Re: Difficulty to run java file II [message #646469 is a reply to message #646418] Fri, 24 December 2010 15:27 Go to previous messageGo to next message
Paulo Kutwak is currently offline Paulo KutwakFriend
Messages: 32
Registered: November 2009
Location: Brazil
Member
I don't understand, I must create a new project to make work and create a new class, open a file and copy and paste. No advance open the file alone without create a project, so no appear the option Java Application to run the class. I have many java files and I can't get import and no advance open the file like I told.
Re: Difficulty to run java file II [message #646473 is a reply to message #646469] Fri, 24 December 2010 16:43 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 2010.12.24 8:27, Paulo wrote:
> I don't understand, I must create a new project to make work and create
> a new class, open a file and copy and paste. No advance open the file
> alone without create a project, so no appear the option Java Application
> to run the class. I have many java files and I can't get import and no
> advance open the file like I told.

I believe that you can open and edit a .java file without it being part
of a project using File -> Open File...
Re: Difficulty to run java file II [message #646515 is a reply to message #646418] Sat, 25 December 2010 23:55 Go to previous messageGo to next message
Nigel Jones is currently offline Nigel JonesFriend
Messages: 1
Registered: December 2010
Junior Member
Yes, you can open and edit file any way. Which editor do you use by the way? Just interested in case this will lead me to better one.
Re: Difficulty to run java file II [message #646526 is a reply to message #646469] Tue, 28 December 2010 14:14 Go to previous message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
On 12/24/10 10:27 AM, Paulo wrote:
> I don't understand, I must create a new project to make work and create
> a new class, open a file and copy and paste. No advance open the file
> alone without create a project, so no appear the option Java Application
> to run the class. I have many java files and I can't get import and no
> advance open the file like I told.

Eclipse is based on Projects. You can open individual files that are not
part of a Project, but Eclipse can't compile or run them (how could it?
what would it use as the classpath for such files?).
So to work with Java code, it MUST be in a project. Did you know that
you can create an Eclipse Project who's contents are somewhere else on
your file system? There are several ways to get existing code into an
Eclipse Project, even copy the code for a Java class and then paste it
right into a package in an Eclipse Project.
Open the Eclipse Help Contents, then navigate to "Java development user
guide" > Getting Started > "Project configuration tutorial."

Eric
Previous Topic:Moving Plug-ins between different libraries
Next Topic:JEE 6 web projects on Eclipse
Goto Forum:
  


Current Time: Wed Apr 24 14:24:24 GMT 2024

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

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

Back to the top