Code jumps out of a jar and runs? What is causing this?

Posted by Mike on Stack Overflow See other posts from Stack Overflow or by Mike
Published on 2010-05-25T21:14:48Z Indexed on 2010/05/25 21:21 UTC
Read the original article Hit count: 290

Filed under:
|
|
|
|

I am trying to get a sample program working with JUNG, a graphing tool in Java. I downloaded and referenced all the .jar files in eclipse so my project hierarchy looks like this: alt text

In Test.java I have the following code:

public class Test {

static public void main() {
    System.out.print("Hello");
}}

For some reason though when I try to run it as a Java Application by right clicking on Jung test in the project hierarchy I am presented with a bunch of classes. My Test.java isn't on the list so if I just leave it as ** and press ok it starts running a program that is dynamically adding nodes and vertexes to a graph. I can't seem to figure out what code its actually executing. I know java but stuff like this with the jar files seems to be getting lost on me. Any ideas?

Thanks

© Stack Overflow or respective owner

Related posts about java

Related posts about eclipse