• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

going from textPad to Eclipse

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Java gurus ,

I have been teaching myself with a fantic book by Thompson publications, It cost me AUD $120 but after 3 weeks at it I find it a such a good book i cant imagine a better one for a begginer,. It concentrating a lot on procedural programming but chapter 5 gets into objects, classes , more indepth in regards to object programming.

I have done most of programming using different simple text editors.

My question is when I try to load these classes into eclipse, they show up by using the Get or import file(i forget), but i get a error message and it wont run the java file file even though I have the work space set to where the file is ?

Pretty much the same problem when i use NetBeans(im just experiment with the ide's as I really like the code completion.

Can anyone shed light on what my problem is likly to be ?

Thanks in advance, mike.
 
author & internet detective
Posts: 42163
937
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
We have a thread around these parts just for IDEs. I'll scoot your post on over for you.
 
mick lynch
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I cannot fint where you scooted it to. soory im a bit stubid today. and new to this forum as of 10 min ago.
 
mick lynch
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anyone helpm with this problem i am having with eclipse ?
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by mick lynch:
My question is when I try to load these classes into eclipse, they show up by using the Get or import file(i forget), but i get a error message and it wont run the java file file even though I have the work space set to where the file is ?
[MG Emphasis added]



If you forget, how can we figure it out?
Always tell us the details so you can help us help you better. Same applies to "I get an error message".
 
Marshal
Posts: 80874
506
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's easier to import classes into Eclipse. Easiest way is to open the "src" folder where Eclipse keeps the files and r-drag them into it, so as to copy them across. Eclipse seems to find them like that, but NetBeans doesn't.
Alternative: create a new class with the same name and copy-and-paste the entire text.

And which book did you find so helpful?
 
mick lynch
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thankyou very much for your response. I have been usinfg simple text editors for months and have had very few problems, cept when i scrw up the syntax, like it took me hours to find out why some code wasnt working , i had if(flag = true), that compiled fine of course because it was assigining. Of course programmers possibly yourself i have no doubt would have know the correct statment to be used was if(flag == true)

I have been trying netbeans and eclipse, not sure yet which i will prefer. I have been using quick fixes as you suggested.
I will post again later the title of the boo and author and publisher. I have 3 good java books but this one by Tthomson press is by far the best for begginer up to possibly intermediate programmer.
 
mick lynch
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Campbell, ill make do with that solution till i get better at hose IDE's
 
Campbell Ritchie
Marshal
Posts: 80874
506
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You might do better to leave the old classes where they are and only write new classes on Eclipse. If you need to reuse a class, create a class with the same name, and copy and paste the entire text.

The correct statement is not if (flag == true), but if (flag); you have seen for yourself how prone == true is to serious errors from tiny misspellings. If you if (flag = true) on Eclipse you will probably get a yellow warning triangle against it.
And don't write if (flag == false), write if (!flag).
 
mick lynch
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry I have not posted the book title, I keep forgetting. One bgook that is very good especially as a quick reference is Core Java2 by Sun. That will be even handier when I am a bit further along the learning curve.

I will rember to post the full name of the first book, I have found the best by far next i am in town.
 
mick lynch
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The bok I like is by Richard A Johnson, Intro to java programming and object oriented Development. It can get a tiny bit tedious as it explains most lines of the code printed. Still for me itwas /is a great book.
 
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The best and easiest solution for you would be just uninstall everything

Then install the JDK and JRE

after that install eclipse.

if you do this way. Eclipse Automatically will take the settings and it would be easy for you to work.

Q>How to automatically import files in eclipse?
Answer >> just press ctrl+shift+space in your computer. if all syntax of your code is correct all the required classes and packages will be imported.


Thanks,
yuvraj
 
Campbell Ritchie
Marshal
Posts: 80874
506
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It ought not to be necessary to uninstall anything. You don't actually need to install Eclipse; you can unzip it into a folder, then double-click the "eclipse.exe" icon, and it should work (on Windows). You can even r-drag the eclipse.exe icon onto the desktop and then click "create shortcut."
On *nix you would need to edit the command which goes with the icon.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic