Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Advanced Scripting Environment (EASE) » EASE - Javascript Simple Program
EASE - Javascript Simple Program [message #1792441] Wed, 18 July 2018 06:52 Go to next message
Kishore Kumar is currently offline Kishore KumarFriend
Messages: 5
Registered: July 2018
Junior Member
I've installed EASE plugins in my Eclipse IDE and tried to Execute simple Helloworld program using Javascript.

But, i couldn't able to execute successfully, not able to find any other configurations/setup i need to made.

Please help me to resolve this issue

My Code:
print("HelloWorld")

Run->Run As EASE Scripts.. I get the error message in console as below

Error Messages:
java.lang.NoSuchMethodError: org.eclipse.ease.lang.javascript.JavaScriptCodeFactory.getPreExecutionCode(Lorg/eclipse/ease/modules/IEnvironment;Ljava/lang/reflect/Method;)Ljava/lang/String;
at org.eclipse.ease.lang.javascript.JavaScriptCodeFactory.buildMethodBody(JavaScriptCodeFactory.java:268)
at org.eclipse.ease.lang.javascript.JavaScriptCodeFactory.createFunctionWrapper(JavaScriptCodeFactory.java:243)
at org.eclipse.ease.AbstractCodeFactory.createWrapper(AbstractCodeFactory.java:289)
at org.eclipse.ease.lang.javascript.JavaScriptCodeFactory.createWrapper(JavaScriptCodeFactory.java:174)
at org.eclipse.ease.modules.EnvironmentModule.createWrappers(EnvironmentModule.java:332)
at org.eclipse.ease.modules.EnvironmentModule.wrap(EnvironmentModule.java:286)
at org.eclipse.ease.modules.EnvironmentModule.bootstrap(EnvironmentModule.java:64)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:126)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:225)
at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:85)
at org.mozilla.javascript.gen.c_21._c_script_0(Unknown Source)
at org.mozilla.javascript.gen.c_21.call(Unknown Source)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3091)
at org.mozilla.javascript.gen.c_21.call(Unknown Source)
at org.mozilla.javascript.gen.c_21.exec(Unknown Source)
at org.mozilla.javascript.Context.evaluateReader(Context.java:1110)
at org.eclipse.ease.lang.javascript.rhino.RhinoScriptEngine.internalExecute(RhinoScriptEngine.java:201)
at org.eclipse.ease.lang.javascript.rhino.RhinoScriptEngine.execute(RhinoScriptEngine.java:180)
at org.eclipse.ease.AbstractScriptEngine.inject(AbstractScriptEngine.java:227)
at org.eclipse.ease.AbstractScriptEngine.run(AbstractScriptEngine.java:289)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
org.eclipse.ease.ScriptExecutionException: ReferenceError: "print" is not defined.
at hello.js
Re: EASE - Javascript Simple Program [message #1792519 is a reply to message #1792441] Thu, 19 July 2018 00:49 Go to previous messageGo to next message
Christian Pontesegger is currently offline Christian PonteseggerFriend
Messages: 250
Registered: July 2009
Location: Graz, Austria
Senior Member
Which version did you try?
The code the exception is referring to got removed a while ago. Should not happen with the nightlies.
Re: EASE - Javascript Simple Program [message #1792527 is a reply to message #1792519] Thu, 19 July 2018 07:15 Go to previous messageGo to next message
Kishore Kumar is currently offline Kishore KumarFriend
Messages: 5
Registered: July 2018
Junior Member
I'm using Eclipse Oxygen Version.
I've installed nightlies from http://download.eclipse.org/ease/update/nightly/

Do i need to make any other configurations? To run properly.
Re: EASE - Javascript Simple Program [message #1792530 is a reply to message #1792527] Thu, 19 July 2018 07:42 Go to previous messageGo to next message
Kishore Kumar is currently offline Kishore KumarFriend
Messages: 5
Registered: July 2018
Junior Member
To Build scripts using Javascrpt , what are all the necessary plugins required from nightly?
http://download.eclipse.org/ease/update/nightly/



  1. EASE CORE
  2. EASE Developer Resources
  3. EASE Language Support
  4. EASE Module Developer Resources
  5. EASE Modules


Re: EASE - Javascript Simple Program [message #1792805 is a reply to message #1792530] Tue, 24 July 2018 09:38 Go to previous message
Kishore Kumar is currently offline Kishore KumarFriend
Messages: 5
Registered: July 2018
Junior Member
I've re-installed my plugins in eclipse. It's working fine without any errors.
Previous Topic:Confused about bug tracker
Next Topic:Javascript File Read Tutorial/Snippets
Goto Forum:
  


Current Time: Thu Oct 03 11:35:43 GMT 2024

Powered by FUDForum. Page generated in 0.04583 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top