Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GanttProject OSX does not start with Oracle Java (1.7+) #916

Closed
GoogleCodeExporter opened this issue Jun 28, 2015 · 13 comments
Closed

GanttProject OSX does not start with Oracle Java (1.7+) #916

GoogleCodeExporter opened this issue Jun 28, 2015 · 13 comments

Comments

@GoogleCodeExporter
Copy link

@GoogleCodeExporter GoogleCodeExporter commented Jun 28, 2015

I have a fresh OSX mavericks installation (updated to 10.9.2), with only the 
oracle java packages installed  (both the JDK and JRE for OSX are installed)

With this installation.  Ganttproject.app will not start. 

To reproduce: 

Doubleclick to open  "GanttProject 2.6.5.app"


Error:  

The app will not start.  A Dialog box appears onscreen explaining that Apple's 
Java 1.6 is required.   I *can* still download java 1.6 but shouldn't have to. 

Expected Behaviour: 

GanttProject should recognise that the oracle JRE is installed, and run that.  
I should not have to install the old java 1.6 version from apple. 

Original issue reported on code.google.com by wil...@gmail.com on 31 Mar 2014 at 5:14

@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

@GoogleCodeExporter GoogleCodeExporter commented Jun 28, 2015

Can you run "java -version" from the terminal and post the output here?

Original comment by dbarashev on 31 Mar 2014 at 8:39

@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

@GoogleCodeExporter GoogleCodeExporter commented Jun 28, 2015

[deleted comment]
@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

@GoogleCodeExporter GoogleCodeExporter commented Jun 28, 2015

Sure. 

The command java -version runs the JDK by default. 

This shows the JDK, I have a few installed.  7u51 is active. 

bash-3.2# pwd
/Library/Java/JavaVirtualMachines
bash-3.2# ls -Al
total 0
drwxr-xr-x  3 root  wheel  102 17 Sep  2013 jdk1.7.0_40.jdk
drwxr-xr-x  3 root  wheel  102 20 Oct 20:40 jdk1.7.0_45.jdk
drwxr-xr-x  3 root  wheel  102 15 Jan 10:20 jdk1.7.0_51.jdk

bash-3.2# java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)



This shows the JRE location and version. 

dori:~ $ /Library/Internet\ 
Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)


I suspect..  However the ganttproject is bundled to make ".app" executable.  
This process is what is requiring the old apple java 1.6. 


Original comment by wil...@gmail.com on 31 Mar 2014 at 9:57

@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

@GoogleCodeExporter GoogleCodeExporter commented Jun 28, 2015

Same for Windows 7 with Java 1.7

"This Application requires a Java Runtime Environment 1.6.0"

Original comment by thomas.d...@gmail.com on 7 Apr 2014 at 7:58

@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

@GoogleCodeExporter GoogleCodeExporter commented Jun 28, 2015

 I reclassified this as a defect. It appears that Java launcher which sits inside our .app is pretty rusty.

As a workaround, those who have 'java' in the command line may use ZIP 
distribution. Or really install Java 6 (not sure if they can live together on 
the same system)

Original comment by dbaras...@ganttproject.biz on 7 Apr 2014 at 8:11

  • Changed state: Accepted
  • Added labels: Installation, OpSys-OSX, Type-Defect
  • Removed labels: Type-Discussion
@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

@GoogleCodeExporter GoogleCodeExporter commented Jun 28, 2015

Hey Mac OSX guys, may I ask you to test this build with Java 7? ZIP file is 
available here, it contains GanttProject.app only. 
https://dl.dropboxusercontent.com/u/5454466/GanttProject.zip


Original comment by dbarashev on 15 Apr 2014 at 11:44

@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

@GoogleCodeExporter GoogleCodeExporter commented Jun 28, 2015

Hey.   The build mentioned in #6 does not work for me.  

wildph$ open GanttProject.app
LSOpenURLsWithRole() failed with error -10810 for the file 
/Users/wildph/Desktop/GanttProject.app.

My Setup:  OSX Mavericks 10.9.2,    Oracle JRE + JDK 7u51 installed. 

[JRE] 
wildph$ /usr/libexec/java_home 
/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home

wildph$ 
/Library/Java/JavaVirtualMachines/jdk1.7.0_51.jdk/Contents/Home/bin/java 
-version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)

[JDK]
wildph$ which java
/usr/bin/java

wildph$ java -version
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)


Original comment by wil...@gmail.com on 16 Apr 2014 at 11:39

@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

@GoogleCodeExporter GoogleCodeExporter commented Jun 28, 2015

solved it.  the .app is launching now.  

Desktop wildph$ chmod a+x GanttProject.app/Contents/MacOS/JavaAppLauncher 
Desktop wildph$ open GanttProject.app

And Gantt Project reports it is running under java 1.7.51. 

Original comment by wil...@gmail.com on 16 Apr 2014 at 11:54

@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

@GoogleCodeExporter GoogleCodeExporter commented Jun 28, 2015

Yes, it seems that I forgot to set executable bit on launcher. Cool, thanks!

Original comment by dbaras...@ganttproject.biz on 17 Apr 2014 at 12:06

@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

@GoogleCodeExporter GoogleCodeExporter commented Jun 28, 2015

Dmitry, I can give a fuller report now i've had a little time to play: 

with the executable bit applied, the new .app works - doubleclicking starts the 
GP application, using the installed JRE (java from 
/Library/Java/JavaVirtualMachines)

The application behaves normally.  I can open/close/save files, manage content. 
And printing works as expected. 

However...   

I can not open a file "with" ganttproject.app.   eg.   If i doublecick 
'file.gan' and choose to open with Ganttproject.app, this does not work.    GP 
starts up but does not open the file. 

workaround:  I need to choose to open the file using the Project > Open menu 
item. 

Regards, 

Graeme

Original comment by wil...@gmail.com on 17 Apr 2014 at 8:21

@GoogleCodeExporter

This comment has been minimized.

Copy link
Author

@GoogleCodeExporter GoogleCodeExporter commented Jun 28, 2015

Thanks for reporting!

Original comment by dbaras...@ganttproject.biz on 17 Apr 2014 at 9:28

@yeegr

This comment has been minimized.

Copy link

@yeegr yeegr commented Jun 24, 2019

Running MacOS Mojave 10.14.5
Installed Java via homebrew

brew cask install java
bogon:Users stonechen$ cd /Applications

bogon:Applications stonechen$ java --version
openjdk 12.0.1 2019-04-16
OpenJDK Runtime Environment (build 12.0.1+12)
OpenJDK 64-Bit Server VM (build 12.0.1+12, mixed mode, sharing)

bogon:Applications stonechen$ chmod a+x GanttProject.app/Contents/MacOS/JavaAppLauncher
bogon:Applications stonechen$ open GanttProject.app

The same error every time, a popup that says

Unable to load Java Runtime Environment.

Please help, thanks.

However, just confirmed that ganttproject-2.8.10-r2363-mojave-fallback.dmg works

@dbarashev dbarashev closed this Jun 24, 2019
@dbarashev

This comment has been minimized.

Copy link
Contributor

@dbarashev dbarashev commented Jun 24, 2019

Please refer to macOS knowledge base article if you for whatever reason land on this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.