Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Java Noob, Need Help
Java Noob, Need Help [message #524892] Sat, 03 April 2010 12:10 Go to next message
Eclipse UserFriend
Hello Folks,

I'm currently attempting to learn Java. I've purchased a book called "Learning Java" -O'Reilly, which comes with a nice little CD filled with examples in Eclipse. The files seem to have what I believe is labeled as a Cheat Sheet with a step by step tutorial type helper, prompting me to "Click When Complete" to go to the next step and place a "Check" next to the previous step I've completed.

So that's all fine and dandy, but here's my problem:

I ran into a couple issues with the example .java files not opening the Cheat Sheets properly in Eclipse because I accidentally changed *something* and couldn't figure out how to go back, so I decided to wipe it clean and uninstall/delete my Eclipse files and start over.

Now, whenever I try to open these .java examples that came with the CD, it prompts me with a window asking what I'd like to open them with. It only gives me an option of wordpad or notepad. When I try to manually browse and select the "Eclipse.exe", it doesn't recognize it and opens it as a notepad file anyway.

I've been trying to figure this out for a few hours, and have become quite agitated, lol.

Thanks in advance...

Re: Java Noob, Need Help [message #524893 is a reply to message #524892] Sat, 03 April 2010 12:34 Go to previous messageGo to next message
Eclipse UserFriend
Matt wrote on Sat, 03 April 2010 12:10
Hello Folks,


Now, whenever I try to open these .java examples that came with the CD, it prompts me with a window asking what I'd like to open them with. It only gives me an option of wordpad or notepad. When I try to manually browse and select the "Eclipse.exe", it doesn't recognize it and opens it as a notepad file anyway.




You don't mention explicitly from where you are trying to open the .java files, but it sounds like you are trying to do this from outside Eclipse. That won't work. Eclipse is project based not file based. You can't just open up a java file with Eclipse.

I'm not familiar with the book you referenced, but my guess is that the book has a section on how to setup the examples. I would re-read that portion and make sure you are following what it says.
Re: Java Noob, Need Help [message #524900 is a reply to message #524892] Sat, 03 April 2010 16:06 Go to previous messageGo to next message
Eclipse UserFriend
Well, I've figured out how to import them now, but I've got a ton of errors. The book says I need to set the compiler to 5.0 compatibility, but 1.6 is the highest option I'm allowed to set. I'll see if I can fix a few more of the bugs.
Re: Java Noob, Need Help [message #524905 is a reply to message #524900] Sat, 03 April 2010 18:10 Go to previous messageGo to next message
Eclipse UserFriend
Java version numbers got kind of messed up with version 1.5. Sun decided to start calling it 5.0 so 5.0 compatability is the same as 1.5
Re: Java Noob, Need Help [message #524938 is a reply to message #524905] Sun, 04 April 2010 09:47 Go to previous message
Eclipse UserFriend
Oh, alright. That's weird. The rest of them I'm pretty sure I need to download certain tools/plug-ins, which I'll do as I go along.

Thanks for your help, very much appreciated.
Previous Topic:BuildPath 'JRE System Library' .jars clutter Project&PackageExplorer
Next Topic:Access Restriction Error in Eclipse IDE
Goto Forum:
  


Current Time: Thu Mar 27 12:23:31 EDT 2025

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

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

Back to the top