smart_client_java build error

17 views
Skip to first unread message

Chandan Datta

unread,
May 15, 2014, 1:14:16 AM5/15/14
to smart-app-...@googlegroups.com
Has anyone tried the code for the Java client from github? http://docs.smartplatforms.org/guide/client-libs/client-java.html

I tried running the ant build and found that there was an error in line 97 of the ant build script  - <copy file="../build/SmartClient.java" todir="../src/org/smartplatforms/client" />

There is no file called SmartClient.java, so the build fails with 'Could not find file  build\SmartClient.java to copy'

Chandan Datta

unread,
May 15, 2014, 3:23:55 AM5/15/14
to smart-app-...@googlegroups.com
I managed to complete the build but there's an error in the client compilation:

java.lang.Error: Unresolved compilation problems: 
	The import org.smartplatforms.client.SMArtClient cannot be resolved
	SmartClient cannot be resolved to a type
	SmartClient cannot be resolved to a type

	org.smartplatforms.client.tests.Reminder.<init>(Reminder.java:37)
	sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	java.lang.reflect.Constructor.newInstance(Constructor.java:513)
	java.lang.Class.newInstance0(Class.java:355)
	java.lang.Class.newInstance(Class.java:308)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
	org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877)
	org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:594)
	org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675)
	java.lang.Thread.run(Thread.java:662)

Nikolai Schwertner

unread,
May 16, 2014, 9:33:53 AM5/16/14
to smart-app-...@googlegroups.com
Probably worth mentioning... The Java client is not up to date with SMART, unfortunately. It will only run against the outdated SMART 0.5, but will fail against SMART 0.6+ (see note at http://docs.smartplatforms.org/guide/client-libs/client-java.html). If you want to try it against SMART 0.5, you should probably grab the SMART 0.5.2 VM and get it running locally (http://docs.smartplatforms.org/framework/reference-implementation/vm.html).

Chandan Datta

unread,
May 16, 2014, 9:51:48 AM5/16/14
to smart-app-...@googlegroups.com
Thanks Nikolai.

I will give it a try to run against a local VM


On Sat, May 17, 2014 at 1:33 AM, Nikolai Schwertner <nikolai.s...@gmail.com> wrote:
Probably worth mentioning... The Java client is not up to date with SMART, unfortunately. It will only run against the outdated SMART 0.5, but will fail against SMART 0.6+ (see note at http://docs.smartplatforms.org/guide/client-libs/client-java.html). If you want to try it against SMART 0.5, you should probably grab the SMART 0.5.2 VM and get it running locally (http://docs.smartplatforms.org/framework/reference-implementation/vm.html).

--
You received this message because you are subscribed to a topic in the Google Groups "SMART App Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/smart-app-developers/HuwLTdxKJbc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to smart-app-develo...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Regards,
Chandan
Reply all
Reply to author
Forward
0 new messages