How to change the JDK in Play framework?

1,670 views
Skip to first unread message

mak pandian

unread,
Jan 22, 2013, 2:55:58 AM1/22/13
to play-fr...@googlegroups.com
Hi,

I have installed JDK 6 and JDK 7 in Windows 7. Right now It is pointing to JDK7. When I run my application I am getting an error "Oops: VerifyErrorAn unexpected error occured caused by exception VerifyError:Inconsistent stackmap frames at branch target".

I googled and found that It was because of JDK 7. Hence I plan to switch JDK 6. 

Can anyone of you help me how to switch JDK 6 to my play server?


Thanks
mak


Ben McCann

unread,
Jan 22, 2013, 2:56:10 PM1/22/13
to play-fr...@googlegroups.com
Hmm, Java 7 works fine for me on Ubuntu. Play just uses the Java that's on your path by default, so to switch to Java 6 the easiest way is probably to switch your path. You can verify the version by just running "java -version" on the command line.

Arek Stryjski

unread,
Jan 22, 2013, 5:36:29 PM1/22/13
to play-fr...@googlegroups.com

On Tuesday, January 22, 2013 7:56:10 PM UTC, Ben McCann wrote:
Play just uses the Java that's on your path by default, so to switch to Java 6 the easiest way is probably to switch your path. 

This will switch JDK on the system, but I'm not sure if it will help.

I created my play project (scala play 2.1) on Java 8 and now I'm stack with it  - which is not a problem for me .
When I switch to J6 or J7 on the system (Ubuntu) I get "Unsupported major.minor version 52.0" 

Running clean or removing target folder does not help. 

Best,
Arek

luiza...@gmail.com

unread,
Jan 23, 2013, 9:31:49 AM1/23/13
to play-fr...@googlegroups.com
When you compile the project using java 6 and run with java 7 or 8 it works but not vice versa. Try to run clean-all and update commands.

Luiz Fernando Alvino


2013/1/22 Arek Stryjski <arek.s...@gmail.com>

--
 
 

Reply all
Reply to author
Forward
0 new messages