- This topic has 5 replies, 3 voices, and was last updated 20 years, 10 months ago by Riyad Kalla.
-
AuthorPosts
-
SeJoMemberHi all,
I have installed ME and Eclipse on my mac. Recently there was a jdk update on macosx and this made that i can’t startup the tomcat server anymore. I found that the jdk location under the preference>MyEclipse>Application Servers> Tomcat 5>JDK is empty.
The minute i try to set it, i can’t press the ok button anymore.
So i think there is a glitch somewhere in the tool.
I can reinstall the bugger, but wanted to see if there is anther solution before i try that:sys specs:
Mac OSX 10.3.2
Eclipse 2.1.2. build id: 200311030802
ME 2.7RC1 build id: 200312091200someone a solution?
greetings
Riyad KallaMemberSeJo,
Check under Window>Prefs>Java>Installed JREsthat you have your new JRE configured as a JDK (pointing to the JDK install dir) NOT the JRE install dir. After you make this change, you should be able to select it as the JDK to run the Tomcat server.
SeJoMembertried it all but the ok button didn’t click :p
so went in the prefs file itself and changed it there
Riyad KallaMemberWow nice job, I’m sorry this wasn’t an easier change.
Ken AddisonMember@SeJo wrote:
tried it all but the ok button didn’t click :p
so went in the prefs file itself and changed it thereThanks SeJo,
I too had the same problem just after you did. Actually mine was configuring the JDK for JBoss3 but I too could not click OK on the Preferences panel.
I used your solution of fishing around for the prefs file and manually changed it and all is now well.
FYI – Below is what I did to fix this problem on MacOS X after upgrading to Java 1.4.2. I am just a user of myEclipse so this is NOT the official workaround.
Note-The directory names involved are preceded with “.” which makes them invisible in the Finder and most desktop editors. You will either have to do this in Terminal using vi (or similiar) or a desktop editor that can see invisible directories/files like JEdit.
1) Shutdown Eclipse.
2) Navigate to [YourEclipseDirectory]/workspace/.metadata/.plugins/
3) then open the com.genuitec.eclipse.easie.[whatever] directory where “[whatever]” is the name of the server you need to change the JDK to. (in my case “[whatever]” was jboss3)
4) Open in your text editor the file “pref_store.ini” and change the values of the properties with names of “JDK_HOME” and “JDK_INSTALLATION_NAME” to the appropriate JDK values.
Example:JDK_HOME=/System//Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home
JDK_INSTALLATION_NAME=JVM 1.4.2 (MacOS X Default)
5) Save file and restart Eclipse and all should be well.
Hope this helps,
-ken addison
ThinkStar Corporation
Riyad KallaMemberGuys thank you for the detail, this will help us figure out what is going on.
-
AuthorPosts