Git Product home page Git Product logo

Comments (5)

jjviana avatar jjviana commented on August 12, 2024

Hi,

Thank you for reporting this problem.
May I ask you if you tried to build the library yourself or if you used the binary jar file provided in the downloads section?
Can you also provide some details about your build configuration (ide version, java version etc)?

Regards,

  • Juliano

from samplr.

mhawrylczak avatar mhawrylczak commented on August 12, 2024

Hi,
I tried to use the library provided in the download section, I had
impression that this jar contains all required dependencies, such option
would be helpful for me.
I was too lazy to check where is the missing lib. However I just looked on
the maven conf and added this to shade-pligin configuration:

org.netbeans.api:org-netbeans-modules-editor-mimelookup

**

After the change, the class was included.
I'll check tomorow if this is enough
Kind regards,
Marek.

2012/10/2 jjviana [email protected]

Hi,

Thank you for reporting this problem.
May I ask you if you tried to build the library yourself or if you used
the binary jar file provided in the downloads section?
Can you also provide some details about your build configuration (ide
version, java version etc)?

Regards,

  • Juliano


    Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-9068227.

from samplr.

tiagobt avatar tiagobt commented on August 12, 2024

I've tried to use the binary JAR provided in the downloads section and to build the project myself using Maven. In both cases, I get the same error when I compile my project, which depends on samplr-core:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project my-project: Compilation failure
[ERROR] error: Bad service configuration file, or exception thrown while constructing Processor object: javax.annotation.processing.Processor: Provider org.netbeans.modules.editor.mimelookup.CreateRegistrationProcessor not found

I'm using Java 1.6.0_18 and Maven 3.0.4.

I've also tried to make the change suggested by mhawrylczak and build samplr again. Compiling my own project, I got the following error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project my-project: Compilation failure
[ERROR] error: Exception thrown while constructing Processor object: org/openide/filesystems/annotations/LayerGeneratingProcessor

Any idea what I'm doing wrong?

from samplr.

ndr-fjhr avatar ndr-fjhr commented on August 12, 2024

I included the jars below and the test RequestManagerTest, included in the sources as a example, seems to be working.

http://findjar.net/downloadfile.x?id=12763&type=jar
http://findjar.net/downloadfile.x?id=12677&type=jar

The file generated can be imported in VisualVM and now i'll try to adapt it to my needs.

from samplr.

jjviana avatar jjviana commented on August 12, 2024

Hi,
Thanks to everyone for the feedback.
The problem seems related to the use of the maven shade plugin. I used shade to shrink the resulting library, ad I didnt want to include the entire netbeans platform inside it.
It seems like the soluton works well but there are certain classes that should be included and are not. These clases are related to compiler annotation processors.
I will try and find a solution for including the missing classes in the final jar. In the mean time, one workaround is to disable annotation processing while compiling your projects if you dont use this compiler feature (most peojects dont). This can be disabled by passing the option -proc:none to the Java compiler.In maven you can do that by including the following configuration in the maven compiler plugin:

           <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>2.0.2</version>
            <configuration>
                <source>
                    1.6
                </source>
                <target>
                    1.6
                </target>
                <compilerArgument>-proc:none</compilerArgument>
            </configuration>
        </plugin>

from samplr.

Related Issues (3)

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.