Short answer: not yet :-)


Java 9 is still in early access and expected to be released in July 2017. RepreZen does not work with Java 9 yet, because it's built on Eclipse Neon.2, which does not work with Java 9 (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=493761).  Attempting to launch RepreZen with Java 9 will result in an error dialog like this one:


It's still possible to work with RepreZen and keep Java 9 as your default, as long as you also have a compatible Java version (i.e. Java 7 or  Java 8) installed on your computer. To make this work, simply edit your RepreZen.ini file to specify the location of your compatible Java installation, using the steps outlined below. 


These steps need be done only once.




Configuring RepreZen with a Specific JRE on Windows


1 Find of the location of the needed Java installation.
Usually, your Java installations can be found in the \Program Files\Java folder on your System (C:) drive.You may be able to complete this step simply by noting down the names of the folders you find at this location.

You may also wish to consult the Java control panel item.  In its Java tab, the View... button will show you a list of Java some or all of your Java installations. You can resize the window and its columns to make it easier to see the installation paths:If you're not sure you're seeing all your installations, you can click on the Find button to search for other installations. You'll be asked to choose a folder, and the tool will find all Java installations located anywhere within that folder; you might want to try this with C:\Program Files\Java, for starters. If you perform a broader search, you're likely to find that some of the other programs you have installed on your computer have their own embedded installations. You may want to avoid using those - except, of course, when you're using the associated programs.

We recommend using Java 8. If you see both a compatible JDK installation and a compatible JRE installation (identified by the presence of either "jdk" or "jre" in the location path), the JDK may be preferable. This is because the Custom GenTemplate feature of RepreZen requires a JDK installation. This is an advanced feature for developers, and many users of RepreZen will never need to use it.

We'll use the full path to the bin folder for the installation, in the steps below. In my case, a compatible Java 8 installation is shown in C:\Program Files\Java\jdk1.8.0_101\bin. You should note the location of your selected location - or better yet, copy it to the clipboard, either from File Explorer or from the Java control panel item - for use in step 3 below.

2 Locate the RepreZen.ini file
RepreZen.ini file located next to the RepreZen.exe file. By default, that means you will find it at RepreZen\API_Studio\RepreZen.ini in your home folder.

3 Set the Java installation location in RepreZen.ini file
Open the RepreZen.ini file located in previous step, using a text editor of your choice, e.g. WordPad. Add these lines to the very beginning of the file:

-vm
<location of the bin folder of your JDK/JRE>\bin


Here, "<location of the bin folder of your JDK/JRE>\bin" is based on the results of step 1.  Make sure to use the \bin folder of your Java installation. After this change, the contents of RepreZen.ini should look similar to this: 

-vm
C:\Program Files\Java\jdk1.8.0_101\bin
-startup
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602-1417
-pluginCustomization
plugin_customization.ini
-vmargs
-Djavax.xml.accessExternalDTD=all
-Djava.net.preferIPv4Stack=true
-Xms256m
-Xmx512m
-XX:PermSize=192M
-XX:MaxPermSize=256M
-Djavax.xml.accessExternalDTD=all

This will force RepreZen to always use Java 8. Now you can launch RepreZen as usual by double-clicking on RepreZen.exe or with Cortana.





Configuring RepreZen with a Specific JRE on Mac

1 Find of the location of the needed Java installation.
Open the Terminal and type

/usr/libexec/java_home -V


This will print out the locations of all available Java installations, e,g, like this: 


We recommend using Java 8. If you see both a compatible JDK installation and a compatible JRE installation (identified by the presence of either "jdk" or "jre" in the location path), the JDK may be preferable. This is because the Custom GenTemplate feature of RepreZen requires a JDK installation. This is an advanced feature for developers, and many users of RepreZen will never need to use it.


Based on the example above, a compatible Java 8 installation is shown in /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home. Note this location in your own output, as it will be used in step 3.


2 Locate the RepreZen.ini file
To do this, open the contents of the RepreZen.app by right-clicking on it and selecting "Show Package Contents":
The RepreZen.ini file is in the Contents > Eclipse folder:

3 Set the Java installation location in RepreZen.ini file
Open the RepreZen.ini file located in previous step, using a text editor of your choice. Add these lines to the very beginning of the file:

-vm
<location of the bin folder of your JDK/JRE>/bin


Here, "<location of the bin folder of your JDK/JRE>/bin" is based on the results of step 1.  Make sure to use the /bin folder of your Java installation. After this change, the contents of RepreZen.ini should look similar to this: 

-vm
/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin
{code}
The entire RepreZen.ini file should look like this now:
{code}
-vm
/Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home/bin
-startup
../Eclipse/plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.library
../Eclipse/plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.300.v20150602-1417
-pluginCustomization
plugin_customization.ini
-vmargs
-Djavax.xml.accessExternalDTD=all
-Djava.net.preferIPv4Stack=true
-Xms256m
-Xmx512m
-XX:PermSize=192M
-XX:MaxPermSize=256M
-Djavax.xml.accessExternalDTD=all
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts

This will force RepreZen to always use Java 8. Now you can launch RepreZen as usual by double-clicking on RepreZen.app or using the Launchpad.