Giter Club home page Giter Club logo

Comments (8)

thurka avatar thurka commented on August 16, 2024

The build works fine for me. What JDK you use?

from visualvm.

brunoborges avatar brunoborges commented on August 16, 2024

Java 8u131

from visualvm.

thurka avatar thurka commented on August 16, 2024

VisualVM runs on JDK 7, so it should be build with JDK 7.

from visualvm.

bigianb avatar bigianb commented on August 16, 2024

I don't see how the JDK7 is relevant in this case because it looks like the ant build is not adding the required netbeans jar to the compile classpath. I'm having the exact same issue - I've not got netbeans installed due to corporate policy so am working with ant on the command line with JDK 8

from visualvm.

bigianb avatar bigianb commented on August 16, 2024

The problem is that you're missing a dependency on org.netbeans.lib.profiler.common in visualvm/core/nbproject/project.xml

you need this in that file:

               <dependency>
                    <code-name-base>org.netbeans.lib.profiler.common</code-name-base>
                    <build-prerequisite/>
                    <compile-dependency/>
                    <run-dependency>
                        <release-version>1</release-version>
                        <specification-version>1.10.1</specification-version>
                    </run-dependency>
                </dependency>

from visualvm.

jisedlac avatar jisedlac commented on August 16, 2024

Please note that the README clearly states 'Use ... Oracle JDK 7 to build VisualVM ...'. Using JDK 7 the repository builds without errors and you don't need to change any dependencies.

In case you're using JDK 8 you have to update the dependencies, but you'll likely not be able to run the VisualVM using Java 7, which is a supported configuration - see https://visualvm.github.io/relnotes.html.

from visualvm.

bigianb avatar bigianb commented on August 16, 2024

The release notes say JDK7+ ... I would take the + to make 8 too. In any case, in my corporate environment I only have access to 8 as 7 is deprecated ... and my intent is to write a plugin for the visualVM which ships with the JDK8. Of course if I build with JDK 8 I don't expect to run with JDK 7.
I also don't really follow why JDK 7 can find the missing undeclared dependency when JDK 8 doesn't ... it would seem that JDK 8 is doing the right thing. But ... whatever, I was just trying to help the original poster :-/

from visualvm.

thurka avatar thurka commented on August 16, 2024

We just upgraded VisualVM dev. version to be built on top of latest NetBeans platform and profiler. It is now required to build it with JDK 8.

from visualvm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.