image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old August 7th, 2005, 09:24 AM
Registered User
 
Join Date: Jul 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
zepto is on a distinguished road
Eclipse 3.1 changes jvm.cfg permissions?

Anyone know how eclipse changes the jvm.cfg properties, or more specifically I can 'disable' this feature.

When launching Eclipse as a normal user the first time all is fine. However, if you shut down Eclipse and then re-launch it it fails with a message no JVM found.

Seems that somewhere in the Launch process Eclipse is changing the jvm.cfg permissions to exclude normal users from having read access to jvm.cfg. Which is effectively disabling Java (and Eclipse)?

Thanks
Zepto

PS. Have posted a previous message, but it is pretty old now and not detailed enough.
Reply With Quote
  #2  
Old August 7th, 2005, 01:54 PM
Viro's Avatar
Registered User
 
Join Date: Nov 2003
Location: Oxford, UK
Posts: 2,492
Thanks: 0
Thanked 1 Time in 1 Post
Viro will become famous soon enoughViro will become famous soon enough
I have never had this problem before. What is the jvm.cfg file?
Reply With Quote
  #3  
Old August 8th, 2005, 04:18 AM
Registered User
 
Join Date: Jul 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
zepto is on a distinguished road
Thanks for the response Viro,

I don't actually know exactly what the jvm.cfg file does. It does appear though that if a normal user doesn't have read access to this file then Java complains about no JVM found?

This is irrespective of eclipse afaik. Basically if I run java -version as a 'super' user it returns the appropriate version. If I run the same command as my 'normal' user it fails reporting no JVM?

Any suggestions?

Regards
Zepto
Reply With Quote
  #4  
Old August 15th, 2005, 05:02 PM
Registered User
 
Join Date: Aug 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
ljfong is on a distinguished road
I have had the same problem and I figured out that the correct permission for the jvm.cfg file should be rw-r--r--, however, if java is ever run by a non-root user, the permission of this file is switched back by something into rw-------. Therefore the file is not readable and regular user gets error message "no virtual machine is found". I tried using chflags schg into the file, the permission stayed, but instead of trying to change the permission back to the wrong one, the same culprit just created multiple copies of jvm.cfg in the directory with names like jvm.cfg,298, jvm.cfg,301,...and so on. Very annoying indeed. Now, what is the culprit? I have no clue.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 07:56 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.