naushad-rahman / space-time-toolkit

Automatically exported from code.google.com/p/space-time-toolkit
0 stars 0 forks source link

How to run STT from Eclipse build environment #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Get latest code from SVN. 
2. Compile under Eclipse, everything is fine. 
3. When run, don't know how to set the Run configuration dialog parameters.

What is the expected output? What do you see instead?
Run STT from Eclipse build environment.   Error dialog, since the parameter
in Run configuration dialog is not setup correctly. 

What version of the product are you using? On what operating system?
latest from SVN. Win XP.

Please provide any additional information below.
Please, see attached file. 

Appreciate your time.  

Original issue reported on code.google.com by ruidach...@gmail.com on 17 Feb 2009 at 3:54

Attachments:

GoogleCodeExporter commented 9 years ago
There are a couple of ways you can configure Eclipse to build STT.  For either, 
you
will need to make sure you have all the required dependencies in your build 
path. 
See the project home page for more info about these (look under 'Dependencies'):
http://code.google.com/p/space-time-toolkit/

As for runtime params, the only thing I add to mine is this:

-Xms128M -Xmx256M

The Run Configuration page you posted looks fine.  I think the problems you are
having are with the Build configuration.  Download the 4 related projects and 
install
them in your Eclipse workspace.  You will have to follow the instructions for 
those
projects to compile them correctly.  

Then make sure you have the required 3rd party libs listed on the STT3 projects 
home
page (JOGL, JAI, JFreeChart, BerkleyDB). 

Once you get the related projects and 3rd party libs installed, go to the 
Eclipse
Build Properties page.  Your 'libraries' tab under that page should look 
something
like the attached image from my project.

If you get stuck, post again and we will try to assist further.

Original comment by TheRest...@gmail.com on 18 Feb 2009 at 2:55

Attachments:

GoogleCodeExporter commented 9 years ago
Just adding an expanded view of the Build Libraries page.  My initial image did 
not
have the tree expanded to show all the libs...

Original comment by TheRest...@gmail.com on 18 Feb 2009 at 4:51

Attachments:

GoogleCodeExporter commented 9 years ago
Please, see my Run Dialog picture,

1. "Workspace Data", under my c:\temp\workspace-SST3 directory, nothing there.  
What
files supposed to be under this dir.
2."Program to Run", the org.vast.sst.main.SST3 desn't exist.

Since, I am new to this STT3 project.  There are a lots of things confuse me 
now.  
Even when I run the SST binary executable, I run into bunch of bugs.  Do we 
supposed
to put certain data file under the Tomcat web runnable dir?   What are those 
files? I
think I should start a new issue with title "STT3 kickoff setup related 
questions".
Since, there is no any related documentation, I feel I waste time to figure out 
the
SST3 running scenario.   If you can provide setup related documentation, that 
will be
great. 

Thanks.

Original comment by ruidach...@gmail.com on 19 Feb 2009 at 4:03

GoogleCodeExporter commented 9 years ago
Each of the 4 dependencies has its own .jar file.  How those jar files relate 
to SST3
Binary executable?   

Thanks.

Original comment by ruidach...@gmail.com on 19 Feb 2009 at 4:19

GoogleCodeExporter commented 9 years ago
For (3), The temp directory is just something Eclipse uses to store temporary 
files
it creates while running an application.  

You are correct that we are currently sorely lacking documentation that 
describes how
to install and run STT3.  That is something the team is working on.  Building 
STT3
from source is currently rather involved.  You need to be familiar with the 
Eclipse
Rich Client App framework, among other things.  

For (4), each of the jars of the dependent projects need to be included in the 
STT3
classpath.  

Please check back in the coming weeks, as we hope to include better 
documentation and
tutorials for building and running STT3.

Thanks

Original comment by TheRest...@gmail.com on 25 Feb 2009 at 9:43

GoogleCodeExporter commented 9 years ago
Hi,
I also just tried to start STT.
(Nearly) everything compiles fine (instead of PhenominaDetectionProvider), but 
once I
try to start STT I get an error log.

The error log starts with: 
!SESSION 2009-05-15 00:49:47.339 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_13
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Framework arguments:  -product org.vast.stt.main.STT3
Command-line arguments:  -product org.vast.stt.main.STT3 -data
D:\Programmierung\eclipse3.4\workspace\SN-space-time-toolkit\core -dev
file:D:/Programmierung/eclipse3.4/workspace/.metadata/.plugins/org.eclipse.pde.c
ore/STT3/dev.properties
-os win32 -ws win32 -arch x86

!ENTRY org.eclipse.equinox.app 0 0 2009-05-15 00:49:49.452
!MESSAGE Product org.vast.stt.main.STT3 could not be found.

!ENTRY org.eclipse.osgi 4 0 2009-05-15 00:49:49.502
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: No application id has been found.
    at
org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppC
ontainer.java:236)
    at
org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLaun
cher.java:29)
    at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Ecli
pseAppLauncher.java:110)
    at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLau
ncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    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.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1212)

Do you already wrote some documentation for setting up and starting the project 
?

Thanks,
Dirk

Original comment by b...@informatik.uni-hamburg.de on 14 May 2009 at 10:51

GoogleCodeExporter commented 9 years ago
Hi Dirk,

Unfortunately, our documentation on building STT3 from source is lagging 
behind.  One
of our developers just sent me this, which may help your issue:

Gregoire wrote:
>From the log, it's probably a basic missing plug-ins error in eclipse:
>Run Configurations... -> STT3 -> plug-ins -> Add Required Plug-ins

It may be helpful to know a little more about how you are attempting to build 
also,
since there are multiple ways to configure and build STT3 within Eclipse.  One 
question:

Are you compiling the dependent projects from Source, or are you using jar 
files to
build those?  The libs I am referring to are those listed here under 
'Dependencies':
http://code.google.com/p/space-time-toolkit/

As for the PhenomenenDetectionProvider, is that a compile issue?  I do not ses 
any
errors in my version.  IT should be safe to just cut anything in the sttx 
package
space that causes problems, but I am interested to get to the root of that one.

Thanks,
Tony Cook
VAST Team

Original comment by TheRest...@gmail.com on 15 May 2009 at 7:06