Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » downloaded WTP complete non-SDK, have no J2EE perspective
downloaded WTP complete non-SDK, have no J2EE perspective [message #200521] Tue, 25 September 2007 15:27 Go to next message
Eclipse UserFriend
Originally posted by: Brian_Preston.firstdatabank.com

I'm trying to get the features/plugins to get web projects. I'm using
Eclipse 3.3 and I just downloaded the 2.0 non-SDK Web Tools Platform
Complete zip. The way it is described there is exactly what I want to do;
develop web applications. I don't care about developing more tools.

I unzipped it into my eclipse directory and restarted eclipse. There are
no options to create a new web project, nor is there a J2ee perspective.
When I look at the Eclipse features, I see JST and WST both listed there.
So what am I missing? How do I get the J2EE perspective and web projects?

I've had this working at my previous job, not sure what I've done
different this time.

Thanks
Re: downloaded WTP complete non-SDK, have no J2EE perspective [message #200530 is a reply to message #200521] Tue, 25 September 2007 15:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kosta.bea.com

The most common cause of this is running Eclipse in a 1.4 VM. WTP
plugins require a 5.0 VM. You can force Eclipse to use a particular VM
by adding a "-vm <path>" option to the eclipse.ini file.

- Konstantin
Re: downloaded WTP complete non-SDK, have no J2EE perspective [message #200538 is a reply to message #200530] Tue, 25 September 2007 17:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Brian_Preston.firstdatabank.com

Thanks for your reply. I tried this and it's not working. I added the
following to eclipse.ini :

-vm
C:\Sun\SDK\jdk\bin\java.exe

I tried many permutations of this, including javaw.exe instead, and doing
it all on one line with quotes around it, based on different
articles/posts I found.

But I'm confused by sun's versioning. I downloaded J2EE 5 earlier and
installed it into the default location, which is C:\Sun\SDK. During the
install I noticed '1.6' a couple times. I changed my JAVA_HOME to
C:\Sun\SDK\jdk. When I run java -version from the command line, it says
1.6!

What next?


Konstantin Komissarchik wrote:

> The most common cause of this is running Eclipse in a 1.4 VM. WTP
> plugins require a 5.0 VM. You can force Eclipse to use a particular VM
> by adding a "-vm <path>" option to the eclipse.ini file.

> - Konstantin
Re: downloaded WTP complete non-SDK, have no J2EE perspective [message #200544 is a reply to message #200538] Tue, 25 September 2007 18:10 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kosta.bea.com

I believe that the path you need to specify for the -vm parameter is the
root dir of the jdk install, so you would want to write something like:

-vm C:\Sun\SDK\jdk

Regarding the versioning, a 1.6 VM should be fine as well. The J2EE
distributions lag behind the J2SE (base technology), so you can find a
J2EE 5.0 distribution based on a 6.0 J2SE VM.

- Konstantin
Re: downloaded WTP complete non-SDK, have no J2EE perspective [message #200552 is a reply to message #200544] Tue, 25 September 2007 19:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Brian_Preston.firstdatabank.com

I tried this as well, still not working.

Is there something else I need to do to somehow enable the WTP features,
once the VM change has been made? I've gone into help->software
updates->Manage Configuration and JST and WST are both listed there as
enabled. The way I've been checking if this is working is trying to open a
J2ee perspective, and/or create a web project. Neither option is available.

Konstantin Komissarchik wrote:

> I believe that the path you need to specify for the -vm parameter is the
> root dir of the jdk install, so you would want to write something like:

> -vm C:SunSDKjdk

> Regarding the versioning, a 1.6 VM should be fine as well. The J2EE
> distributions lag behind the J2SE (base technology), so you can find a
> J2EE 5.0 distribution based on a 6.0 J2SE VM.

> - Konstantin
Re: downloaded WTP complete non-SDK, have no J2EE perspective [message #200559 is a reply to message #200552] Tue, 25 September 2007 19:31 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1354
Registered: July 2009
Senior Member
Brian,

You were correct about the -vm parameter. I almost always specify this
parameter, and it should be the full path of java.exe or javaw.exe. You
might try temporarily adding "-debug" and "-clean" on separate lines
just above the -vm line in your eclipse.ini. After starting/restarting
Eclipse, check the Error Log view for "bundles which are not resolved".
The info available may allow you to determine if some requirement in a
WTP plug-in dependency chain is not being met.

Cheers,
Larry

Brian P wrote:
> I tried this as well, still not working.
>
> Is there something else I need to do to somehow enable the WTP features,
> once the VM change has been made? I've gone into help->software
> updates->Manage Configuration and JST and WST are both listed there as
> enabled. The way I've been checking if this is working is trying to open
> a J2ee perspective, and/or create a web project. Neither option is
> available.
>
> Konstantin Komissarchik wrote:
>
>> I believe that the path you need to specify for the -vm parameter is
>> the root dir of the jdk install, so you would want to write something
>> like:
>
>> -vm C:SunSDKjdk
>
>> Regarding the versioning, a 1.6 VM should be fine as well. The J2EE
>> distributions lag behind the J2SE (base technology), so you can find a
>> J2EE 5.0 distribution based on a 6.0 J2SE VM.
>
>> - Konstantin
>
>
Previous Topic:Exploded War
Next Topic:JavaXPCOM question - swt MozillaBrowser
Goto Forum:
  


Current Time: Sat Apr 20 02:56:17 GMT 2024

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

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

Back to the top