473,385 Members | 1,647 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Tomcat 5.5+ On a Mac, Under Eclipse, Under OS X

People,

I am having problems developing Java applications on a Mac using
Eclipse, MyEclipse, and Tomcat 5.5+.

My current configuration:

Mac OS X (10.4.5)
Eclipse (3.1+)
MyEclipse (4.0+)
Tomcat (5.5+)

I have several issues:

1. How do I get Eclipse to use Java 1.5 by default? I have fiddled with
the preferences, but I must be missing something.

I have downloaded and installed Java 1.5, which does not replace
Java 1.4+

2. When I attempt to use Tomcat 5.5+, I get a message saying that
Tomcat 5.5 requires Java 1.5. How do I get Tomcat and Java 1.5
together.

I have done a fair amount of Java development using the same configuration
under MS Windows XP, Service Pack 2, but I am having a hard time
getting started on the Mac.

Thank you for any time and consideration.

-- Ed

Apr 2 '06 #1
4 13580
Edward V. Berard wrote:
People,

I am having problems developing Java applications on a Mac using
Eclipse, MyEclipse, and Tomcat 5.5+.

My current configuration:

Mac OS X (10.4.5)
Eclipse (3.1+)
MyEclipse (4.0+)
Tomcat (5.5+)

I have several issues:

1. How do I get Eclipse to use Java 1.5 by default? I have fiddled with
the preferences, but I must be missing something.

I have downloaded and installed Java 1.5, which does not replace
Java 1.4+

2. When I attempt to use Tomcat 5.5+, I get a message saying that
Tomcat 5.5 requires Java 1.5. How do I get Tomcat and Java 1.5
together.

I have done a fair amount of Java development using the same configuration
under MS Windows XP, Service Pack 2, but I am having a hard time
getting started on the Mac.

Thank you for any time and consideration.

-- Ed


Hi Ed,
on the Apple Developer Connection page you can download the latest J2SE
5.0 Release (4 DP7). This version sets jdk 5 as default java version.
Please read the release notes to this version as this build should "not
be installed on a system with critical data" due to small amount of
testing done.

Best regards, Stephan

Apr 2 '06 #2
In article <00*****************************@newsgroups.bellso uth.net>,
Edward V. Berard <ed@toa.com> wrote:
People,

I am having problems developing Java applications on a Mac using
Eclipse, MyEclipse, and Tomcat 5.5+.

My current configuration:

Mac OS X (10.4.5)
Eclipse (3.1+)
MyEclipse (4.0+)
Tomcat (5.5+)
I just started using Eclipse 3.1 on Mac OS X 10.4.5.
I have several issues:

1. How do I get Eclipse to use Java 1.5 by default? I have fiddled with
the preferences, but I must be missing something.

I have downloaded and installed Java 1.5, which does not replace
Java 1.4+
Indeed, when I installed j2se50release4dp7, CurrentJDK still pointed to
1.4.2. I'f there's a GUI to change it, i couldn't find it:-) Have a look
in

/System/Library/Frameworks/JavaVM.framework/Versions/

I had to link CurrentJDK to 1.5.0:

sudo rm CurrentJDK
sudo ln -s 1.5.0 CurrentJDK

With this setting, you should be able to use
JAVA_HOME=/Library/Java/Home or similar depending on your shell.

John

2. When I attempt to use Tomcat 5.5+, I get a message saying that
Tomcat 5.5 requires Java 1.5. How do I get Tomcat and Java 1.5
together.

I have done a fair amount of Java development using the same configuration
under MS Windows XP, Service Pack 2, but I am having a hard time
getting started on the Mac.

Thank you for any time and consideration.

-- Ed


--
John
jmatthews at wright dot edu
www dot wright dot edu/~john.matthews/
Apr 3 '06 #3
On Mon, 3 Apr 2006 00:57:42 -0500, John B. Matthews wrote
(in article
<no**************************@network-065-024-007-028.columbus.rr.com>):
Indeed, when I installed j2se50release4dp7, CurrentJDK still pointed to
1.4.2. I'f there's a GUI to change it, i couldn't find it:-) Have a look
in

/System/Library/Frameworks/JavaVM.framework/Versions/

I had to link CurrentJDK to 1.5.0:

sudo rm CurrentJDK
sudo ln -s 1.5.0 CurrentJDK

With this setting, you should be able to use
JAVA_HOME=/Library/Java/Home or similar depending on your shell.

John

John,

Many thanks for the information.

I was able to link CurrentJDK to 1.5.0, but I am still having trouble
with Apache Tomcat 5.5+

Please permit me a few follow-on questions:

-> Where does one obtain j2se50release4dp7 ?

I went to the Apple Developers' web site, and saw a number of pages
dedicated to Java. However, the latest version that I found was
j2se50release3. I suspect that j2se50release4dp7 is only available
to "registered developers." (A Google search also turned up nothing
beyond "release 3".)

-> The specific error message that I get when I attempt to start up
Tomcat 5.5 (from within Eclipse/MyEclipse) is:

"This release of Apache Tomcat was packaged to run on J2SE 5.0
or later. It can be run on earlier JVMs by downloading and
installing a compatibility package from the Apache Tomcat binary
download page."

Your advice is to "use JAVA_HOME=/Library/Java/Home or similar
depending on your shell."

Which particular references to JAVA_HOME should I be modifying
or creating? I did a little browsing, and found quite a few
references

I very much appreciate your time and effort.

-- Ed

Apr 3 '06 #4
In article <00*****************************@newsgroups.bellso uth.net>,
Edward V. Berard <ed@toa.com> wrote:
On Mon, 3 Apr 2006 00:57:42 -0500, John B. Matthews wrote
(in article
<no**************************@network-065-024-007-028.columbus.rr.com>):
Indeed, when I installed j2se50release4dp7, CurrentJDK still pointed to
1.4.2. I'f there's a GUI to change it, i couldn't find it:-) Have a look
in

/System/Library/Frameworks/JavaVM.framework/Versions/

I had to link CurrentJDK to 1.5.0:

sudo rm CurrentJDK
sudo ln -s 1.5.0 CurrentJDK

With this setting, you should be able to use
JAVA_HOME=/Library/Java/Home or similar depending on your shell.

John
John,

Many thanks for the information.

I was able to link CurrentJDK to 1.5.0, but I am still having trouble
with Apache Tomcat 5.5+

Please permit me a few follow-on questions:

-> Where does one obtain j2se50release4dp7 ?

I went to the Apple Developers' web site, and saw a number of pages
dedicated to Java. However, the latest version that I found was
j2se50release3. I suspect that j2se50release4dp7 is only available
to "registered developers." (A Google search also turned up nothing
beyond "release 3".)


I don't recall logging in, but it works with release 1, too.
-> The specific error message that I get when I attempt to start up
Tomcat 5.5 (from within Eclipse/MyEclipse) is:

"This release of Apache Tomcat was packaged to run on J2SE 5.0
or later. It can be run on earlier JVMs by downloading and
installing a compatibility package from the Apache Tomcat binary
download page."

Your advice is to "use JAVA_HOME=/Library/Java/Home or similar
depending on your shell."
Using bash with Tomcat 5.5.16, and looking at RUNNING.txt:

$ export JAVA_HOME=/Library/Java/Home
$ echo $JAVA_HOME
/Library/Java/Home
$ /Users/<user>/Desktop/apache-tomcat-5.5.16/bin/startup.sh
Using CATALINA_BASE: /Users/<user>/Desktop/apache-tomcat-5.5.16
Using CATALINA_HOME: /Users/<user>/Desktop/apache-tomcat-5.5.16
Using CATALINA_TMPDIR: /Users/<user>/Desktop/apache-tomcat-5.5.16/temp
Using JRE_HOME: /Library/Java/Home
$ curl -s localhost:8080 | grep success
<p id="congrats">If you're seeing this page via a web browser, it means
you've setup Tomcat successfully. Congratulations!</p>

Using the full pathname to the startup script may be crucial.

HTH,

John

[...] I very much appreciate your time and effort.

-- Ed

--
John
jmatthews at wright dot edu
www dot wright dot edu/~john.matthews/
Apr 4 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Fadzi Ushewokunze | last post by:
hi guys... i am doing the eclipse-tomcat-jboss-mysql integration but i just cant get to see why jboss wont start properly; hes a snippet of the error i am getting: Starting deployment of...
3
by: Alan Krueger | last post by:
Greetings, I've been able to cache Transformer objects in a Tomcat-based servlet application to avoid unnecessary Transformer rebuilding, except for certain ones on certain machines. I'm...
12
by: brew82 | last post by:
I am trying to get connection pooling working with Tomcat 5.5 and DB2 v8.1. This was working under Websphere Studio Application Developer 5.x but we are trying to move onto Eclipse and Tomcat. ...
0
by: emadattalla1983 | last post by:
Hi, First, I am just starting deal with Java. I configured Apache Tomcat 5.5 to Eclipse 3.2. And after running a simple jsp page... I receive this error: HTTP Status 404 - /Test03/...
0
by: Husey | last post by:
Hi, I am trying to create a very simple EJB project which requires me to create a new jboss configuration in Eclipse. I keep getting the error message "An error has occurred. See error log for...
7
by: ramadeviirrigireddy | last post by:
Hi All, I have installed eclipse and configured tomcat using the plug-ins as suggested by our friends in the forum yesterday. But when i'm trying to start the tomcat it's giving an exception...
0
by: stmfc | last post by:
I am very new to j2ee applications and i need some help to set up my environment. I have some questions: 1-Can i use classical eclipse by adding j2ee.jar to the classpath to create dynamic web...
1
by: abhitripathi | last post by:
Hi, I am a Java developer and know nothing about ColdFusion. I need help from you all CF experts. here is the situation: I created a workspace in Eclipse 3 by getting the code from...
1
by: caty | last post by:
Hallo, I installed tomcat, Java and also Eclipse... when click on startup.bat it starts but when I type in the broswer http://localhost:8080/ I couldnot see the startup page ..some error....how to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.