Mac Help Forums


Reply
Thread Tools Display Modes

problem with opening java based apps

 
New Member
leov's Avatar
Join Date: Feb 2012
Posts: 3
 
      7th February 2012
I have a java JVM problem:
When I open a java based app from the UI i get an error or the program just does not star because it can't find a JVM.
When I run the same program from the terminal interface it opens normally.
For example eclipse:
No Java virtual machine
was found after searching the following locations:
/opt/eclipse/Eclipse.app/Contents/MacOS/jre/bin/java
java in your current PATH


my java version:
mac:~ leov$ which java
/usr/bin/java

mac:~ leov$ java -version
java version "1.6.0_30"
Java(TM) SE Runtime Environment (build 1.6.0_30-b12-409-11M3614)
Java HotSpot(TM) 64-Bit Server VM (build 20.5-b03-409, mixed mode)


What could be the problem, any hints?
 
Reply With Quote
 
 
 
 
Senior Member
Kaveman's Avatar
Join Date: Nov 2010
Location: Westland, NZ
Posts: 1,360
 
      7th February 2012
Quote:
/opt/eclipse/Eclipse.app/Contents/MacOS/jre/bin/java
looks like the wrong path is embedded in the App.
 
Reply With Quote
 
New Member
leov's Avatar
Join Date: Feb 2012
Posts: 3
 
      9th February 2012
yes embedded in the app is nothing from the JRE. But by then it must look along the PATH to find the JRE. Started from the terminal it does, but by a click from the UI it can't find it. I would say, this could be something related to process owner? Is there a difference between the system's PATH and the user's PATH?
 
Reply With Quote
 
Senior Member
Kaveman's Avatar
Join Date: Nov 2010
Location: Westland, NZ
Posts: 1,360
 
      9th February 2012
I think when you build an Java "App" it has the App Folder structure and required files that it uses to launch the VM, this doesn't use any PATH, but MAYBE an entry in the internal PLIST.

Do a Get Info on the App, look around for the PLIST and edit it with TextEdit.

Sorry it was many years ago that I stopped doing any Java on the Mac, not a big fan of the very poor Java Apps and support. Many, many of the Windows Java libraries were never ported across and very few programs are written in straight Java. So you get the App over, try and build it then find theres all these missing Libraries that just won't build on the Mac. Not write once run anywhere!
 
Reply With Quote
 
New Member
leov's Avatar
Join Date: Feb 2012
Posts: 3
 
      10th February 2012
I found it, thx for your help.
Setting vm in the Plist to the default java vm worked
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
apps problem... dinklorance Mac Applications 7 20th June 2010 03:08 AM
Things to do during a problem or crisis, large or small karazelle Mac OS X 0 12th July 2008 08:28 PM
problem opening pages Leeca New to Macs? 10 5th January 2008 12:25 PM
Apps Won't Open... ericg319 Mac Applications 2 16th June 2007 02:44 PM
problem opening Mac applications peter New to Macs? 5 20th October 2006 05:43 PM


All times are GMT +1. The time now is 09:45 AM.
Mac-Help.com is an independent website and is not affiliated with Apple Inc.


Welcome!
Welcome to the Mac Help Forums
 


Latest Threads
New book about Steve Jobs << take part in it!
Arjan (7 Minutes Ago, 09:37 AM)

Help! Stupid computer is automatically logging me out
Elizaboo (11 Hours Ago, 10:41 PM)

URGENT Help. Crazy talk Mac!
Joeker (12 Hours Ago, 09:42 PM)

PDF Document
yura (21 Hours Ago, 12:13 PM)

Difficulties with internet speed (nothing to do with connection)
sammethh (1 Day Ago, 06:36 AM)

 


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51