Resource Basic Tree Visualiser

Discussion in 'Tutorials & Resources' started by Party, Dec 26, 2016.

  1. Timothy Osmond

    Joined:
    Apr 13, 2020
    Messages:
    1
    Likes Received:
    0
    Did you have any luck getting this to run?
     
  2. roker

    Joined:
    Nov 5, 2020
    Messages:
    2
    Likes Received:
    0
    github page gone?
     
  3. generalsensei

    Joined:
    Apr 21, 2019
    Messages:
    34
    Likes Received:
    6
    Cant get the jar to run

    Error: Could not find or load main class main.Main
    Caused by: java.lang.NoClassDefFoundError: javafx/application/Application

    I see a Main.class in here, is that what its looking for?
    --- Double Post Merged, Jul 13, 2021, Original Post Date: Jul 11, 2021 ---
    Managed to decompile it and get it to run locally after some slight modifications. Is there a way to import and already made directory of Branches and Leaves and have it map out the tree like that? I see you can import a tsv file, but how do I generate one to begin with?
     
  4. Amaia

    Joined:
    Aug 11, 2018
    Messages:
    6
    Likes Received:
    0
    Hey do you mind posting your fixed version or let me know how you fixed it? I also have the same issue right now..

    Thanks :)
     
  5. generalsensei

    Joined:
    Apr 21, 2019
    Messages:
    34
    Likes Received:
    6
    Ive attached my decompiled version. You should be able to bring it into your IDE and run the main program without much hassle.

    I actually found a better way of visualizing my already made Branches and Leaves using UML, it results in something that looks like this, which is what I had wanted from this TreeVisualizer program when I first began looking at it. BeautifulUML.png
     

    Attached Files:

    CuppaJava likes this.
  6. Amaia

    Joined:
    Aug 11, 2018
    Messages:
    6
    Likes Received:
    0

    I cannot seem to get it to work, but thanks anyway. :)
     
  7. generalsensei

    Joined:
    Apr 21, 2019
    Messages:
    34
    Likes Received:
    6
    What seems to be the issue? You should be able to import it as a new project in your IDE and run it independently as its own program by running the main class.
     
  8. Amaia

    Joined:
    Aug 11, 2018
    Messages:
    6
    Likes Received:
    0
    Wouldnt just give me a run button, not sure.. I was looking around and seen some stuff about ecplise and ive never touched that, could you not compile it and send it this way :)

    Thanks.
    --- Double Post Merged, Aug 1, 2021, Original Post Date: Jul 30, 2021 ---
    I managed to fixed the TreeVisualiser, I just downloaded the JDK and then opened it with the java 8 version. Some reason it was not working before but I had another java program that would not work either, gave same error, one of my mates said I "fucked up what loading directory" and just had to re-direct all my default java files to open from javaw jdk and BOOM everything works haha. Thanks anyway, now to just find a tree building program :)
     
  9. crappycoderr

    Joined:
    Oct 10, 2021
    Messages:
    1
    Likes Received:
    0
    I know this post hasn't been touched for a long time. But I managed to get it working. Ensure you have Java JRE 1.8.x. When you have IntelilJ installed you will automatically use a newer version of Java, for example: 16. So to run this. Go to where you installed Java and run the executable from there.

    First test if you are using the correct version:
    C:\Program Files (x86)\Java\jre1.8.0_311\bin\java.exe -version
    java version "1.8.0_311"
    Java(TM) SE Runtime Environment (build 1.8.0_311-b11)
    Java HotSpot(TM) Client VM (build 25.311-b11, mixed mode, sharing)


    Should look like this from the command line:
    C:\Program Files (x86)\Java\jre1.8.0_311\bin\java.exe -jar C:\Users\Username\Downloads\TreeVisualiser-1.1.1.jar
     
  10. shend

    Joined:
    Sep 21, 2018
    Messages:
    9
    Likes Received:
    0
    I get this error when i try to open it
    Error: Could not find or load main class main.Main
    Caused by: java.lang.NoClassDefFoundError: javafx/application/Application
     

Share This Page

Loading...