"Could not find the main class"

37 views
Skip to first unread message

Dawson

unread,
Aug 24, 2012, 4:57:47 PM8/24/12
to Tetrad Users Group
Hi everyone,

I am trying to run IMaGES from the command line but keep getting this
error:

Exception in thread "main" java.lang.NoClassDefFoundError: edu/cmu/
tetradproj/fmri/ImagesTool
Caused by: java.lang.ClassNotFoundException:
edu.cmu.tetradproj.fmri.ImagesTool
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: edu.cmu.tetradproj.fmri.ImagesTool.
Program will exit.


I am running GES though with the same jar file and it works just
fine. Maybe this is a non-Tetrad problem, more of a linux issue, but
I have tried all of the general fixes I could based on a search of
this problem and I have had no luck yet.

the command I execute when I get this error is the following:


java -cp tetradcmd-4.3.9-20.jar edu.cmu.tetradproj.fmri.ImagesTool $@--
create -o ../dataFromIMaGES1/ --ar 0 --discount ${sig} -p graph${sig} -
d ./meanTSeriesRUN_*.txt


I have tried it with a more recent tetradcmd jar file too with the
same error.


Any suggestions are welcome.

Joseph Ramsey

unread,
Aug 24, 2012, 6:23:18 PM8/24/12
to tetrad-us...@googlegroups.com
Hi,

I think you need to select a much more recent jar than that, say, 4.3.10-6.

Joe
--
Joseph D. Ramsey
Special Faculty and Director of Research Computing
Department of Philosophy
135 Baker Hall
Carnegie Mellon University
Pittsburgh, PA 15213

jsph....@gmail.com
Office: (412) 268-8063
http://www.andrew.cmu.edu/user/jdramsey

Dawson

unread,
Aug 27, 2012, 11:28:16 AM8/27/12
to Tetrad Users Group
I tried that already and I get the same error.....
> jsph.ram...@gmail.com
> Office:(412) 268-8063begin_of_the_skype_highlighting FREE (412) 268-8063 http://www.andrew.cmu.edu/user/jdramsey- Hide quoted text -
>
> - Show quoted text -

Joseph Ramsey

unread,
Aug 27, 2012, 11:45:21 AM8/27/12
to tetrad-us...@googlegroups.com
I'm looking in the repository at the current version of tetrad
(4.3.10-7 online) and tetradproj is not being excluded, so it should
be there to reference. Could you download that jar and point your
script to it and tell me what happens? Same thing?

Joe

Joseph Ramsey

unread,
Aug 27, 2012, 1:53:31 PM8/27/12
to tetrad-us...@googlegroups.com
Actually, I just did something I promised to do recently and marked
experimental versions as experimental. So the jar I'm pointing to is
4.3.10-7-experimental.jar.,

http://www.phil.cmu.edu/projects/tetrad_download/download/tetrad-4.3.10-7-experimental.jar

Hope it works. It's worked for other people.

Joe

Dawson

unread,
Aug 27, 2012, 2:22:15 PM8/27/12
to Tetrad Users Group
This one is working, thank you Joe.

On Aug 27, 1:53 pm, Joseph Ramsey <jsph.ram...@gmail.com> wrote:
> Actually, I just did something I promised to do recently and marked
> experimental versions as experimental. So the jar I'm pointing to is
> 4.3.10-7-experimental.jar.,
>
> http://www.phil.cmu.edu/projects/tetrad_download/download/tetrad-4.3....
>
> Hope it works. It's worked for other people.
>
> Joe
>
>
>
>
>
> On Mon, Aug 27, 2012 at 11:45 AM, Joseph Ramsey <jsph.ram...@gmail.com> wrote:
> > I'm looking in the repository at the current version of tetrad
> > (4.3.10-7 online) and tetradproj is not being excluded, so it should
> > be there to reference. Could you download that jar and point your
> > script to it and tell me what happens? Same thing?
>
> > Joe
>
> >>> Office:(412) 268-8063begin_of_the_skype_highlighting FREE (412) 268-8063 begin_of_the_skype_highlighting FREE(412) 268-8063begin_of_the_skype_highlighting FREE (412) 268-8063 http://www.andrew.cmu.edu/user/jdramsey-Hide quoted text -
>
> >>> - Show quoted text -
>
> > --
> > Joseph D. Ramsey
> > Special Faculty and Director of Research Computing
> > Department of Philosophy
> > 135 Baker Hall
> > Carnegie Mellon University
> > Pittsburgh, PA 15213
>
> > jsph.ram...@gmail.com
> > Office:(412) 268-8063begin_of_the_skype_highlighting FREE (412) 268-8063
> >http://www.andrew.cmu.edu/user/jdramsey
>
> --
> Joseph D. Ramsey
> Special Faculty and Director of Research Computing
> Department of Philosophy
> 135 Baker Hall
> Carnegie Mellon University
> Pittsburgh, PA 15213
>
Reply all
Reply to author
Forward
0 new messages