Closed sheltonn closed 10 years ago
Well, 51 is J2SE 7. So, for some reason you’re running maybe on J2SE 6 or older.
Also, sourceCompatibility is for the syntax during compilation. The actual target is controlled by targetCompatibility. I guess if you set targetCompatibility = ‘1.6’ it will run in your environment.
Dotcms Eurocenter Diursa Primera Etapa, Piso 2, Oficina DotCMS Barreal de Heredia, frente a CENADA, Costa Rica P: +1-305-900-2001 (US) F: +1-305-397-1719 www.dotcms.com
On Mar 3, 2014, at 10:50 AM, Norris Shelton notifications@github.com wrote:
We are running java 7 on our machines. I modified the build.gradle to have sourceCompatibility = '1.7'. When I drop it in the ../felix/load directory, I get
Unsupported major.minor version 51.0
— Reply to this email directly or view it on GitHub.
I checked my versions of java and found 1.7
javac -version javac 1.7.0_45
java -version java version "1.7.0_45" Java(TM) SE Runtime Environment (build 1.7.0_45-b18) Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
I added both of these to my build.gradle sourceCompatibility = '1.7' targetCompatibility = '1.7'
It appeared to build correctly: ./gradlew clean jar :clean :compileJava :processResources :classes :jar
BUILD SUCCESSFUL
Total time: 10.887 secs
I got the following when I copied it to the felix/load folder: com/dotmarketing/osgi/custom/spring/Activator : Unsupported major.minor version 51.0
That means that you run on 1.6 or older. When you run dotCMS using our scripts it tells you which java its using. Check that out.
Dotcms Eurocenter Diursa Primera Etapa, Piso 2, Oficina DotCMS Barreal de Heredia, frente a CENADA, Costa Rica P: +1-305-900-2001 (US) F: +1-305-397-1719 www.dotcms.com
On Mar 3, 2014, at 11:15 AM, Norris Shelton notifications@github.com wrote:
I checked my versions of java and found 1.7
javac -version javac 1.7.0_45
java -version java version "1.7.0_45" Java(TM) SE Runtime Environment (build 1.7.0_45-b18) Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)
I added both of these to my build.gradle sourceCompatibility = '1.7' targetCompatibility = '1.7'
It appeared to build correctly: ./gradlew clean jar :clean :compileJava :processResources :classes :jar
BUILD SUCCESSFUL
Total time: 10.887 secs
I got the following when I copied it to the felix/load folder: com/dotmarketing/osgi/custom/spring/Activator : Unsupported major.minor version 51.0
— Reply to this email directly or view it on GitHub.
Can you tell me what text to look for. I didn't see it in catalina.out or dotcms.log
That is when you just run the startup.sh script. not in logs. But there is a tab in CMS Maintenance that I believe can give you clues. See http://screencast.com/t/fRiqt7uV7r In the properties bellow you have java.runtime.version
Dotcms Eurocenter Diursa Primera Etapa, Piso 2, Oficina DotCMS Barreal de Heredia, frente a CENADA, Costa Rica P: +1-305-900-2001 (US) F: +1-305-397-1719 www.dotcms.com
On Mar 3, 2014, at 11:26 AM, Norris Shelton notifications@github.com wrote:
Can you tell me what text to look for. I didn't see it in catalina.out or dotcms.log
— Reply to this email directly or view it on GitHub.
I set my JAVA_HOME, but then it tried to append /bin/java to the end of it to find the java command like it does in Windows. How do I specify a JDK on a Mac?
Found it. I had to use a script to set the jdk on Mavericks.
http://www.jayway.com/2014/01/15/how-to-switch-jdk-version-on-mac-os-x-maverick/
We are running java 7 on our machines. I modified the build.gradle to have sourceCompatibility = '1.7'. When I drop it in the ../felix/load directory, I get
Unsupported major.minor version 51.0