|
Re: Help with .substring() [message #1090240 is a reply to message #1090222] |
Mon, 19 August 2013 22:43 |
|
Assuming you mean java.lang.String#substring(), it literally means that the corresponding source for the method is not found. Usually the easiest thing to do is to have your project built against a JDK (which provides the sources in a spot where Eclipse knows to look) rather than a JRE, or to edit the source lookup path and add the matching src.zip to the list of places to look. Eclipse itself may only require a JRE to run itself, and to compile your Java programs, but there are benefits to having a JDK installed when you're actually developing Java with Eclipse.
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
|
Re: Help with .substring() [message #1090800 is a reply to message #1090774] |
Tue, 20 August 2013 16:52 |
|
On 8/20/2013 10:16 AM, james mathison wrote:
> Thanks for the information. I think I understand what you are saying
> but how do I build my project against a JDK? I downloaded the JDK from
> ORACLE and installed it but just doing that doesn't seem to have changed
> anything. Is there anything else i need to do? Thanks again for the
> help, im pulling my hair out trying to figure this out..
1. Window -> Preferences -> Java -> Installed JREs -> Add -> Standard VM
-> Next -> Directory....
2. Navigate to the top of your JDK (something like jdk1.7.0_25). click OK.
3. Finish.
4. Ok.
And you're off!
|
|
|
|
Re: Help with .substring() [message #1090819 is a reply to message #1090807] |
Tue, 20 August 2013 17:23 |
|
On 8/20/2013 11:09 AM, james mathison wrote:
> It doesnt want to allow me to click the JDK file. It is a .dmg file
> does it need to be something else? Also I am on a mac if that makes a
> difference.
Uh, .dmg, is that a Macintosh thing? Like a package? You must disembowl
it into the file system. Then, it won't be a file, but a subdirectory,
with a name similar to what I said. Should work then.
If not, there are a few Mac guys that haunt this forum. They'll be along
sometime.
|
|
|
|
Re: Help with .substring() [message #1090848 is a reply to message #1090825] |
Tue, 20 August 2013 18:17 |
|
On 8/20/2013 11:40 AM, james mathison wrote:
> A .dmg I believe is the mac equivalent of a .iso on windows. Does that
> mean i downloaded the wrong thing?
I'm not a Macintosh guy. I just played around with installing
jdk1.7.0_25 on a Macintosh (using the .dmg), but once finished, it was
totally unclear to me how to point Eclipse at it.
At this point, I'm going to punt you to the next Mac guy who passes by.
Sorry.
|
|
|
|
Re: Help with .substring() [message #1091466 is a reply to message #1091461] |
Wed, 21 August 2013 14:43 |
|
On 8/21/2013 8:38 AM, Greg Pugh wrote:
> On 2013-08-20 18:17:55 +0000, Russell Bateman said:
>
>> On 8/20/2013 11:40 AM, james mathison wrote:
>>> A .dmg I believe is the mac equivalent of a .iso on windows. Does that
>>> mean i downloaded the wrong thing?
>>
>> I'm not a Macintosh guy. I just played around with installing
>> jdk1.7.0_25 on a Macintosh (using the .dmg), but once finished, it was
>> totally unclear to me how to point Eclipse at it.
>>
>> At this point, I'm going to punt you to the next Mac guy who passes by.
>>
>> Sorry.
>
>
> You need to install the JDK from the .dmg file you downloaded. Double
> click the .dmg file and it should mount the dmg and display a small
> window telling you to double click the icon in the window to install the
> JDK. Once the install is done you can close the window and Eject the
> mounted dmg file.
>
> Recent Java installs for Mac are in /Library/Java/JavaVirtualMachines
> rather than the old /System/Library/... location.
So, when attaching the JDK to Eclipse via Window -> Preferences -> Java
-> Installed JREs, etc., what is the directory name to stop on? In other
words, which subdirectory after JavaVirtualMachines do I feed to the
file-open dialog asking me to "Select the root directory of the JRE
installation"?
|
|
|
|
Re: Help with .substring() [message #1092597 is a reply to message #1092581] |
Fri, 23 August 2013 01:42 |
|
If your Installed JREs preference page has a Search button, use it. Otherwise, you want the parent folder of the "bin" directory that contains the "java" binary.
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
|
Powered by
FUDForum. Page generated in 0.09575 seconds