Skip to main content



      Home
Home » Newcomers » Newcomers » Installed Eclipse, Doesn't Recognize Classes(Installed Ecipse on a new computer and it doesn't recognize any type of class. Simply trying to create a String type causes an error, and it's the same for all classes and types.)
icon9.gif  Installed Eclipse, Doesn't Recognize Classes [message #1697111] Mon, 01 June 2015 12:21 Go to next message
Eclipse UserFriend
So recently I got a new laptop (a Mac) and installed Eclipse on it. Moving the contents of my workspace from the old computer to the new one was a breeze, as was getting all of my old work to show up in the sidebar. Sadly, when I tried to start coding I realized that something was wrong.

The first thing I noticed was that simply trying to declare a String created an error warning, and that Eclipse wanted me to try creating a String class. Even when I tried to create a new class from scratch, the class name is highlighted red, as is the 'p' in package at the start of the code. I think there's something wrong with my build path. Can anyone help?
Re: Installed Eclipse, Doesn't Recognize Classes [message #1697115 is a reply to message #1697111] Mon, 01 June 2015 12:52 Go to previous messageGo to next message
Eclipse UserFriend
Your language probably has a String class of its own. If you're working in Java, are you sure the workspace and your projects are still pointing at valid JREs?
Re: Installed Eclipse, Doesn't Recognize Classes [message #1697116 is a reply to message #1697115] Mon, 01 June 2015 13:02 Go to previous messageGo to next message
Eclipse UserFriend
Unfortunately, no, is there any advice you have on checking or fixing it?
Re: Installed Eclipse, Doesn't Recognize Classes [message #1697128 is a reply to message #1697116] Mon, 01 June 2015 15:19 Go to previous message
Eclipse UserFriend
First, go into your Installed JREs preference page and make sure anything there is valid, or everything that's not valid is removed. Then, from the Package Explorer (or Project Explorer) view, right-click and open up the Properties of the project's JRE System Library node and make sure it points to something that actually exists. If you don't do that, the Java tools really have no idea what classes should be available to code against in that project.
Previous Topic:Need Multiple version of GCC in Eclipse IDE - C/C++ Helios
Next Topic:Skype Scanner
Goto Forum:
  


Current Time: Tue May 13 06:57:41 EDT 2025

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

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

Back to the top