Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 16:21 Go to next message
Marwa Roshan is currently offline Marwa RoshanFriend
Messages: 2
Registered: June 2015
Junior Member
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 16:52 Go to previous messageGo to next message
Nitin Dahyabhai is currently online Nitin DahyabhaiFriend
Messages: 3472
Registered: July 2009
Senior Member

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?

Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Installed Eclipse, Doesn't Recognize Classes [message #1697116 is a reply to message #1697115] Mon, 01 June 2015 17:02 Go to previous messageGo to next message
Marwa Roshan is currently offline Marwa RoshanFriend
Messages: 2
Registered: June 2015
Junior Member
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 19:19 Go to previous message
Nitin Dahyabhai is currently online Nitin DahyabhaiFriend
Messages: 3472
Registered: July 2009
Senior Member

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.

Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:Need Multiple version of GCC in Eclipse IDE - C/C++ Helios
Next Topic:Skype Scanner
Goto Forum:
  


Current Time: Thu Aug 22 17:32:59 GMT 2019

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

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

Back to the top