javaloader - class file has wrong version 52.0, should be 50.0

Skip to first unread message

Chris Guccio

Nov 23, 2015, 3:43:10 PM11/23/15
to javaloader-dev
I am trying to use the simple Hello World example and I am coming across this error.  We are running a CF server with java 1.8.

Is there a way to modify this code to make it compatible with a later version of the compiler.  Changing the server is not an option.

There was an error compiling your source code

/var/www/acm/javaloader/tmp/1B3FC219-CD3A-6E74-E7D3736C95339847/ cannot access java.lang.Object bad class file: /opt/jrun4/jre1.8.0_45/lib/rt.jar(java/lang/Object.class) class file has wrong version 52.0, should be 50.0 Please remove or make sure it appears in the correct subdirectory of the classpath. public class HelloWorld ^
The error occurred in /var/www/acm/javaloader/JavaCompiler.cfc: line 168
Called from /var/www/acm/javaloader/JavaCompiler.cfc: line 82
Called from /var/www/acm/javaloader/JavaLoader.cfc: line 286
Called from /var/www/acm/javaloader/JavaLoader.cfc: line 61
Called from /var/www/cfapps/public/javatest/index.cfm: line 28
166 : 	<cfargument name="message" hint="The message to accompany the exception" type="string" required="Yes">
167 : 	<cfargument name="detail" type="string" hint="The detail message for the exception" required="No" default="">
168 : 		<cfthrow type="#arguments.type#" message="#arguments.message#" detail="#arguments.detail#">
169 : </cffunction>
170 : 
Reply all
Reply to author
0 new messages