Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Eclipse 3.6 JEE on Ubuntu 11.04(How to install?)
icon9.gif  Eclipse 3.6 JEE on Ubuntu 11.04 [message #740126] Tue, 18 October 2011 07:26 Go to next message
Moulii  is currently offline Moulii Friend
Messages: 3
Registered: October 2011
Junior Member
Hi,

I am new to Ubuntu and Eclipse as well. I have been trying to install Eclipse Helios JEE on Ubuntu 11.04. I tried installing using tarball but it wont work. Even tried extracting in the /usr/ folder but of no use!
Also tried adding bin files to overcome Java bug(read this in a forum), yet no good.

I need to install and start working on my JSP project. It would be really helpful if some could help me out!

Thanks in advance
Re: Eclipse 3.6 JEE on Ubuntu 11.04 [message #740347 is a reply to message #740126] Tue, 18 October 2011 12:10 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 2011.10.18 1:26, Moulii wrote:
> Hi,
>
> I am new to Ubuntu and Eclipse as well. I have been trying to install
> Eclipse Helios JEE on Ubuntu 11.04. I tried installing using tarball but
> it wont work. Even tried extracting in the /usr/ folder but of no use!
> Also tried adding bin files to overcome Java bug(read this in a forum),
> yet no good.
>
> I need to install and start working on my JSP project. It would be
> really helpful if some could help me out!
>
> Thanks in advance

While you can install Eclipse anywhere, it's a personal tool--why not
install it locally, on a path like /home/moulii/eclipse?

At http://www.javahotchocolate.com/tutorials/eclipse-summary.html,
you'll find my experiences installing an Eclipse-centric toolstack.
Re: Eclipse 3.6 JEE on Ubuntu 11.04 [message #740483 is a reply to message #740126] Tue, 18 October 2011 15:03 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
On 10/18/11 3:26 AM, Moulii wrote:
> Hi,
>
> I am new to Ubuntu and Eclipse as well. I have been trying to install
> Eclipse Helios JEE on Ubuntu 11.04. I tried installing using tarball but
> it wont work. Even tried extracting in the /usr/ folder but of no use!
> Also tried adding bin files to overcome Java bug(read this in a forum),
> yet no good.

You haven't described what happens; you need to define "it wont work" in
some detail.

Eric
icon7.gif  Re: Eclipse 3.6 JEE on Ubuntu 11.04 [message #740872 is a reply to message #740347] Wed, 19 October 2011 00:54 Go to previous messageGo to next message
Moulii  is currently offline Moulii Friend
Messages: 3
Registered: October 2011
Junior Member
Thanks a lot for your reply.
It was an informative tutorial. I have installed Eclipse 3.7 and Tomcat 7. I have tested it creating a simple JSP project.

Now I can start with my project! All excited!

Once again Thank you. Smile
Re: Eclipse 3.6 JEE on Ubuntu 11.04 [message #741132 is a reply to message #740347] Wed, 19 October 2011 07:55 Go to previous messageGo to next message
Moulii  is currently offline Moulii Friend
Messages: 3
Registered: October 2011
Junior Member
Problem Once Again Sad

I tried with Hello World project. It worked fine. But when I tried a new Dynamic Web Project I am not getting an output except HTTP Status 404 - /SecondJsp/

I have installed jdk and its in the path /usr/lib/jvm/java-6-sun-1.6.0.26

Installed Tomcat 7 and its in path /usr/local/Tomcat7

Have set the environmental variables JAVA_HOME and CATALINA_HOME already.
Also set windows -> Preference -> Runtime Environment -> Server -> set the path to tomcat (/usr/local/Tomcat7)

When I give Run on server,

I get this message on the console

INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/server:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib

WARNING: [SetContextPropertiesRule]{Context} Setting property 'source' to 'org.eclipse.jst.jee.server:HelloWorldJsp' did not find a matching property.

And in //localhost:808/Second/,

HTTP Status 404 - /SecondJsp/

type Status report

message /SecondJsp/

description The requested resource (/SecondJsp/) is not available.

Apache Tomcat/7.0.12

*** Read many tutorials and they have give my Tomcat hasn't been deployed properly. I tired many ways to do that. But of no use.

Any help is really appreciated!
Re: Eclipse 3.6 JEE on Ubuntu 11.04 [message #741264 is a reply to message #741132] Wed, 19 October 2011 10:55 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 2011.10.19 1:55, Moulii wrote:
> Problem Once Again :(

No problem. I distinctly remember being there myself and I still make
mistakes and even give stupid answers in the forum. I hope I can help
anyway.

> I tried with Hello World project. It worked fine. But when I tried a new
> Dynamic Web Project I am not getting an output except HTTP Status 404 -
> /SecondJsp/
>
> I have installed jdk and its in the path /usr/lib/jvm/java-6-sun-1.6.0.26
>
> Installed Tomcat 7 and its in path /usr/local/Tomcat7

Some find Tomcat 7 a little tricky to use. I don't, but you might try
using Tomcat 6 instead.

> Have set the environmental variables JAVA_HOME and CATALINA_HOME already.
> Also set windows -> Preference -> Runtime Environment -> Server -> set
> the path to tomcat (/usr/local/Tomcat7)

Don't do this. Follow the summary I gave you and consume Tomcat from
within Eclipse. In particular, download your own copy of Tomcat
privately and wire Eclipse up to it. Down the road, when you feel more
comfortable with Tomcat, you can mess with WAR deployment and remote
debugging.

> When I give Run on server,
>
> I get this message on the console
>
> INFO: The APR based Apache Tomcat Native library which allows optimal
> performance in production environments was not found on the
> java.library.path:
> /usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386/server:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.26/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib

Most get this message. You can just ignore it.

> WARNING: [SetContextPropertiesRule]{Context} Setting property 'source'
> to 'org.eclipse.jst.jee.server:HelloWorldJsp' did not find a matching
> property.
>
> And in //localhost:808/Second/,
>
> HTTP Status 404 - /SecondJsp/
>
> type Status report
>
> message /SecondJsp/
>
> description The requested resource (/SecondJsp/) is not available.
>
> Apache Tomcat/7.0.12
>
> *** Read many tutorials and they have give my Tomcat hasn't been
> deployed properly. I tired many ways to do that. But of no use.

Yeah, I get this. It was that way for me at first.

This forum is for general, newcomer questions about Eclipse. For Dynamic
Web Projects, you should ask in the Eclipse web tools forum.

Part of the answer here (most of it for a newcomer) is consuming Tomcat
from within Eclipse and letting Eclipse write your web.xml file. This
file is the "cookie jar" of web applications. If you don't get that
right (and it's pretty easy to screw up), you'll never get past 404s.

I have a very complete tutorial on starting out in Eclipse with Tomcat
and JSPs. It's a little old (written on Europa, but updated for Galileo
and Helios), but I'll bet it still works with Indigo. You're welcome to
ask questions directly or, if you think your question is of general
interest, post to this or the Eclipse web tools forum.

http://www.javahotchocolate.com/wtp-tutorials/wtp-tutorial.html

Russ
Previous Topic:Re: Easy SOAP client code in java?
Next Topic:how to debug using junit?
Goto Forum:
  


Current Time: Tue Mar 19 05:23:46 GMT 2024

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

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

Back to the top