Personal tools
You are here: Home
Log in


Forgot your password?
New user?
 

Modified items

All recently modified items, latest first.
Re: problem in running helloworld by Daniel Crawl, last updated: Feb 15, 2012 05:22 PM
  Hi Mehdi,   Here are some things to check: HelloWorld.java is in hello-world/src/org/helloworld/ hello-world directory is contained in same directory as other Kepler modules, like build-area, actors, gui, etc. build-area/current-suite.txt contains hello-world   If you compile with ant: cd build-area ant compile then HelloWorld.class should be hello-world/target/classes/org/helloworld/
Re: problem in running helloworld by mehdi sarikhani, last updated: Feb 14, 2012 05:44 PM
Hi Daniel The source code is in the correct directory, but  the .class is not in the those folder that you mentioned.the .class is in hello-world/bin/org/helloworld. As i mentioned before, i can't run helloworld by eclipse because of the error that say i can " Exception in thread "main" java.lang.NoClassDefFoundError: org/kepler/Kepler".  even if i run kepler from different run confiquration i can not find "  org.helloworld.HelloWorld ". So i just try to compile with ant, and also i can't find "  org.helloworld.HelloWorld ". this time i try to make all directory that you said and put .class file into, but the same senario(  i can't find "  org.helloworld.HelloWorld " ). i will be happy, if i can run these problem from eclipse. i thought that may be helloword project is not in the same project of kepler or some others problems in installation. So,  I installed kepler from scratch in different folder and do all stuff again from scratch , but i can't find any differences. i know my question may be become so frustrating for you.Please accept my apology. i will appreciate if you tell me what others things comes to your mind regarding these problems.or any suggestion. Cheers,
Re: problem in running helloworld by Daniel Crawl, last updated: Feb 14, 2012 10:53 AM
  Hi Mehdi,   The source for org.helloworld.HelloWorld needs to be in the hello-world module: hello-world/src/org/helloword/HelloWorld.java. If you compile with ant, HelloWorld.class is in hello-world/target/classes/org/helloworld/, and if you compile with eclipse, HelloWorld.class is in hello-world/target/eclipse/classes/org/helloworld.  
Re: problem in running helloworld by mehdi sarikhani, last updated: Feb 13, 2012 04:37 PM
HI Daniel I can't find a way to solve this problem. i am right now in the middle of a project. So i want to write a program to retrieve provenance data from database, and in the next step working with semantic database and query. Thank you again, i am looking forward to hearing from you. Cheers.
Re: problem in running helloworld by mehdi sarikhani, last updated: Feb 09, 2012 04:44 PM
HI Daniel you right. there is no "Helloworld.class" into this class path. So how can i solve this problem? by the way, in the process of compiling helloworld. there are many error which means that they didnot found ptolemy. So i add ptolemy jar file as a external jar files. So that problem is solved.may be it is a problem Cheers
What's New by Development Account, last updated: Feb 09, 2012 12:32 PM
Re: problem in running helloworld by Daniel Crawl, last updated: Feb 09, 2012 11:07 AM
Hi Mehdi,   This error occurs because org.helloworld.HelloWorld is not in the classpath. In Kepler, you can see what the classpath is by using Tools->Check System Settings. The classpath is in java.class.path. Is the directory containing Helloworld.class in java.class.path? What is in java.class.path?   In build-area/, what are the contents of current-suite.txt and modules.txt?
Re: problem in running helloworld by mehdi sarikhani, last updated: Feb 08, 2012 06:43 PM
Hi Daniel Thank you for answering my questions. Unfortunately, No i can't. After using these command or running from eclipse  (just by changing the Project from hello-world to build-area).  i can not import hello-world actor. following errors (stack trace) appear after importing request: com.microstar.xml.XmlException: XML element "entity" triggers exception. in [external stream] at line 1 and column 72 Caused by:  ptolemy.kernel.util.IllegalActionException: Cannot find class: org.helloworld.HelloWorld Because: -- no protocol: org/helloworld/HelloWorld.xml -- XML file not found relative to classpath. -- /Users/medisarikhani/kepler/org/helloworld/HelloWorld.xml /Users/medisarikhani/kepler/org/helloworld/HelloWorld.xml (No such file or directory)  in [external stream] at line 1 and column 72 at ptolemy.moml.MoMLParser.startElement(MoMLParser.java:3642) at com.microstar.xml.XmlParser.parseElement(XmlParser.java:922) at com.microstar.xml.XmlParser.parseContent(XmlParser.java:1105) at com.microstar.xml.XmlParser.parseElement(XmlParser.java:925) at com.microstar.xml.XmlParser.parseDocument(XmlParser.java:481) at com.microstar.xml.XmlParser.doParse(XmlParser.java:159) at com.microstar.xml.XmlParser.parse(XmlParser.java:132) at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1538) at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1510) at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1666) at ptolemy.moml.MoMLChangeRequest._execute(MoMLChangeRequest.java:289) at ptolemy.kernel.util.ChangeRequest.execute(ChangeRequest.java:171) at ptolemy.kernel.util.NamedObj.executeChangeRequests(NamedObj.java:738) at ptolemy.kernel.util.NamedObj.requestChange(NamedObj.java:1778) at ptolemy.actor.CompositeActor.requestChange(CompositeActor.java:1922) at ptolemy.vergil.actor.ActorGraphFrame$InstantiateEntityAction.actionPerformed(ActorGraphFrame.java:735) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.AbstractButton.doClick(AbstractButton.java:389) at com.apple.laf.ScreenMenuItem.actionPerformed(ScreenMenuItem.java:95) at java.awt.MenuItem.processActionEvent(MenuItem.java:627) at java.awt.MenuItem.processEvent(MenuItem.java:586) at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:337) at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:325) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:682) at java.awt.EventQueue.access$000(EventQueue.java:85) at java.awt.EventQueue$1.run(EventQueue.java:638) at java.awt.EventQueue$1.run(EventQueue.java:636) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98) at java.awt.EventQueue$2.run(EventQueue.java:652) at java.awt.EventQueue$2.run(EventQueue.java:650) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87) at java.awt.EventQueue.dispatchEvent(EventQueue.java:649) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) Caused by: ptolemy.kernel.util.IllegalActionException: Cannot find class: org.helloworld.HelloWorld Because: -- no protocol: org/helloworld/HelloWorld.xml -- XML file not found relative to classpath. -- /Users/medisarikhani/kepler/org/helloworld/HelloWorld.xml /Users/medisarikhani/kepler/org/helloworld/HelloWorld.xml (No such file or directory)  in [external stream] at line 1 and column 72 at ptolemy.moml.MoMLParser._createEntity(MoMLParser.java:4077) at ptolemy.moml.MoMLParser.startElement(MoMLParser.java:2694) ... 43 more Caused by: com.microstar.xml.XmlException: -- no protocol: org/helloworld/HelloWorld.xml -- XML file not found relative to classpath. -- /Users/medisarikhani/kepler/org/helloworld/HelloWorld.xml /Users/medisarikhani/kepler/org/helloworld/HelloWorld.xml (No such file or directory)  in [external stream] at line 1 and column 72 at ptolemy.moml.MoMLParser.fileNameToURL(MoMLParser.java:1310) at ptolemy.moml.MoMLParser._findOrParse(MoMLParser.java:4978) at ptolemy.moml.MoMLParser._attemptToFindMoMLClass(MoMLParser.java:3849) at ptolemy.moml.MoMLParser._createEntity(MoMLParser.java:4072) ... 44 more Caused by: ptolemy.kernel.util.IllegalActionException: Cannot find class: org.helloworld.HelloWorld Because: -- no protocol: org/helloworld/HelloWorld.xml -- XML file not found relative to classpath. -- /Users/medisarikhani/kepler/org/helloworld/HelloWorld.xml /Users/medisarikhani/kepler/org/helloworld/HelloWorld.xml (No such file or directory)  in [external stream] at line 1 and column 72 at ptolemy.moml.MoMLParser._createEntity(MoMLParser.java:4077) at ptolemy.moml.MoMLParser.startElement(MoMLParser.java:2694) at com.microstar.xml.XmlParser.parseElement(XmlParser.java:922) at com.microstar.xml.XmlParser.parseContent(XmlParser.java:1105) at com.microstar.xml.XmlParser.parseElement(XmlParser.java:925) at com.microstar.xml.XmlParser.parseDocument(XmlParser.java:481) at com.microstar.xml.XmlParser.doParse(XmlParser.java:159) at com.microstar.xml.XmlParser.parse(XmlParser.java:132) at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1538) at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1510) at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1666) at ptolemy.moml.MoMLChangeRequest._execute(MoMLChangeRequest.java:289) at ptolemy.kernel.util.ChangeRequest.execute(ChangeRequest.java:171) at ptolemy.kernel.util.NamedObj.executeChangeRequests(NamedObj.java:738) at ptolemy.kernel.util.NamedObj.requestChange(NamedObj.java:1778) at ptolemy.actor.CompositeActor.requestChange(CompositeActor.java:1922) at ptolemy.vergil.actor.ActorGraphFrame$InstantiateEntityAction.actionPerformed(ActorGraphFrame.java:735) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.AbstractButton.doClick(AbstractButton.java:389) at com.apple.laf.ScreenMenuItem.actionPerformed(ScreenMenuItem.java:95) at java.awt.MenuItem.processActionEvent(MenuItem.java:627) at java.awt.MenuItem.processEvent(MenuItem.java:586) at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:337) at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:325) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:682) at java.awt.EventQueue.access$000(EventQueue.java:85) at java.awt.EventQueue$1.run(EventQueue.java:638) at java.awt.EventQueue$1.run(EventQueue.java:636) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98) at java.awt.EventQueue$2.run(EventQueue.java:652) at java.awt.EventQueue$2.run(EventQueue.java:650) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87) at java.awt.EventQueue.dispatchEvent(EventQueue.java:649) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) Caused by: com.microstar.xml.XmlException: -- no protocol: org/helloworld/HelloWorld.xml -- XML file not found relative to classpath. -- /Users/medisarikhani/kepler/org/helloworld/HelloWorld.xml /Users/medisarikhani/kepler/org/helloworld/HelloWorld.xml (No such file or directory)  in [external stream] at line 1 and column 72 at ptolemy.moml.MoMLParser.fileNameToURL(MoMLParser.java:1310) at ptolemy.moml.MoMLParser._findOrParse(MoMLParser.java:4978) at ptolemy.moml.MoMLParser._attemptToFindMoMLClass(MoMLParser.java:3849) at ptolemy.moml.MoMLParser._createEntity(MoMLParser.java:4072) ... 44 more Caused by: com.microstar.xml.XmlException: -- no protocol: org/helloworld/HelloWorld.xml -- XML file not found relative to classpath. -- /Users/medisarikhani/kepler/org/helloworld/HelloWorld.xml /Users/medisarikhani/kepler/org/helloworld/HelloWorld.xml (No such file or directory)  in [external stream] at line 1 and column 72 at ptolemy.moml.MoMLParser.fileNameToURL(MoMLParser.java:1310) at ptolemy.moml.MoMLParser._findOrParse(MoMLParser.java:4978) at ptolemy.moml.MoMLParser._attemptToFindMoMLClass(MoMLParser.java:3849) at ptolemy.moml.MoMLParser._createEntity(MoMLParser.java:4072) at ptolemy.moml.MoMLParser.startElement(MoMLParser.java:2694) at com.microstar.xml.XmlParser.parseElement(XmlParser.java:922) at com.microstar.xml.XmlParser.parseContent(XmlParser.java:1105) at com.microstar.xml.XmlParser.parseElement(XmlParser.java:925) at com.microstar.xml.XmlParser.parseDocument(XmlParser.java:481) at com.microstar.xml.XmlParser.doParse(XmlParser.java:159) at com.microstar.xml.XmlParser.parse(XmlParser.java:132) at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1538) at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1510) at ptolemy.moml.MoMLParser.parse(MoMLParser.java:1666) at ptolemy.moml.MoMLChangeRequest._execute(MoMLChangeRequest.java:289) at ptolemy.kernel.util.ChangeRequest.execute(ChangeRequest.java:171) at ptolemy.kernel.util.NamedObj.executeChangeRequests(NamedObj.java:738) at ptolemy.kernel.util.NamedObj.requestChange(NamedObj.java:1778) at ptolemy.actor.CompositeActor.requestChange(CompositeActor.java:1922) at ptolemy.vergil.actor.ActorGraphFrame$InstantiateEntityAction.actionPerformed(ActorGraphFrame.java:735) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242) at javax.swing.AbstractButton.doClick(AbstractButton.java:389) at com.apple.laf.ScreenMenuItem.actionPerformed(ScreenMenuItem.java:95) at java.awt.MenuItem.processActionEvent(MenuItem.java:627) at java.awt.MenuItem.processEvent(MenuItem.java:586) at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:337) at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:325) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:682) at java.awt.EventQueue.access$000(EventQueue.java:85) at java.awt.EventQueue$1.run(EventQueue.java:638) at java.awt.EventQueue$1.run(EventQueue.java:636) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98) at java.awt.EventQueue$2.run(EventQueue.java:652) at java.awt.EventQueue$2.run(EventQueue.java:650) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87) at java.awt.EventQueue.dispatchEvent(EventQueue.java:649) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188) at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) cd ..  
Re: problem in running helloworld by Daniel Crawl, last updated: Feb 07, 2012 04:05 PM
  Hi Mehdi,   Are you able to import the hello-world actor if you run from the command line using ant? ant change-to -Dsuite= hello -world ant run
Screen-shot-2012-02-07-at-3-06-20-PM.png by mehdi sarikhani, last updated: Feb 06, 2012 09:09 PM
problem in running helloworld by mehdi sarikhani, last updated: Feb 06, 2012 09:09 PM
Hi  i made a hello world project, according to manual and attached picture. It have problem to main class. actually it can make HelloWorld.class. So if i want to run this project i can run by changing run configuration (just by changing the Project from hello-world to build-area). in this way also i can not import hello -world actor into Kepler by   Tools->Instantiate Component . what can i do to solve this problem? i will appreciate if you can give any suggestion that you have, in oder to solve this problem. Cheers
adding provenance source code into eclipse by mehdi sarikhani, last updated: Jan 30, 2012 04:07 PM
Re: adding provenance source code into eclipse by mehdi sarikhani, last updated: Jan 30, 2012 04:07 PM
Fantastic, all is done........ i really appreciate.
Re: adding provenance source code into eclipse by Daniel Crawl, last updated: Jan 30, 2012 01:18 PM
Hi Mehdi,   In my instructions for checking out Kepler 2.3, I gave you the wrong URL for build-area. The following gets the correct version:   cd kepler.modules-2.3 mv build-area build-area-trunk svn co http://code.kepler-project.org/code/kepler/releases/release-branches/build-area-2.3/ build-area cd build-area ant change-to -Dsuite=reporting-2.3 ant update ant eclipse   This should fix the errors in ptolemy-kepler-2.3. You'll need to re-import the _kepler.build project to Eclipse.
Re: adding provenance source code into eclipse by Daniel Crawl, last updated: Jan 30, 2012 11:19 AM
Hi Mehdi,   I can duplicate the first problem: 14 errors relating to ExportPDFAction.java. I'll get this fixed for ptolemy-kepler-2.3, but in the meantime, you can delete the file (ptolemy-kepler-2.3/src/ptolemy/vergil/basic/itextpdf/ExportPDFAction.java), then refresh ptolemy-kepler-2.3, and it should compile without errors. I'm not sure what is happening in your second problem. When you run "ant change-to reporting-2.3", modules.txt is updated so that provenance and workflow-run-manager are active when you run Kepler. When the provenance module is active, you should see a button on the toolbar with the letter "P".
Re: adding provenance source code into eclipse by mehdi sarikhani, last updated: Jan 29, 2012 08:55 PM
Hi Daniel Thank you very much.  i really appreciate your nice consideration to my case. i hope one day i can help others like you. i follow your manual and i can run provenance by ant with all component that i need like provenance and workflow run manager, while i have problems when iimport source code into eclipse. to be more specific, i import source code into eclipse and i can run keper gui from eclipse, but there is two problems:    1- the "ptolemy-kepler-2.3" has 14 error, when i want to write my actor source code and use ptolemy class (like ,  import ptolemy.kernel.CompositeEntity; )   into my source code i face with lot's of error.    2-When i run kepler from eclipse, in orde to use "provenance" and "work-run-manager" component i should add them into kepler gui every time from "tools/Module manager/available suites and module/available suites".So for next run i should add it again.More over, when ever i add these component into gui the same source code of kepler is added to kepler source code directory (i mean actor-2.3.0 was added to actor-2.3) Cheers, Mehdi
Re: adding provenance source code into eclipse by Daniel Crawl, last updated: Jan 29, 2012 03:10 PM
Hi Mehdi,   How did you install Kepler 2.3.0 into Eclipse? Here's how I would do it:   1. check out the 2.3 sources: mkdir kepler.modules-2.3 cd kepler.modules-2.3 svn co https://code.kepler-project.org/code/kepler/trunk/modules/build-area cd build-area ant change-to -Dsuite=reporting-2.3   2. generate Eclipse projects: cd build-area ant eclipse   3. open Eclipse, and in a new, empty workspace import all the projects in kepler.modules-2.3   The full instructions for importing Kepler sources into Eclipse can be found here: #
eclipse-error.jpg by mehdi sarikhani, last updated: Jan 27, 2012 09:56 PM
Re: adding provenance source code into eclipse by mehdi sarikhani, last updated: Jan 27, 2012 09:56 PM
Hi Daniel To come up with versioning problem, i installed version 2.3.0. but i can't run it in eclipse. It doesn't recognize main class.( i entered "org.kepler.Kepler" as main class base on manual) . More over there are 101 error. i attached error page picture. Cheers,
connect to database to save provenance data by mehdi sarikhani, last updated: Jan 27, 2012 09:43 PM