-
1. Re: JBDS 7 on OS X requires JDK 6
maxandersen Oct 7, 2013 5:09 AM (in response to peter.falken)Welcome to the wonderful world of how Java became really hard to use when Apple decided to drop their own java distribution and let Oracle take over instead.
When you run 'java' on OSX it will use the apple provided java binary and if you haven't installed the Oracle *JDK* I don't think oracle's distribution takes over.
Thus be sure whatever 'java' you use is actually the java from Oracle if you want to install with Java 7.
You can of course just use Apple's provided Java to run the installer and then in the installer point to the oracle jdk when the installer asks which Java version to use.
p.s. The visual page editor feature in JBDS requires a 32-bit VM and Oracle's Java 7 only provide 64 bit. Thus you will loose that feature by going to Java 7 on OSX. But that is the only thing that should be affected. Mind you, that you can run JBDS with Java 6 but use Java 7 or any other VM when running whatever server you wish to use. Giving you the best of both worlds as it stands today.
-
2. Re: JBDS 7 on OS X requires JDK 6
peter.falken Oct 7, 2013 10:16 PM (in response to maxandersen)Max,
I agree Java has become a bit cumbersome on OS X.
I'm able to install JBDS fine by using JDK 7.
But after install on the first run of JBDS 7 you get a prompt stating that this software needs a JDK 6 (and prompts for a download).
This is something I'm trying to figure out still. Why do I need to install Apple's JDK 6 when I'm already running Oracle's JDK 7?
It makes no sense, I'm baffled.
-
3. Re: JBDS 7 on OS X requires JDK 6
maxandersen Oct 8, 2013 6:27 AM (in response to peter.falken)If that happens after installation it is because you said ok in the installer to use the default Java install and for some reason the oracle install you made did not set it self up as the default java version.
-
4. Re: JBDS 7 on OS X requires JDK 6
peter.falken Oct 13, 2013 7:39 PM (in response to maxandersen)Max,
At first I thought that was the case as well.
I've re-installed both the OS ( To keep things clean ) and JDK 7, to try it out again.
While installing JBDS 7, I used the command: /usr/libexec/java_home -V to find the Java runtimes installed on my system and only JDK7_40 was installed.
I used the path provided by the command as the JRE to use with JBDS 7 ( This path was already selected and detected as the default path for Java by the JBDS 7 installer, I'm sure there is nothing wrong with the installer ).
Before running the JBDS y looked inside the package file and found the INI file - the -vm option was pointing to the JDK 7_40 that the installed had detected.
As before while trying to start JBDS the first time I get the prompt stating that this program need JDK 6 and that it would download the apple version.
I will assume that this is caused by some apple wackiness with Java.
-
5. Re: JBDS 7 on OS X requires JDK 6
peter.falken Oct 13, 2013 7:46 PM (in response to peter.falken)I was able to find out what was wrong.
The INI file declares a launcher.library by default on OS X when installing JBDS 7 it points to:
org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.200.v20130521-0416
When you upgrade to version 7.0.1 you get an updated version called:
org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.200.v20130807-1835
If you update to 7.0.1 and then change the INI file to use the updated launcher.library like this:
-startup
../../../plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.200.v20130807-1835
-product
com.jboss.jbds.product.product
-showsplash
platform\:/base/plugins/com.jboss.jbds.product
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Djboss.discovery.directory.url=https://devstudio.jboss.com/updates/7.0-development/devstudio-directory.xml
-Xms512m
-Xmx1024m
-Dosgi.instance.area.default=@user.home/workspace
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-Xdock:icon=../Resources/JBDevStudio.icns
-XX:MaxPermSize=256m
You can get rid of the JDK 6 dependency. Since it won't ask for a JDK 6 installation to be present.
Would it be possible to update the JBDS 7 installer to version 7.0.1? I got mine here:
-
6. Re: JBDS 7 on OS X requires JDK 6
maxandersen Oct 14, 2013 9:01 AM (in response to peter.falken)1 of 1 people found this helpfullooks like a bug for sure. I've opened [JBDS-2797] .ini upgrade issue for 7.0.1 users - JBoss Issue Tracker to get this investigated.
If you can please watch it and let us know which upgrade path you followed ?
Was it just Installed JBDS 7.0.0.GA (all was good), then updated to 7.0.1.GA and you get the error ?
-
7. Re: JBDS 7 on OS X requires JDK 6
dgolovin Oct 14, 2013 9:02 PM (in response to peter.falken)1 of 1 people found this helpfulthere is another launcher jbdevstudio.app, does it work as expected after update without any additional changes? Problem is that JBoss Developer Studio.app is copy of jbdevstudio.app that was done at installation time and it doesn't get updated.
-
8. Re: JBDS 7 on OS X requires JDK 6
peter.falken Oct 15, 2013 11:43 AM (in response to maxandersen)The upgrade path was:
- Install JBDS 7 from scratch - result you get a prompt asking to install JDK 6.
( Caused by launcher being set to: org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.200.v20130521-0416)
* Installed JDK 6 so that I could run the App and upgrade to JBDS 7.0.1
- Upgraded to JBDS 7.0.1 - result you get a prompt asking to install JDK 6.
Just as Denis stated there is another App called 'jbdevstudio.app' and I looked into the INI file from this App and there where I saw that the launcher had been upgraded to:
org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.200.v20130807-1835
By the way the app 'jbdevstudio.app' works fine with out asking for the JDK 6.
So I removed JDK 6 manually from my OS X install and then changed the INI file to use the new launcher.
With the new launcher I don't get a prompt asking to install JDK 6, it works straight out of the box with JDK 7.
Luis
-
9. Re: JBDS 7 on OS X requires JDK 6
nickboldt Oct 15, 2013 11:54 AM (in response to peter.falken)So to confirm:
- jbdevstudio.app works with Oracle JDK 7 out of the box, upgrade works from 7.0.0 to 7.0.1
- JBoss Developer Studio.app prompts for Apple JDK 6, upgrade does not work for 7.0.0 to 7.0.1
Is that correct?
-
10. Re: JBDS 7 on OS X requires JDK 6
peter.falken Oct 15, 2013 12:01 PM (in response to nickboldt)After a clean install:
- jbdevstudio.app is not present.
- JBoss Developer Studio.app 7.0.0 prompts for Apple JDK 6.
After upgrade from 7.0.0 to 7.0.1:
- jbdevstudio.app is present, works with Oracle JDK 7 out of the box - INI file states that the launcher is: org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.200.v20130807-1835
- JBoss Developer Studio.app still prompts for Apple JDK 6, upgrade does not work for 7.0.0 to 7.0.1 - - INI file states that the launcher is: org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.200.v20130521-0416 ( the original launcher from the install of JBDS 7.0.0 )
-
11. Re: JBDS 7 on OS X requires JDK 6
nickboldt Oct 15, 2013 12:30 PM (in response to peter.falken)So in other words, steps done when running the installer...
- renaming jbdevstudio.app to JBoss Developer Studio.app & creating a symlink from the install root to the studio/*.app file,
- adding JVM entries to the .ini file(s)
- regenerating metadata (I think that's the step that updates the launcher entry in .ini file from 20130521 to 20130807)
- copying Contents/Info.plist to studio/*.app/Contents/Info.plist
... do not occur when updating, and these steps SHOULD be performed when an update is done. So we may need to look at adding more p2.inf magic into the com.jboss.jbds.all feature.
-
12. Re: JBDS 7 on OS X requires JDK 6
nickboldt Oct 15, 2013 12:54 PM (in response to peter.falken)peter.falken can you confirm if updating from 7.0.0 to 7.0.1 causes any of your .ini files to change from this containing this default
-Djboss.discovery.directory.url=https://devstudio.jboss.com/updates/7.0/devstudio-directory.xml
to this new value?
-Djboss.discovery.directory.url=https://devstudio.jboss.com/updates/7.0-development/devstudio-directory.xml
On 64-bit linux I have not seen this behaviour (the URL doesn't change TO the 7.0-development/ site, but it may change FROM the dev site to the 7.0/ release site as per the p2.inf instructions in the com.jboss.jbds.product.feature.
-
13. Re: JBDS 7 on OS X requires JDK 6
peter.falken Oct 19, 2013 8:25 PM (in response to nickboldt)Nick,
I can confirm that upgrading from 7 to 7.0.1 changes -Djboss.discovery.directory.url=https://devstudio.jboss.com/updates/7.0/devstudio-directory.xml
on the jbdevstudio.app but not on the JBoss Developer Studio.app
Luis