2

I'm new to JavaEE and GlassFish and all, but I was put on a team (at school) to update a glassfish based server we use to host programming competitions. I was given the eclipse project that worked last year, but many of the dependencies are missing (they had absolute paths set to the previous host's local drive) and I am out of contact with the person who hosted the server last year. I have most of the errors fixed and dependencies re-added but I am unable to launch due to one last error,

"Target runtime GlassFish 4.0 is not defined."

A number of google searches has gotten me almost nowhere and I cannot find anything about re-associating a glassfish project with the runtime.

Here are images of my current configuration (comment if you want to see more)

GlassFish Tools Server Tab Package Explorer Properties -> Server Properties -> Targeted Runtimes Properties -> Project Facets Properties -> Project Build Path Error Message

So, the big question, how do I fix this and re-associate this project with the runtime?

Shadowtrot
  • 710
  • 1
  • 7
  • 13

1 Answers1

3

I had the same problem, and the same configuration. In the Project facets: enter image description here

Try to just enable Glassfish4.0 in the runtimes tab and apply it. Leave the rest as it was. It should look like this: enter image description here

It looks like eclipse is using that by default, when it should use the other.

I hope it works for you too.

glenneroo
  • 1,908
  • 5
  • 30
  • 49