• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Trouble with Eclipse

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm in my senior year programming Java in my AP Comp Sci A class. We use TextPad in class, but I heard Eclipse is a better text editor, so I'm trying it out. I downloaded and installed the latest windows Java SDK and Eclipse... but I can't get anything to compile with it. In fact, I also tried TextPad and I couldn't get that to work either. Could someone tell me what I need in order to use Eclipse and / or TextPad?
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Daniel,

We're going to need a little more info -- what did you do, exactly, and what happened? I'm going to move this thread to our "IDEs, Version Control, and Other Tools" forum where it's on-topic.
 
Daniel Lucas
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Alright, I'll give a more detailed answer when I get home from school this afternoon. There are only 3 mins left in my Java class I guess what I'm trying to ask for is a guide, either written here or a link to one, that tells me what I need to do to compile a java program in eclipse.
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Daniel,
I like this tutorial. It's very detailed and goes through everything step-by-step.

As Ernest said, if you are having a specific problem, post some more details about it and someone here can help you out.
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Daniel Lucas:
what I need to do to compile a java program in eclipse.



Once you have it set up correctly, just save the java file. Eclipse then automatically compiles it at instance (check that you have "build automatically" activated in the project menu).
 
Daniel Lucas
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Jeanne Boyarsky:
Daniel,
I like this tutorial. It's very detailed and goes through everything step-by-step.

As Ernest said, if you are having a specific problem, post some more details about it and someone here can help you out.

Thank you! That website tutorial is exactly what I needed. I haven't had a chance to retry eclipse at home yet, but I'm sure I'll be able to figure it out now.

And you know what's ironic? That's from the University of Maryland website, which is the college I plan to attend for the fall of 06; majoring in Computer Engineering and minoring in Computer Science
 
Jeanne Boyarsky
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Daniel Lucas:
That's from the University of Maryland website, which is the college I plan to attend for the fall of 06; majoring in Computer Engineering and minoring in Computer Science


Cool! Then you know it's a good school
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is javac in your path? Maybe when you downloaded and installed the newer JDK, the path to javac is different, and therefore couldn't run it. WHen I say path, I just mean your Windows path environment variable and not ClassPath.

Mark
 
Ilja Preuss
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Mark Spritzler:
Is javac in your path? Maybe when you downloaded and installed the newer JDK, the path to javac is different, and therefore couldn't run it. WHen I say path, I just mean your Windows path environment variable and not ClassPath.



Eclipse doesn't use javac, it comes with its own compiler.
 
Jeanne Boyarsky
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Ilja Preuss:


Eclipse doesn't use javac, it comes with its own compiler.


I thought Eclipse requires a JRE to run and then uses it's own to compile your code.
 
Ilja Preuss
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Jeanne Boyarsky:

I thought Eclipse requires a JRE to run and then uses it's own to compile your code.



It also needs a JRE to compile against the Java API. It's only the compiler that's inbuild in Eclipse.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic