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 4 13608
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
In article <00************ *************** **@newsgroups.b ellsouth.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 j2se50release4d p7, 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.framewor k/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/
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 j2se50release4d p7, 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.framewor k/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 j2se50release4d p7 ?
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 j2se50release4d p7 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
In article <00************ *************** **@newsgroups.b ellsouth.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 j2se50release4d p7, 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.framewor k/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 j2se50release4d p7 ?
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 j2se50release4d p7 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">I f 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/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 package:
file:/C:/jboss/server/default/deploy/mysql-service.xml
15:14:32,078 WARN Duplicate throwable nesting of same base
type: class org.jboss.deployment.DeploymentException is assignable from:
|
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 running Tomcat 4.1.27 under
Eclipse 2.1.0 using the Sysdeo Tomcat plugin using j2re1.4.1_02 under
Windows 2000 SP4.
I've digested this down to a small (albeit convoluted) sample that
exhibits the behavior reliably on my development workstation.
|
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.
The datasources seem to get created correctly but I get an error when I
try to get the connection from the datasource:
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC
driver of class 'COM.ibm.db2.jdbc.app.DB2Driver' for...
|
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/
--------------------------------------------------------------------------------
type Status report
message /Test03/
description The requested resource (/Test03/) is not available.
|
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 more details". Same for all versions of JBoss.
I couldn't find what causes the error. Any help would be much appreciated.
My installation is:
JDK 1.5.0 update 11
Jboss 4.0.4GA
Eclipse 3.2.2
| |
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 saying that " Address already in use: JVM_Bind:8080". Can anyone tell me how i can solve this. Thanks in advance
|
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 application?
2-Are classical eclipse and eclipse web tool related to each other and working together, or are they totally seperate IDEs ?
3- if i am using Eclipse Web Tools IDE, then do i have to do any arrangement related with j2ee.jar or any...
|
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 repository (CVS).
Now I want to deploy this application on Tomcat server. (Anything other Open Source server would be fine too)
|
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 copy the error from the command prompt???
please help me out in this regard
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| | |